bcm6369-netgear-evg2000.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "bcm6368.dtsi"
  3. / {
  4. model = "Netgear EVG2000";
  5. compatible = "netgear,evg2000", "brcm,bcm6369", "brcm,bcm6368";
  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. reset {
  16. label = "reset";
  17. gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RESTART>;
  19. debounce-interval = <60>;
  20. };
  21. wps {
  22. label = "wps";
  23. gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_WPS_BUTTON>;
  25. debounce-interval = <60>;
  26. };
  27. };
  28. leds {
  29. compatible = "gpio-leds";
  30. led@2 {
  31. label = "green:voip2";
  32. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  33. };
  34. led@4 {
  35. label = "red:internet";
  36. gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
  37. };
  38. led@5 {
  39. label = "green:internet";
  40. gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
  41. };
  42. led@14 {
  43. label = "green:voip1";
  44. gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
  45. };
  46. led@15 {
  47. function = LED_FUNCTION_USB;
  48. color = <LED_COLOR_ID_GREEN>;
  49. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  50. };
  51. led_power_green: led@22 {
  52. function = LED_FUNCTION_POWER;
  53. color = <LED_COLOR_ID_GREEN>;
  54. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  55. };
  56. led_power_red: led@23 {
  57. function = LED_FUNCTION_POWER;
  58. color = <LED_COLOR_ID_RED>;
  59. gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
  60. panic-indicator;
  61. };
  62. led@24 {
  63. function = LED_FUNCTION_LAN;
  64. color = <LED_COLOR_ID_GREEN>;
  65. gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
  66. };
  67. led@27 {
  68. function = LED_FUNCTION_WAN;
  69. color = <LED_COLOR_ID_GREEN>;
  70. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  71. };
  72. };
  73. bcm4322-sprom {
  74. compatible = "brcm,ssb-sprom";
  75. pci-bus = <0>;
  76. pci-dev = <1>;
  77. nvmem-cells = <&macaddr_cfe_6a0 1>;
  78. nvmem-cell-names = "mac-address";
  79. brcm,sprom = "brcm/bcm4322-sprom.bin";
  80. brcm,sprom-fixups = <219 0xec08>;
  81. };
  82. };
  83. &ehci {
  84. status = "okay";
  85. };
  86. &ethernet {
  87. status = "okay";
  88. nvmem-cells = <&macaddr_cfe_6a0 0>;
  89. nvmem-cell-names = "mac-address";
  90. };
  91. &mdio_ext {
  92. switch@1e {
  93. compatible = "brcm,bcm53115";
  94. reg = <30>;
  95. dsa,member = <1 0>;
  96. ports {
  97. #address-cells = <1>;
  98. #size-cells = <0>;
  99. port@0 {
  100. reg = <0>;
  101. label = "wan";
  102. };
  103. port@1 {
  104. reg = <1>;
  105. label = "lan1";
  106. };
  107. port@2 {
  108. reg = <2>;
  109. label = "lan2";
  110. };
  111. port@3 {
  112. reg = <3>;
  113. label = "lan3";
  114. };
  115. port@4 {
  116. reg = <4>;
  117. label = "lan4";
  118. };
  119. port@8 {
  120. reg = <8>;
  121. phy-mode = "rgmii";
  122. ethernet = <&switch0port5>;
  123. fixed-link {
  124. speed = <1000>;
  125. full-duplex;
  126. };
  127. };
  128. };
  129. };
  130. };
  131. &switch0 {
  132. dsa,member = <0 0>;
  133. ports {
  134. switch0port5: port@5 {
  135. reg = <5>;
  136. label = "extsw";
  137. phy-mode = "rgmii";
  138. fixed-link {
  139. speed = <1000>;
  140. full-duplex;
  141. };
  142. };
  143. };
  144. };
  145. &pflash {
  146. status = "okay";
  147. partitions {
  148. compatible = "fixed-partitions";
  149. #address-cells = <1>;
  150. #size-cells = <1>;
  151. partition@0 {
  152. label = "CFE";
  153. reg = <0x000000 0x020000>;
  154. read-only;
  155. nvmem-layout {
  156. compatible = "fixed-layout";
  157. #address-cells = <1>;
  158. #size-cells = <1>;
  159. macaddr_cfe_6a0: macaddr@6a0 {
  160. compatible = "mac-base";
  161. reg = <0x6a0 0x6>;
  162. #nvmem-cell-cells = <1>;
  163. };
  164. };
  165. };
  166. partition@20000 {
  167. label = "firmware";
  168. reg = <0x020000 0xf40000>;
  169. compatible = "brcm,bcm963xx-imagetag";
  170. };
  171. partition@f60000 {
  172. label = "board_data";
  173. reg = <0xf60000 0x080000>;
  174. read-only;
  175. };
  176. partition@fe0000 {
  177. label = "nvram";
  178. reg = <0xfe0000 0x020000>;
  179. };
  180. };
  181. };
  182. &ohci {
  183. status = "okay";
  184. };
  185. &pci {
  186. status = "okay";
  187. };
  188. &uart0 {
  189. status = "okay";
  190. };
  191. &usbh {
  192. status = "okay";
  193. };