EX3700.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /* This file is released into the public domain */
  2. /dts-v1/;
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include "mt7620a.dtsi"
  6. / {
  7. compatible = "netgear,ex3700", "ralink,mt7620a-soc";
  8. model = "Netgear EX3700/EX3800";
  9. aliases {
  10. led-boot = &led_power_green;
  11. led-failsafe = &led_power_green;
  12. led-running = &led_power_green;
  13. led-upgrade = &led_power_green;
  14. };
  15. chosen {
  16. bootargs = "console=ttyS0,57600";
  17. };
  18. leds {
  19. compatible = "gpio-leds";
  20. led_power_green: power_g {
  21. label = "ex3700:green:power";
  22. gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
  23. default-state = "on";
  24. };
  25. power_a {
  26. label = "ex3700:amber:power";
  27. gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
  28. };
  29. router_g {
  30. label = "ex3700:green:router";
  31. gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
  32. };
  33. router_r {
  34. label = "ex3700:red:router";
  35. gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
  36. };
  37. device_g {
  38. label = "ex3700:green:device";
  39. gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
  40. };
  41. device_r {
  42. label = "ex3700:red:device";
  43. gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
  44. };
  45. wps {
  46. label = "ex3700:green:wps";
  47. gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
  48. };
  49. };
  50. keys {
  51. compatible = "gpio-keys-polled";
  52. poll-interval = <20>;
  53. reset {
  54. label = "reset";
  55. gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
  56. linux,code = <KEY_RESTART>;
  57. };
  58. wps {
  59. label = "wps";
  60. gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
  61. linux,code = <KEY_WPS_BUTTON>;
  62. };
  63. };
  64. };
  65. &gpio0 {
  66. status = "okay";
  67. };
  68. &gpio2 {
  69. status = "okay";
  70. };
  71. &spi0 {
  72. status = "okay";
  73. m25p80@0 {
  74. compatible = "jedec,spi-nor";
  75. reg = <0>;
  76. spi-max-frequency = <10000000>;
  77. partitions {
  78. compatible = "fixed-partitions";
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. partition@0 {
  82. label = "u-boot";
  83. reg = <0x0 0x30000>;
  84. read-only;
  85. };
  86. partition@30000 {
  87. label = "config";
  88. reg = <0x30000 0x10000>;
  89. read-only;
  90. };
  91. factory: partition@40000 {
  92. label = "factory";
  93. reg = <0x40000 0x10000>;
  94. read-only;
  95. };
  96. partition@50000 {
  97. compatible = "denx,uimage";
  98. label = "firmware";
  99. reg = <0x50000 0x790000>;
  100. };
  101. partition@7e0000 {
  102. label = "board_data";
  103. reg = <0x7e0000 0x10000>;
  104. read-only;
  105. };
  106. partition@7f0000 {
  107. label = "nvram";
  108. reg = <0x7f0000 0x10000>;
  109. read-only;
  110. };
  111. };
  112. };
  113. };
  114. &pcie {
  115. status = "okay";
  116. };
  117. &pcie0 {
  118. mt76@0,0 {
  119. reg = <0x0000 0 0 0 0 >;
  120. mediatek,mtd-eeprom = <&factory 0x8000>;
  121. ieee80211-freq-limit = <5000000 6000000>;
  122. };
  123. };
  124. &ethernet {
  125. mtd-mac-address = <&factory 0x28>;
  126. };
  127. &wmac {
  128. ralink,mtd-eeprom = <&factory 0x0>;
  129. };
  130. &pinctrl {
  131. state_default: pinctrl0 {
  132. default {
  133. ralink,group = "i2c", "rgmii2", "spi refclk";
  134. ralink,function = "gpio";
  135. };
  136. };
  137. };