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