1
0

WR512-3GN.dtsi 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #include "rt3050.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "unbranded,wr512-3gn", "ralink,rt3052-soc";
  6. aliases {
  7. led-boot = &led_wps;
  8. led-failsafe = &led_wps;
  9. led-running = &led_wps;
  10. led-upgrade = &led_wps;
  11. };
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. 3g {
  15. label = "wr512-3gn:green:3g";
  16. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  17. };
  18. gateway {
  19. label = "wr512-3gn:green:gateway";
  20. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  21. };
  22. ap {
  23. label = "wr512-3gn:green:ap";
  24. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  25. };
  26. led_wps: wps {
  27. label = "wr512-3gn:green:wps";
  28. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  29. };
  30. station {
  31. label = "wr512-3gn:green:station";
  32. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  33. };
  34. };
  35. gpio-keys-polled {
  36. compatible = "gpio-keys-polled";
  37. poll-interval = <20>;
  38. reset_wps {
  39. label = "reset_wps";
  40. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  41. linux,code = <KEY_RESTART>;
  42. };
  43. mode {
  44. label = "mode";
  45. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  46. linux,code = <BTN_0>;
  47. };
  48. };
  49. };
  50. &pinctrl {
  51. state_default: pinctrl0 {
  52. gpio {
  53. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  54. ralink,function = "gpio";
  55. };
  56. };
  57. };
  58. &esw {
  59. mediatek,portmap = <0x2f>;
  60. };
  61. &wmac {
  62. ralink,mtd-eeprom = <&factory 0>;
  63. };
  64. &otg {
  65. status = "okay";
  66. };