EX6150.dts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "mt7621.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. / {
  7. compatible = "netgear,ex6150", "mediatek,mt7621-soc";
  8. model = "Netgear EX6150";
  9. aliases {
  10. led-boot = &power_green;
  11. led-failsafe = &power_amber;
  12. led-running = &power_green;
  13. led-upgrade = &power_amber;
  14. };
  15. memory@0 {
  16. device_type = "memory";
  17. reg = <0x0 0x4000000>;
  18. };
  19. chosen {
  20. bootargs = "console=ttyS0,57600";
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. power_amber: power_amber {
  25. label = "ex6150:amber:power";
  26. gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  27. };
  28. power_green: power_green {
  29. label = "ex6150:green:power";
  30. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  31. };
  32. wps {
  33. label = "ex6150:green:wps";
  34. gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
  35. };
  36. rightarrow {
  37. label = "ex6150:blue:rightarrow";
  38. gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
  39. };
  40. leftarrow {
  41. label = "ex6150:blue:leftarrow";
  42. gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
  43. };
  44. router_green {
  45. label = "ex6150:green:router";
  46. gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
  47. linux,default-trigger = "phy1tpt";
  48. };
  49. router_red {
  50. label = "ex6150:red:router";
  51. gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
  52. };
  53. client_green {
  54. label = "ex6150:green:client";
  55. gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
  56. linux,default-trigger = "phy0tpt";
  57. };
  58. client_red {
  59. label = "ex6150:red:client";
  60. gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
  61. };
  62. };
  63. keys {
  64. compatible = "gpio-keys-polled";
  65. poll-interval = <20>;
  66. wps {
  67. label = "wps";
  68. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  69. linux,code = <KEY_WPS_BUTTON>;
  70. };
  71. reset {
  72. label = "reset";
  73. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  74. linux,code = <KEY_RESTART>;
  75. };
  76. toggle {
  77. label = "AP/Extender toggle";
  78. gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
  79. linux,code = <BTN_0>;
  80. /* Active when switch is set to "Access Point" */
  81. };
  82. };
  83. };
  84. &spi0 {
  85. status = "okay";
  86. flash@0 {
  87. compatible = "jedec,spi-nor";
  88. reg = <0>;
  89. spi-max-frequency = <10000000>;
  90. partitions {
  91. compatible = "fixed-partitions";
  92. #address-cells = <1>;
  93. #size-cells = <1>;
  94. partition@0 {
  95. label = "u-boot";
  96. reg = <0x0 0x30000>;
  97. read-only;
  98. };
  99. partition@30000 {
  100. label = "config";
  101. reg = <0x30000 0x10000>;
  102. read-only;
  103. };
  104. factory: partition@40000 {
  105. label = "factory";
  106. reg = <0x40000 0x10000>;
  107. read-only;
  108. };
  109. partition@50000 {
  110. compatible = "denx,uimage";
  111. label = "firmware";
  112. reg = <0x50000 0xe80000>;
  113. };
  114. partition@ed0000 {
  115. label = "ML1";
  116. reg = <0xed0000 0x10000>;
  117. read-only;
  118. };
  119. partition@ef0000 {
  120. label = "ML2";
  121. reg = <0xef0000 0x20000>;
  122. read-only;
  123. };
  124. partition@f10000 {
  125. label = "ML3";
  126. reg = <0xf10000 0x20000>;
  127. read-only;
  128. };
  129. partition@f30000 {
  130. label = "ML4";
  131. reg = <0xf30000 0x20000>;
  132. read-only;
  133. };
  134. partition@f50000 {
  135. label = "ML5";
  136. reg = <0xf50000 0x20000>;
  137. read-only;
  138. };
  139. partition@f70000 {
  140. label = "ML6";
  141. reg = <0xf70000 0x20000>;
  142. read-only;
  143. };
  144. partition@f90000 {
  145. label = "ML7";
  146. reg = <0xf90000 0x20000>;
  147. read-only;
  148. };
  149. partition@fb0000 {
  150. label = "T_Meter1";
  151. reg = <0xfb0000 0x10000>;
  152. read-only;
  153. };
  154. partition@fc0000 {
  155. label = "T_Meter2";
  156. reg = <0xfc0000 0x10000>;
  157. read-only;
  158. };
  159. partition@fd0000 {
  160. label = "POT";
  161. reg = <0xfd0000 0x10000>;
  162. read-only;
  163. };
  164. partition@fe0000 {
  165. label = "board_data";
  166. reg = <0xfe0000 0x10000>;
  167. read-only;
  168. };
  169. partition@ff0000 {
  170. label = "nvram";
  171. reg = <0xff0000 0x10000>;
  172. read-only;
  173. };
  174. };
  175. };
  176. };
  177. &pcie {
  178. status = "okay";
  179. };
  180. &pcie0 {
  181. wifi@0,0 {
  182. reg = <0x0000 0 0 0 0>;
  183. mediatek,mtd-eeprom = <&factory 0x8000>;
  184. ieee80211-freq-limit = <5000000 6000000>;
  185. };
  186. };
  187. &pcie1 {
  188. wifi@0,0 {
  189. reg = <0x0000 0 0 0 0>;
  190. mediatek,mtd-eeprom = <&factory 0x0000>;
  191. ieee80211-freq-limit = <2400000 2500000>;
  192. };
  193. };
  194. &ethernet {
  195. mtd-mac-address = <&factory 0x00000004>;
  196. };
  197. &pinctrl {
  198. state_default: pinctrl0 {
  199. gpio {
  200. ralink,group = "sdhci", "rgmii2", "jtag";
  201. ralink,function = "gpio";
  202. };
  203. };
  204. };