bcm63169-comtrend-vg-8050.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "bcm63268.dtsi"
  3. / {
  4. model = "Comtrend VG-8050";
  5. compatible = "comtrend,vg-8050", "brcm,bcm63169", "brcm,bcm63268";
  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 33 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RESTART>;
  19. debounce-interval = <60>;
  20. };
  21. wps {
  22. label = "wps";
  23. gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_WPS_BUTTON>;
  25. debounce-interval = <60>;
  26. };
  27. };
  28. };
  29. &ehci {
  30. status = "okay";
  31. };
  32. &ethernet {
  33. status = "okay";
  34. nvmem-cells = <&macaddr_cferom_6a0>;
  35. nvmem-cell-names = "mac-address";
  36. };
  37. &hsspi {
  38. status = "okay";
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&pinctrl_hsspi_cs5>;
  41. switch@5 {
  42. compatible = "brcm,bcm53125";
  43. reg = <5>;
  44. spi-max-frequency = <781000>;
  45. spi-cpha;
  46. spi-cpol;
  47. dsa,member = <1 0>;
  48. ports {
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. port@0 {
  52. reg = <0>;
  53. label = "lan4";
  54. };
  55. port@1 {
  56. reg = <1>;
  57. label = "lan3";
  58. };
  59. port@2 {
  60. reg = <2>;
  61. label = "lan2";
  62. };
  63. port@3 {
  64. reg = <3>;
  65. label = "lan1";
  66. };
  67. port@4 {
  68. reg = <4>;
  69. label = "wan";
  70. };
  71. port@8 {
  72. reg = <8>;
  73. phy-mode = "rgmii";
  74. ethernet = <&switch0port6>;
  75. fixed-link {
  76. speed = <1000>;
  77. full-duplex;
  78. };
  79. };
  80. };
  81. };
  82. };
  83. &leds {
  84. status = "okay";
  85. brcm,serial-leds;
  86. brcm,serial-dat-low;
  87. brcm,serial-shift-inv;
  88. pinctrl-names = "default";
  89. pinctrl-0 = <&pinctrl_serial_led>;
  90. led@2 {
  91. reg = <2>;
  92. active-low;
  93. label = "red:internet";
  94. };
  95. led_power_red: led@3 {
  96. reg = <3>;
  97. active-low;
  98. function = LED_FUNCTION_POWER;
  99. color = <LED_COLOR_ID_RED>;
  100. panic-indicator;
  101. };
  102. led_power_green: led@6 {
  103. reg = <6>;
  104. active-low;
  105. function = LED_FUNCTION_POWER;
  106. color = <LED_COLOR_ID_GREEN>;
  107. };
  108. led@7 {
  109. reg = <7>;
  110. active-low;
  111. function = LED_FUNCTION_WPS;
  112. color = <LED_COLOR_ID_GREEN>;
  113. };
  114. led@8 {
  115. reg = <8>;
  116. active-low;
  117. label = "green:internet";
  118. };
  119. led@10 {
  120. reg = <10>;
  121. active-low;
  122. label = "green:voip";
  123. };
  124. led@12 {
  125. reg = <12>;
  126. active-low;
  127. label = "red:voip";
  128. };
  129. led@14 {
  130. reg = <14>;
  131. active-low;
  132. function = LED_FUNCTION_WPS;
  133. color = <LED_COLOR_ID_RED>;
  134. };
  135. };
  136. &nflash {
  137. status = "okay";
  138. nandcs@0 {
  139. compatible = "brcm,nandcs";
  140. reg = <0>;
  141. nand-ecc-step-size = <512>;
  142. nand-ecc-strength = <15>;
  143. nand-on-flash-bbt;
  144. brcm,nand-oob-sector-size = <64>;
  145. #address-cells = <1>;
  146. #size-cells = <1>;
  147. partitions {
  148. compatible = "fixed-partitions";
  149. #address-cells = <1>;
  150. #size-cells = <1>;
  151. partition@0 {
  152. label = "cferom";
  153. reg = <0x0000000 0x0020000>;
  154. read-only;
  155. nvmem-layout {
  156. compatible = "fixed-layout";
  157. #address-cells = <1>;
  158. #size-cells = <1>;
  159. macaddr_cferom_6a0: macaddr@6a0 {
  160. reg = <0x6a0 0x6>;
  161. };
  162. };
  163. };
  164. partition@20000 {
  165. compatible = "brcm,wfi-split";
  166. label = "wfi";
  167. reg = <0x0020000 0x7ac0000>;
  168. };
  169. };
  170. };
  171. };
  172. &ohci {
  173. status = "okay";
  174. };
  175. &switch0 {
  176. dsa,member = <0 0>;
  177. ports {
  178. switch0port6: port@6 {
  179. reg = <6>;
  180. label = "extsw";
  181. phy-mode = "rgmii";
  182. fixed-link {
  183. speed = <1000>;
  184. full-duplex;
  185. };
  186. };
  187. };
  188. };
  189. &uart0 {
  190. status = "okay";
  191. };
  192. &usbh {
  193. status = "okay";
  194. };