030-v5.16-0023-ARM-dts-BCM5301X-Add-DT-for-Asus-RT-AC88U.patch 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. From beff77b93452cd2057c859694709dd34a181488f Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <[email protected]>
  3. Date: Tue, 21 Sep 2021 20:19:01 +0800
  4. Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Asus RT-AC88U
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Hardware Info
  9. -------------
  10. Processor - Broadcom BCM4709C0KFEBG dual-core @ 1.4 GHz
  11. Switch - BCM53012 in BCM4709C0KFEBG & external RTL8365MB
  12. DDR3 RAM - 512 MB
  13. Flash - 128 MB (ESMT F59L1G81LA-25T)
  14. 2.4GHz - BCM4366 4×4 2.4/5G single chip 802.11ac SoC
  15. 5GHz - BCM4366 4×4 2.4/5G single chip 802.11ac SoC
  16. Ports - 8 Ports, 1 WAN Ports
  17. Tested on OpenWrt on kernel 5.10 built with DSA driver.
  18. Signed-off-by: Arınç ÜNAL <[email protected]>
  19. Signed-off-by: Florian Fainelli <[email protected]>
  20. ---
  21. arch/arm/boot/dts/Makefile | 1 +
  22. arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 200 +++++++++++++++++++
  23. 2 files changed, 201 insertions(+)
  24. create mode 100644 arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
  25. --- a/arch/arm/boot/dts/Makefile
  26. +++ b/arch/arm/boot/dts/Makefile
  27. @@ -117,6 +117,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
  28. bcm4709-netgear-r7000.dtb \
  29. bcm4709-netgear-r8000.dtb \
  30. bcm4709-tplink-archer-c9-v1.dtb \
  31. + bcm47094-asus-rt-ac88u.dtb \
  32. bcm47094-dlink-dir-885l.dtb \
  33. bcm47094-linksys-panamera.dtb \
  34. bcm47094-luxul-abr-4500.dtb \
  35. --- /dev/null
  36. +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
  37. @@ -0,0 +1,200 @@
  38. +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  39. +/*
  40. + * Copyright (C) 2021 Arınç ÜNAL <[email protected]>
  41. + */
  42. +
  43. +/dts-v1/;
  44. +
  45. +#include "bcm47094.dtsi"
  46. +#include "bcm5301x-nand-cs0-bch8.dtsi"
  47. +
  48. +/ {
  49. + compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708";
  50. + model = "Asus RT-AC88U";
  51. +
  52. + chosen {
  53. + bootargs = "earlycon";
  54. + };
  55. +
  56. + memory@0 {
  57. + device_type = "memory";
  58. + reg = <0x00000000 0x08000000>,
  59. + <0x88000000 0x18000000>;
  60. + };
  61. +
  62. + nvram@1c080000 {
  63. + compatible = "brcm,nvram";
  64. + reg = <0x1c080000 0x00180000>;
  65. + };
  66. +
  67. + leds {
  68. + compatible = "gpio-leds";
  69. +
  70. + power {
  71. + label = "white:power";
  72. + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
  73. + linux,default-trigger = "default-on";
  74. + };
  75. +
  76. + wan-red {
  77. + label = "red:wan";
  78. + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
  79. + };
  80. +
  81. + lan {
  82. + label = "white:lan";
  83. + gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
  84. + };
  85. +
  86. + usb2 {
  87. + label = "white:usb2";
  88. + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
  89. + trigger-sources = <&ehci_port2>;
  90. + linux,default-trigger = "usbport";
  91. + };
  92. +
  93. + usb3 {
  94. + label = "white:usb3";
  95. + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
  96. + trigger-sources = <&ehci_port1>, <&xhci_port1>;
  97. + linux,default-trigger = "usbport";
  98. + };
  99. +
  100. + wps {
  101. + label = "white:wps";
  102. + gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
  103. + };
  104. + };
  105. +
  106. + gpio-keys {
  107. + compatible = "gpio-keys";
  108. + #address-cells = <1>;
  109. + #size-cells = <0>;
  110. +
  111. + wps {
  112. + label = "WPS";
  113. + linux,code = <KEY_WPS_BUTTON>;
  114. + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
  115. + };
  116. +
  117. + reset {
  118. + label = "Reset";
  119. + linux,code = <KEY_RESTART>;
  120. + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
  121. + };
  122. +
  123. + wifi {
  124. + label = "Wi-Fi";
  125. + linux,code = <KEY_RFKILL>;
  126. + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
  127. + };
  128. +
  129. + led {
  130. + label = "Backlight";
  131. + linux,code = <KEY_BRIGHTNESS_ZERO>;
  132. + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
  133. + };
  134. + };
  135. +};
  136. +
  137. +&srab {
  138. + compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
  139. + status = "okay";
  140. + dsa,member = <0 0>;
  141. +
  142. + ports {
  143. + #address-cells = <1>;
  144. + #size-cells = <0>;
  145. +
  146. + port@0 {
  147. + reg = <0>;
  148. + label = "lan4";
  149. + };
  150. +
  151. + port@1 {
  152. + reg = <1>;
  153. + label = "lan3";
  154. + };
  155. +
  156. + port@2 {
  157. + reg = <2>;
  158. + label = "lan2";
  159. + };
  160. +
  161. + port@3 {
  162. + reg = <3>;
  163. + label = "lan1";
  164. + };
  165. +
  166. + port@4 {
  167. + reg = <4>;
  168. + label = "wan";
  169. + };
  170. +
  171. + sw0_p5: port@5 {
  172. + reg = <5>;
  173. + label = "extsw";
  174. +
  175. + fixed-link {
  176. + speed = <1000>;
  177. + full-duplex;
  178. + };
  179. + };
  180. +
  181. + port@7 {
  182. + reg = <7>;
  183. + ethernet = <&gmac1>;
  184. + label = "cpu";
  185. +
  186. + fixed-link {
  187. + speed = <1000>;
  188. + full-duplex;
  189. + };
  190. + };
  191. +
  192. + port@8 {
  193. + reg = <8>;
  194. + ethernet = <&gmac2>;
  195. + label = "cpu";
  196. + status = "disabled";
  197. +
  198. + fixed-link {
  199. + speed = <1000>;
  200. + full-duplex;
  201. + };
  202. + };
  203. + };
  204. +};
  205. +
  206. +&usb2 {
  207. + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
  208. +};
  209. +
  210. +&usb3_phy {
  211. + status = "okay";
  212. +};
  213. +
  214. +&nandcs {
  215. + partitions {
  216. + compatible = "fixed-partitions";
  217. + #address-cells = <1>;
  218. + #size-cells = <1>;
  219. +
  220. + partition@0 {
  221. + label = "boot";
  222. + reg = <0x00000000 0x00080000>;
  223. + read-only;
  224. + };
  225. +
  226. + partition@80000 {
  227. + label = "nvram";
  228. + reg = <0x00080000 0x00180000>;
  229. + };
  230. +
  231. + partition@200000 {
  232. + label = "firmware";
  233. + reg = <0x00200000 0x07e00000>;
  234. + compatible = "brcm,trx";
  235. + };
  236. + };
  237. +};