WN3000RPV3.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /* This file is released into the public domain */
  2. /dts-v1/;
  3. #include "mt7620a.dtsi"
  4. #include <dt-bindings/input/input.h>
  5. #include <dt-bindings/gpio/gpio.h>
  6. / {
  7. compatible = "ralink,mt7620a-soc";
  8. model = "Netgear WN3000RPv3";
  9. chosen {
  10. bootargs = "console=ttyS0,57600";
  11. };
  12. gpio-leds {
  13. compatible = "gpio-leds";
  14. power_g {
  15. label = "wn3000rpv3:green:power";
  16. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  17. default-state = "on";
  18. };
  19. power_r {
  20. label = "wn3000rpv3:red:power";
  21. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  22. };
  23. client_g {
  24. label = "wn3000rpv3:green:client";
  25. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  26. };
  27. client_r {
  28. label = "wn3000rpv3:red:client";
  29. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  30. };
  31. router_g {
  32. label = "wn3000rpv3:green:router";
  33. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  34. };
  35. router_r {
  36. label = "wn3000rpv3:red:router";
  37. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  38. };
  39. wps {
  40. label = "wn3000rpv3:green:wps";
  41. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  42. };
  43. l_arrow {
  44. label = "wn3000rpv3:blue:leftarrow";
  45. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  46. };
  47. r_arrow {
  48. label = "wn3000rpv3:blue:rightarrow";
  49. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  50. };
  51. };
  52. gpio-keys-polled {
  53. compatible = "gpio-keys-polled";
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. poll-interval = <20>;
  57. reset {
  58. label = "reset";
  59. gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
  60. linux,code = <KEY_RESTART>;
  61. };
  62. wps {
  63. label = "wps";
  64. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  65. linux,code = <KEY_WPS_BUTTON>;
  66. };
  67. };
  68. };
  69. &gpio1 {
  70. status = "okay";
  71. };
  72. &spi0 {
  73. status = "okay";
  74. m25p80@0 {
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. compatible = "jedec,spi-nor";
  78. reg = <0>;
  79. spi-max-frequency = <10000000>;
  80. partition@0 {
  81. label = "u-boot";
  82. reg = <0x0 0x30000>;
  83. read-only;
  84. };
  85. partition@30000 {
  86. label = "u-boot-env";
  87. reg = <0x30000 0x10000>;
  88. read-only;
  89. };
  90. partition@40000 {
  91. label = "firmware";
  92. reg = <0x40000 0x7b0000>;
  93. };
  94. art: partition@7f0000 {
  95. label = "art";
  96. reg = <0x7f0000 0x10000>;
  97. read-only;
  98. };
  99. };
  100. };
  101. &ethernet {
  102. mtd-mac-address = <&art 0x0>;
  103. };
  104. &wmac {
  105. mtd-mac-address = <&art 0x6>;
  106. ralink,mtd-eeprom = <&art 0x1000>;
  107. };
  108. &pinctrl {
  109. state_default: pinctrl0 {
  110. default {
  111. ralink,group = "i2c", "uartf", "spi refclk";
  112. ralink,function = "gpio";
  113. };
  114. };
  115. };