bcm6368-netgear-dgnd3700.dtsi 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "bcm6368.dtsi"
  3. / {
  4. aliases {
  5. led-boot = &led_power_green;
  6. led-failsafe = &led_power_red;
  7. led-running = &led_power_green;
  8. led-upgrade = &led_power_green;
  9. };
  10. keys {
  11. compatible = "gpio-keys-polled";
  12. poll-interval = <100>;
  13. rfkill {
  14. label = "rfkill";
  15. gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
  16. linux,code = <KEY_RFKILL>;
  17. debounce-interval = <60>;
  18. };
  19. reset {
  20. label = "reset";
  21. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  22. linux,code = <KEY_RESTART>;
  23. debounce-interval = <60>;
  24. };
  25. wps {
  26. label = "wps";
  27. gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
  28. linux,code = <KEY_WPS_BUTTON>;
  29. debounce-interval = <60>;
  30. };
  31. };
  32. leds {
  33. compatible = "gpio-leds";
  34. led@2 {
  35. label = "green:dsl";
  36. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  37. };
  38. led@4 {
  39. label = "red:wan";
  40. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  41. };
  42. led@5 {
  43. label = "green:wan";
  44. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  45. };
  46. led@11 {
  47. label = "green:wps";
  48. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  49. };
  50. led@13 {
  51. /* Front USB port */
  52. label = "green:usb2";
  53. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  54. };
  55. led@14 {
  56. /* Back USB port */
  57. label = "green:usb1";
  58. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  59. };
  60. led_power_red: led@22 {
  61. label = "red:power";
  62. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  63. panic-indicator;
  64. };
  65. led@23 {
  66. label = "green:lan";
  67. gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
  68. };
  69. led_power_green: led@24 {
  70. label = "green:power";
  71. gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
  72. };
  73. led@26 {
  74. label = "green:wifi2g";
  75. gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
  76. };
  77. led@27 {
  78. label = "blue:wifi5g";
  79. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  80. };
  81. };
  82. };
  83. &ehci {
  84. status = "okay";
  85. };
  86. &ethernet {
  87. status = "okay";
  88. nvmem-cells = <&macaddr_cfe_6a0>;
  89. nvmem-cell-names = "mac-address";
  90. };
  91. &lsspi {
  92. status = "okay";
  93. switch@1 {
  94. compatible = "brcm,bcm53115";
  95. reg = <1>;
  96. spi-max-frequency = <781000>;
  97. dsa,member = <1 0>;
  98. ports {
  99. #address-cells = <1>;
  100. #size-cells = <0>;
  101. port@0 {
  102. reg = <0>;
  103. label = "wan";
  104. };
  105. port@1 {
  106. reg = <1>;
  107. label = "lan4";
  108. };
  109. port@2 {
  110. reg = <2>;
  111. label = "lan3";
  112. };
  113. port@3 {
  114. reg = <3>;
  115. label = "lan2";
  116. };
  117. port@4 {
  118. reg = <4>;
  119. label = "lan1";
  120. };
  121. port@8 {
  122. reg = <8>;
  123. phy-mode = "rgmii";
  124. ethernet = <&switch0port5>;
  125. fixed-link {
  126. speed = <1000>;
  127. full-duplex;
  128. };
  129. };
  130. };
  131. };
  132. };
  133. &nflash {
  134. status = "okay";
  135. nandcs@0 {
  136. compatible = "brcm,nandcs";
  137. reg = <0>;
  138. nand-ecc-step-size = <512>;
  139. nand-ecc-strength = <15>;
  140. nand-on-flash-bbt;
  141. brcm,nand-oob-sector-size = <64>;
  142. partitions {
  143. compatible = "fixed-partitions";
  144. #address-cells = <1>;
  145. #size-cells = <1>;
  146. partition@0 {
  147. label = "storage";
  148. reg = <0 0>; /* autodetected size */
  149. };
  150. };
  151. };
  152. };
  153. &ohci {
  154. status = "okay";
  155. };
  156. &pci {
  157. status = "okay";
  158. };
  159. &pflash {
  160. status = "okay";
  161. partitions {
  162. compatible = "fixed-partitions";
  163. #address-cells = <1>;
  164. #size-cells = <1>;
  165. cfe: partition@0 {
  166. label = "CFE";
  167. reg = <0x0000000 0x0020000>;
  168. read-only;
  169. };
  170. partition@20000 {
  171. compatible = "brcm,bcm963xx-imagetag";
  172. label = "firmware";
  173. reg = <0x0020000 0x1e20000>;
  174. };
  175. partition@1e40000 {
  176. label = "board_data";
  177. reg = <0x1e40000 0x1a0000>;
  178. read-only;
  179. };
  180. partition@1fe0000 {
  181. label = "nvram";
  182. reg = <0x1fe0000 0x020000>;
  183. };
  184. };
  185. };
  186. &switch0 {
  187. dsa,member = <0 0>;
  188. ports {
  189. switch0port5: port@5 {
  190. reg = <5>;
  191. label = "extsw";
  192. phy-mode = "rgmii";
  193. fixed-link {
  194. speed = <1000>;
  195. full-duplex;
  196. };
  197. };
  198. };
  199. };
  200. &uart0 {
  201. status = "okay";
  202. };
  203. &usbh {
  204. status = "okay";
  205. };
  206. &cfe {
  207. compatible = "nvmem-cells";
  208. #address-cells = <1>;
  209. #size-cells = <1>;
  210. macaddr_cfe_6a0: macaddr@6a0 {
  211. reg = <0x6a0 0x6>;
  212. };
  213. };