bcm47094-asus-rt-ac88u.dts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /*
  3. * Copyright (C) 2021-2022 Arınç ÜNAL <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "bcm47094.dtsi"
  7. #include "bcm5301x-nand-cs0-bch8.dtsi"
  8. / {
  9. compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708";
  10. model = "Asus RT-AC88U";
  11. chosen {
  12. bootargs = "earlycon";
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x00000000 0x08000000>,
  17. <0x88000000 0x18000000>;
  18. };
  19. nvram@1c080000 {
  20. compatible = "brcm,nvram";
  21. reg = <0x1c080000 0x00180000>;
  22. et1macaddr: et1macaddr {
  23. };
  24. };
  25. leds {
  26. compatible = "gpio-leds";
  27. power {
  28. label = "white:power";
  29. gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  30. linux,default-trigger = "default-on";
  31. };
  32. wan-red {
  33. label = "red:wan";
  34. gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  35. };
  36. lan {
  37. label = "white:lan";
  38. gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
  39. };
  40. usb2 {
  41. label = "white:usb2";
  42. gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
  43. trigger-sources = <&ehci_port2>;
  44. linux,default-trigger = "usbport";
  45. };
  46. usb3 {
  47. label = "white:usb3";
  48. gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  49. trigger-sources = <&ehci_port1>, <&xhci_port1>;
  50. linux,default-trigger = "usbport";
  51. };
  52. wps {
  53. label = "white:wps";
  54. gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
  55. };
  56. };
  57. gpio-keys {
  58. compatible = "gpio-keys";
  59. button-wps {
  60. label = "WPS";
  61. linux,code = <KEY_WPS_BUTTON>;
  62. gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
  63. };
  64. button-reset {
  65. label = "Reset";
  66. linux,code = <KEY_RESTART>;
  67. gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  68. };
  69. button-wifi {
  70. label = "Wi-Fi";
  71. linux,code = <KEY_RFKILL>;
  72. gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  73. };
  74. button-led {
  75. label = "Backlight";
  76. linux,code = <KEY_BRIGHTNESS_ZERO>;
  77. gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
  78. };
  79. };
  80. switch {
  81. compatible = "realtek,rtl8365mb";
  82. /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */
  83. mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
  84. mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
  85. reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
  86. realtek,disable-leds;
  87. dsa,member = <1 0>;
  88. ports {
  89. #address-cells = <1>;
  90. #size-cells = <0>;
  91. port@0 {
  92. reg = <0>;
  93. label = "lan5";
  94. phy-handle = <&ethphy0>;
  95. };
  96. port@1 {
  97. reg = <1>;
  98. label = "lan6";
  99. phy-handle = <&ethphy1>;
  100. };
  101. port@2 {
  102. reg = <2>;
  103. label = "lan7";
  104. phy-handle = <&ethphy2>;
  105. };
  106. port@3 {
  107. reg = <3>;
  108. label = "lan8";
  109. phy-handle = <&ethphy3>;
  110. };
  111. port@6 {
  112. reg = <6>;
  113. label = "cpu";
  114. ethernet = <&sw0_p5>;
  115. phy-mode = "rgmii";
  116. tx-internal-delay-ps = <2000>;
  117. rx-internal-delay-ps = <2100>;
  118. fixed-link {
  119. speed = <1000>;
  120. full-duplex;
  121. pause;
  122. };
  123. };
  124. };
  125. mdio {
  126. compatible = "realtek,smi-mdio";
  127. #address-cells = <1>;
  128. #size-cells = <0>;
  129. ethphy0: ethernet-phy@0 {
  130. reg = <0>;
  131. };
  132. ethphy1: ethernet-phy@1 {
  133. reg = <1>;
  134. };
  135. ethphy2: ethernet-phy@2 {
  136. reg = <2>;
  137. };
  138. ethphy3: ethernet-phy@3 {
  139. reg = <3>;
  140. };
  141. };
  142. };
  143. };
  144. &srab {
  145. compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
  146. status = "okay";
  147. dsa,member = <0 0>;
  148. ports {
  149. port@0 {
  150. reg = <0>;
  151. label = "lan4";
  152. };
  153. port@1 {
  154. reg = <1>;
  155. label = "lan3";
  156. };
  157. port@2 {
  158. reg = <2>;
  159. label = "lan2";
  160. };
  161. port@3 {
  162. reg = <3>;
  163. label = "lan1";
  164. };
  165. port@4 {
  166. reg = <4>;
  167. label = "wan";
  168. };
  169. sw0_p5: port@5 {
  170. reg = <5>;
  171. label = "extsw";
  172. phy-mode = "rgmii";
  173. fixed-link {
  174. speed = <1000>;
  175. full-duplex;
  176. pause;
  177. };
  178. };
  179. port@7 {
  180. reg = <7>;
  181. ethernet = <&gmac1>;
  182. label = "cpu";
  183. fixed-link {
  184. speed = <1000>;
  185. full-duplex;
  186. };
  187. };
  188. port@8 {
  189. reg = <8>;
  190. ethernet = <&gmac2>;
  191. label = "cpu";
  192. fixed-link {
  193. speed = <1000>;
  194. full-duplex;
  195. };
  196. };
  197. };
  198. };
  199. &gmac0 {
  200. status = "disabled";
  201. };
  202. &gmac1 {
  203. nvmem-cells = <&et1macaddr>;
  204. nvmem-cell-names = "mac-address";
  205. };
  206. &usb2 {
  207. vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  208. };
  209. &usb3_phy {
  210. status = "okay";
  211. };
  212. &nandcs {
  213. partitions {
  214. compatible = "fixed-partitions";
  215. #address-cells = <1>;
  216. #size-cells = <1>;
  217. partition@0 {
  218. label = "boot";
  219. reg = <0x00000000 0x00080000>;
  220. read-only;
  221. };
  222. partition@80000 {
  223. label = "nvram";
  224. reg = <0x00080000 0x00180000>;
  225. };
  226. partition@200000 {
  227. label = "firmware";
  228. reg = <0x00200000 0x07e00000>;
  229. compatible = "brcm,trx";
  230. };
  231. };
  232. };