bcm63168-actiontec-t1200h.dts 3.9 KB

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