bcm6362-netgear-dgnd3700-v2.dts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "bcm6362.dtsi"
  3. / {
  4. model = "Netgear DGND3700 v2";
  5. compatible = "netgear,dgnd3700-v2", "brcm,bcm6362";
  6. aliases {
  7. led-boot = &led_power_green;
  8. led-failsafe = &led_power_red;
  9. led-running = &led_power_green;
  10. led-upgrade = &led_power_green;
  11. };
  12. keys {
  13. compatible = "gpio-keys-polled";
  14. poll-interval = <100>;
  15. wlan {
  16. label = "wlan";
  17. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_WLAN>;
  19. debounce-interval = <60>;
  20. };
  21. wps {
  22. label = "wps";
  23. gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_WPS_BUTTON>;
  25. debounce-interval = <60>;
  26. };
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_RESTART>;
  31. debounce-interval = <60>;
  32. };
  33. };
  34. leds {
  35. compatible = "gpio-leds";
  36. led@28 {
  37. label = "green:dsl";
  38. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  39. };
  40. led_power_red: led@34 {
  41. function = LED_FUNCTION_POWER;
  42. color = <LED_COLOR_ID_RED>;
  43. gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
  44. panic-indicator;
  45. };
  46. };
  47. };
  48. &ehci {
  49. status = "okay";
  50. };
  51. &ethernet {
  52. status = "okay";
  53. nvmem-cells = <&macaddr_cferom_6a0>;
  54. nvmem-cell-names = "mac-address";
  55. };
  56. &leds {
  57. status = "okay";
  58. brcm,serial-leds;
  59. brcm,serial-dat-low;
  60. brcm,serial-shift-inv;
  61. brcm,serial-mux;
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led>;
  64. led@1 {
  65. reg = <1>;
  66. active-low;
  67. label = "green:internet";
  68. };
  69. led_power_green: led@8 {
  70. reg = <8>;
  71. function = LED_FUNCTION_POWER;
  72. color = <LED_COLOR_ID_GREEN>;
  73. };
  74. led@9 {
  75. reg = <9>;
  76. active-low;
  77. function = LED_FUNCTION_WPS;
  78. color = <LED_COLOR_ID_GREEN>;
  79. };
  80. led@10 {
  81. reg = <10>;
  82. active-low;
  83. label = "green:usb1";
  84. };
  85. led@11 {
  86. reg = <11>;
  87. active-low;
  88. label = "green:usb2";
  89. };
  90. led@12 {
  91. reg = <12>;
  92. active-low;
  93. label = "amber:internet";
  94. };
  95. led@13 {
  96. reg = <13>;
  97. active-low;
  98. label = "green:ethernet";
  99. };
  100. led@14 {
  101. reg = <14>;
  102. active-low;
  103. label = "amber:dsl";
  104. };
  105. led@16 {
  106. reg = <16>;
  107. active-low;
  108. label = "amber:usb1";
  109. };
  110. led@17 {
  111. reg = <17>;
  112. active-low;
  113. label = "amber:usb2";
  114. };
  115. led@18 {
  116. reg = <18>;
  117. active-low;
  118. label = "amber:ethernet";
  119. };
  120. };
  121. &mdio_ext {
  122. switch@1e {
  123. compatible = "brcm,bcm53125";
  124. reg = <30>;
  125. dsa,member = <1 0>;
  126. ports {
  127. #address-cells = <1>;
  128. #size-cells = <0>;
  129. port@0 {
  130. reg = <0>;
  131. label = "lan1";
  132. };
  133. port@1 {
  134. reg = <1>;
  135. label = "lan2";
  136. };
  137. port@2 {
  138. reg = <2>;
  139. label = "lan3";
  140. };
  141. port@3 {
  142. reg = <3>;
  143. label = "lan4";
  144. };
  145. port@4 {
  146. reg = <4>;
  147. label = "wan";
  148. };
  149. port@8 {
  150. reg = <8>;
  151. phy-mode = "rgmii";
  152. ethernet = <&switch0port4>;
  153. fixed-link {
  154. speed = <1000>;
  155. full-duplex;
  156. };
  157. };
  158. };
  159. };
  160. };
  161. &nflash {
  162. status = "okay";
  163. nandcs@0 {
  164. compatible = "brcm,nandcs";
  165. reg = <0>;
  166. nand-ecc-step-size = <512>;
  167. nand-ecc-strength = <15>;
  168. nand-on-flash-bbt;
  169. #address-cells = <1>;
  170. #size-cells = <1>;
  171. partitions {
  172. compatible = "fixed-partitions";
  173. #address-cells = <1>;
  174. #size-cells = <1>;
  175. partition@0 {
  176. label = "cferom";
  177. reg = <0x0000000 0x0004000>;
  178. read-only;
  179. nvmem-layout {
  180. compatible = "fixed-layout";
  181. #address-cells = <1>;
  182. #size-cells = <1>;
  183. macaddr_cferom_6a0: macaddr@6a0 {
  184. reg = <0x6a0 0x6>;
  185. };
  186. };
  187. };
  188. partition@4000 {
  189. compatible = "brcm,wfi";
  190. label = "wfi";
  191. reg = <0x0004000 0x1c7c000>;
  192. brcm,cferam = "cfe";
  193. };
  194. partition@1c80000 {
  195. label = "flag";
  196. reg = <0x1c80000 0x0040000>;
  197. read-only;
  198. };
  199. partition@1cc0000 {
  200. label = "pcbasn";
  201. reg = <0x1cc0000 0x0040000>;
  202. read-only;
  203. };
  204. partition@1d00000 {
  205. label = "xxx";
  206. reg = <0x1d00000 0x0080000>;
  207. read-only;
  208. };
  209. partition@1d80000 {
  210. label = "language_dev";
  211. reg = <0x1d80000 0x0040000>;
  212. read-only;
  213. };
  214. partition@1dc0000 {
  215. label = "scnvram";
  216. reg = <0x1dc0000 0x0100000>;
  217. read-only;
  218. };
  219. };
  220. };
  221. };
  222. &ohci {
  223. status = "okay";
  224. };
  225. &pcie {
  226. status = "okay";
  227. };
  228. &pinctrl {
  229. pinctrl_leds: leds {
  230. function = "led";
  231. pins = "gpio1";
  232. };
  233. };
  234. &switch0 {
  235. dsa,member = <0 0>;
  236. ports {
  237. switch0port4: port@4 {
  238. reg = <4>;
  239. label = "extsw";
  240. phy-mode = "rgmii";
  241. fixed-link {
  242. speed = <1000>;
  243. full-duplex;
  244. };
  245. };
  246. };
  247. };
  248. &uart0 {
  249. status = "okay";
  250. };
  251. &usbh {
  252. status = "okay";
  253. };