mt7629-netgear-ex6250-v2.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. // SPDX-License-Identifier: GPL-2.0
  2. /dts-v1/;
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/leds/common.h>
  5. #include "mt7629.dtsi"
  6. / {
  7. model = "Netgear EX6250 v2";
  8. compatible = "netgear,ex6250-v2", "mediatek,mt7629";
  9. aliases {
  10. led-boot = &led_power_green;
  11. led-failsafe = &led_power_red;
  12. led-running = &led_power_green;
  13. led-upgrade = &led_power_red;
  14. serial0 = &uart0;
  15. };
  16. chosen {
  17. stdout-path = "serial0:115200n8";
  18. bootargs-override = "console=ttyS0,115200n8";
  19. };
  20. keys {
  21. compatible = "gpio-keys";
  22. reset {
  23. label = "reset";
  24. gpios = <&pio 60 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_RESTART>;
  26. };
  27. wps {
  28. label = "wps";
  29. gpios = <&pio 58 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_WPS_BUTTON>;
  31. };
  32. ap_mode {
  33. label = "ap_mode";
  34. gpios = <&pio 54 GPIO_ACTIVE_LOW>;
  35. linux,code = <BTN_0>;
  36. };
  37. extender_mode {
  38. label = "extender_mode";
  39. gpios = <&pio 53 GPIO_ACTIVE_LOW>;
  40. linux,code = <BTN_1>;
  41. };
  42. };
  43. leds {
  44. compatible = "gpio-leds";
  45. led_power_green: power_green {
  46. function = LED_FUNCTION_POWER;
  47. color = <LED_COLOR_ID_GREEN>;
  48. gpios = <&pio 21 GPIO_ACTIVE_LOW>;
  49. };
  50. led_power_red: power_red {
  51. function = LED_FUNCTION_POWER;
  52. color = <LED_COLOR_ID_RED>;
  53. gpios = <&pio 61 GPIO_ACTIVE_LOW>;
  54. };
  55. client_green {
  56. label = "green:client";
  57. gpios = <&pio 59 GPIO_ACTIVE_LOW>;
  58. };
  59. client_red {
  60. label = "red:client";
  61. gpios = <&pio 24 GPIO_ACTIVE_LOW>;
  62. };
  63. router_green {
  64. label = "green:router";
  65. gpios = <&pio 55 GPIO_ACTIVE_LOW>;
  66. };
  67. router_red {
  68. label = "red:router";
  69. gpios = <&pio 56 GPIO_ACTIVE_LOW>;
  70. };
  71. wps_green {
  72. function = LED_FUNCTION_WPS;
  73. color = <LED_COLOR_ID_GREEN>;
  74. gpios = <&pio 57 GPIO_ACTIVE_LOW>;
  75. };
  76. eth_green {
  77. label = "green:eth";
  78. gpios = <&pio 16 GPIO_ACTIVE_LOW>;
  79. };
  80. eth_yellow {
  81. label = "yellow:eth";
  82. gpios = <&pio 12 GPIO_ACTIVE_LOW>;
  83. };
  84. };
  85. };
  86. &eth {
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&eth_pins>;
  89. pinctrl-1 = <&ephy_leds_pins>;
  90. status = "okay";
  91. mac@1 {
  92. compatible = "mediatek,eth-mac";
  93. reg = <1>;
  94. phy-mode = "gmii";
  95. phy-handle = <&phy0>;
  96. };
  97. mdio-bus {
  98. #address-cells = <1>;
  99. #size-cells = <0>;
  100. phy0: ethernet-phy@0 {
  101. reg = <0>;
  102. };
  103. };
  104. };
  105. &qspi {
  106. status = "okay";
  107. pinctrl-names = "default";
  108. pinctrl-0 = <&qspi_pins>;
  109. flash@0 {
  110. compatible = "jedec,spi-nor";
  111. reg = <0>;
  112. partitions {
  113. compatible = "fixed-partitions";
  114. #address-cells = <1>;
  115. #size-cells = <1>;
  116. partition@0 {
  117. label = "Bootloader";
  118. reg = <0x0 0x60000>;
  119. read-only;
  120. };
  121. partition@60000 {
  122. label = "Config";
  123. reg = <0x60000 0x10000>;
  124. read-only;
  125. };
  126. partition@70000 {
  127. label = "Factory";
  128. reg = <0x70000 0x10000>;
  129. read-only;
  130. };
  131. partition@80000 {
  132. label = "firmware";
  133. reg = <0x80000 0xcd0000>;
  134. compatible = "denx,fit";
  135. };
  136. partition@d50000 {
  137. label = "CFG";
  138. reg = <0xd50000 0x80000>;
  139. read-only;
  140. };
  141. partition@dd0000 {
  142. label = "RAE";
  143. reg = <0xdd0000 0x200000>;
  144. read-only;
  145. };
  146. partition@fd0000 {
  147. label = "POT";
  148. reg = <0xfd0000 0x10000>;
  149. read-only;
  150. };
  151. partition@fe0000 {
  152. label = "LOG";
  153. reg = <0xfe0000 0x20000>;
  154. read-only;
  155. };
  156. };
  157. };
  158. };
  159. &pio {
  160. eth_pins: eth-pins {
  161. mux {
  162. function = "eth";
  163. groups = "mdc_mdio";
  164. };
  165. };
  166. ephy_leds_pins: ephy-leds-pins {
  167. mux {
  168. function = "led";
  169. groups = "ephy_leds";
  170. };
  171. };
  172. qspi_pins: qspi-pins {
  173. mux {
  174. function = "flash";
  175. groups = "spi_nor";
  176. };
  177. };
  178. uart0_pins: uart0-pins {
  179. mux {
  180. function = "uart";
  181. groups = "uart0_txd_rxd" ;
  182. };
  183. };
  184. watchdog_pins: watchdog-pins {
  185. mux {
  186. function = "watchdog";
  187. groups = "watchdog";
  188. };
  189. };
  190. };
  191. &uart0 {
  192. pinctrl-names = "default";
  193. pinctrl-0 = <&uart0_pins>;
  194. status = "okay";
  195. };
  196. &watchdog {
  197. pinctrl-names = "default";
  198. pinctrl-0 = <&watchdog_pins>;
  199. status = "okay";
  200. };