bcm47094-linksys-panamera.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Copyright (C) 2017 Rafał Miłecki <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "bcm47094.dtsi"
  7. #include "bcm5301x-nand-cs0-bch8.dtsi"
  8. / {
  9. compatible = "linksys,panamera", "brcm,bcm47094", "brcm,bcm4708";
  10. model = "Linksys EA9500";
  11. chosen {
  12. bootargs = "console=ttyS0,115200";
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x00000000 0x08000000>,
  17. <0x88000000 0x08000000>;
  18. };
  19. nvram@1c080000 {
  20. compatible = "brcm,nvram";
  21. reg = <0x1c080000 0x100000>;
  22. };
  23. gpio-keys {
  24. compatible = "gpio-keys";
  25. button-wps {
  26. label = "WPS";
  27. linux,code = <KEY_WPS_BUTTON>;
  28. gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  29. };
  30. button-rfkill {
  31. label = "WiFi";
  32. linux,code = <KEY_RFKILL>;
  33. gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
  34. };
  35. button-reset {
  36. label = "Reset";
  37. linux,code = <KEY_RESTART>;
  38. gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  39. };
  40. };
  41. leds {
  42. compatible = "gpio-leds";
  43. wps {
  44. label = "bcm53xx:white:wps";
  45. gpios = <&chipcommon 22 GPIO_ACTIVE_LOW>;
  46. };
  47. usb2 {
  48. label = "bcm53xx:green:usb2";
  49. gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
  50. trigger-sources = <&ohci_port2>, <&ehci_port2>;
  51. linux,default-trigger = "usbport";
  52. };
  53. usb3 {
  54. label = "bcm53xx:green:usb3";
  55. gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
  56. trigger-sources = <&ohci_port1>, <&ehci_port1>,
  57. <&xhci_port1>;
  58. linux,default-trigger = "usbport";
  59. };
  60. power {
  61. label = "bcm53xx:white:power";
  62. gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
  63. linux,default-trigger = "default-on";
  64. };
  65. wifi-disabled {
  66. label = "bcm53xx:amber:wifi-disabled";
  67. gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
  68. };
  69. wifi-enabled {
  70. label = "bcm53xx:white:wifi-enabled";
  71. gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  72. };
  73. bluebar1 {
  74. label = "bcm53xx:white:bluebar1";
  75. gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
  76. };
  77. bluebar2 {
  78. label = "bcm53xx:white:bluebar2";
  79. gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
  80. };
  81. bluebar3 {
  82. label = "bcm53xx:white:bluebar3";
  83. gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
  84. };
  85. bluebar4 {
  86. label = "bcm53xx:white:bluebar4";
  87. gpios = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
  88. };
  89. bluebar5 {
  90. label = "bcm53xx:white:bluebar5";
  91. gpios = <&chipcommon 19 GPIO_ACTIVE_HIGH>;
  92. };
  93. bluebar6 {
  94. label = "bcm53xx:white:bluebar6";
  95. gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>;
  96. };
  97. bluebar7 {
  98. label = "bcm53xx:white:bluebar7";
  99. gpios = <&chipcommon 21 GPIO_ACTIVE_HIGH>;
  100. };
  101. bluebar8 {
  102. label = "bcm53xx:white:bluebar8";
  103. gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
  104. };
  105. };
  106. mdio-mux@18003000 {
  107. /* BIT(9) = 1 => external mdio */
  108. mdio@200 {
  109. reg = <0x200>;
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. switch@0 {
  113. compatible = "brcm,bcm53125";
  114. #address-cells = <1>;
  115. #size-cells = <0>;
  116. reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  117. reset-names = "robo_reset";
  118. reg = <0>;
  119. dsa,member = <1 0>;
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&pinmux_mdio>;
  122. ports {
  123. #address-cells = <1>;
  124. #size-cells = <0>;
  125. port@0 {
  126. reg = <0>;
  127. label = "lan1";
  128. };
  129. port@1 {
  130. reg = <1>;
  131. label = "lan5";
  132. };
  133. port@2 {
  134. reg = <2>;
  135. label = "lan2";
  136. };
  137. port@3 {
  138. reg = <3>;
  139. label = "lan6";
  140. };
  141. port@4 {
  142. reg = <4>;
  143. label = "lan3";
  144. };
  145. sw1_p8: port@8 {
  146. reg = <8>;
  147. ethernet = <&sw0_p0>;
  148. label = "cpu";
  149. fixed-link {
  150. speed = <1000>;
  151. full-duplex;
  152. };
  153. };
  154. };
  155. };
  156. };
  157. };
  158. };
  159. &usb2 {
  160. vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
  161. };
  162. &usb3 {
  163. vcc-gpio = <&chipcommon 14 GPIO_ACTIVE_HIGH>;
  164. };
  165. &srab {
  166. compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
  167. status = "okay";
  168. dsa,member = <0 0>;
  169. ports {
  170. port@1 {
  171. reg = <1>;
  172. label = "lan7";
  173. };
  174. port@2 {
  175. reg = <2>;
  176. label = "lan4";
  177. };
  178. port@3 {
  179. reg = <3>;
  180. label = "lan8";
  181. };
  182. port@4 {
  183. reg = <4>;
  184. label = "wan";
  185. };
  186. port@5 {
  187. reg = <5>;
  188. ethernet = <&gmac0>;
  189. label = "cpu";
  190. status = "disabled";
  191. fixed-link {
  192. speed = <1000>;
  193. full-duplex;
  194. };
  195. };
  196. port@7 {
  197. reg = <7>;
  198. ethernet = <&gmac1>;
  199. label = "cpu";
  200. status = "disabled";
  201. fixed-link {
  202. speed = <1000>;
  203. full-duplex;
  204. };
  205. };
  206. port@8 {
  207. reg = <8>;
  208. ethernet = <&gmac2>;
  209. label = "cpu";
  210. fixed-link {
  211. speed = <1000>;
  212. full-duplex;
  213. };
  214. };
  215. sw0_p0: port@0 {
  216. reg = <0>;
  217. label = "extsw";
  218. fixed-link {
  219. speed = <1000>;
  220. full-duplex;
  221. };
  222. };
  223. };
  224. };
  225. &usb3_phy {
  226. status = "okay";
  227. };
  228. &nandcs {
  229. partitions {
  230. compatible = "linksys,ns-partitions";
  231. #address-cells = <1>;
  232. #size-cells = <1>;
  233. partition@0 {
  234. label = "boot";
  235. reg = <0x0000000 0x0080000>;
  236. read-only;
  237. };
  238. partition@80000 {
  239. label = "nvram";
  240. reg = <0x080000 0x0100000>;
  241. };
  242. partition@180000{
  243. label = "devinfo";
  244. reg = <0x0180000 0x080000>;
  245. };
  246. partition@200000 {
  247. reg = <0x0200000 0x01d00000>;
  248. compatible = "linksys,ns-firmware", "brcm,trx";
  249. };
  250. partition@1f00000 {
  251. reg = <0x01f00000 0x01d00000>;
  252. compatible = "linksys,ns-firmware", "brcm,trx";
  253. };
  254. partition@5200000 {
  255. label = "system";
  256. reg = <0x05200000 0x02e00000>;
  257. };
  258. };
  259. };