1 From 2900083269f7c0f0ff430bffc6ced2038aed9b6b 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: Thu, 3 Aug 2023 10:14:54 +0300
4 Subject: [PATCH] ARM: dts: BCM5301X: Add DT for ASUS RT-AC3100
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 ASUS RT-AC3100 is ASUS RT-AC88U without the external switch. Move the
10 shared bindings to bcm47094-asus-rt-ac3100.dtsi.
12 Remove the fixed-link node on port@7 as commit ba4aebce23b2 ("ARM: dts:
13 BCM5301X: Describe switch ports in the main DTS") states it's not
16 Replace the copyright notice with an author notice.
18 Rename the model name from Asus to ASUS on bcm47094-asus-rt-ac88u.dts.
20 Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
21 Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
22 Link: https://lore.kernel.org/r/20230803071454.5902-2-arinc.unal@arinc9.com
23 Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
25 arch/arm/boot/dts/Makefile | 1 +
26 .../dts/bcm47094-asus-rt-ac3100.dts | 23 +++
27 .../dts/bcm47094-asus-rt-ac3100.dtsi | 163 ++++++++++++++++++
28 .../dts/bcm47094-asus-rt-ac88u.dts | 155 +----------------
29 4 files changed, 190 insertions(+), 152 deletions(-)
30 create mode 100644 arch/arm/boot/dts/bcm47094-asus-rt-ac3100.dts
31 create mode 100644 arch/arm/boot/dts/bcm47094-asus-rt-ac3100.dtsi
33 --- a/arch/arm/boot/dts/Makefile
34 +++ b/arch/arm/boot/dts/Makefile
35 @@ -127,6 +127,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
36 bcm4709-netgear-r7000.dtb \
37 bcm4709-netgear-r8000.dtb \
38 bcm4709-tplink-archer-c9-v1.dtb \
39 + bcm47094-asus-rt-ac3100.dtb \
40 bcm47094-asus-rt-ac88u.dtb \
41 bcm47094-dlink-dir-885l.dtb \
42 bcm47094-dlink-dir-890l.dtb \
44 +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac3100.dts
46 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
48 + * Author: Arınç ÜNAL <arinc.unal@arinc9.com>
53 +#include "bcm47094-asus-rt-ac3100.dtsi"
56 + compatible = "asus,rt-ac3100", "brcm,bcm47094", "brcm,bcm4708";
57 + model = "ASUS RT-AC3100";
60 + et0macaddr: et0macaddr {
66 + nvmem-cells = <&et0macaddr>;
67 + nvmem-cell-names = "mac-address";
70 +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac3100.dtsi
72 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
74 + * Author: Arınç ÜNAL <arinc.unal@arinc9.com>
77 +#include "bcm47094.dtsi"
78 +#include "bcm5301x-nand-cs0-bch8.dtsi"
82 + bootargs = "earlycon";
86 + device_type = "memory";
87 + reg = <0x00000000 0x08000000>,
88 + <0x88000000 0x18000000>;
92 + compatible = "brcm,nvram";
93 + reg = <0x1c080000 0x00180000>;
97 + compatible = "gpio-leds";
100 + label = "white:power";
101 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
102 + linux,default-trigger = "default-on";
107 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
111 + label = "white:lan";
112 + gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
116 + label = "white:usb2";
117 + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
118 + trigger-sources = <&ehci_port2>;
119 + linux,default-trigger = "usbport";
123 + label = "white:usb3";
124 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
125 + trigger-sources = <&ehci_port1>, <&xhci_port1>;
126 + linux,default-trigger = "usbport";
130 + label = "white:wps";
131 + gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
136 + compatible = "gpio-keys";
140 + linux,code = <KEY_WPS_BUTTON>;
141 + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
146 + linux,code = <KEY_RESTART>;
147 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
152 + linux,code = <KEY_RFKILL>;
153 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
157 + label = "Backlight";
158 + linux,code = <KEY_BRIGHTNESS_ZERO>;
159 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
165 + compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
204 + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
213 + compatible = "fixed-partitions";
214 + #address-cells = <1>;
219 + reg = <0x00000000 0x00080000>;
225 + reg = <0x00080000 0x00180000>;
229 + label = "firmware";
230 + reg = <0x00200000 0x07e00000>;
231 + compatible = "brcm,trx";
235 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
236 +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
238 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
240 - * Copyright (C) 2021-2022 Arınç ÜNAL <arinc.unal@arinc9.com>
241 + * Author: Arınç ÜNAL <arinc.unal@arinc9.com>
246 -#include "bcm47094.dtsi"
247 -#include "bcm5301x-nand-cs0-bch8.dtsi"
248 +#include "bcm47094-asus-rt-ac3100.dtsi"
251 compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708";
252 - model = "Asus RT-AC88U";
255 - bootargs = "earlycon";
259 - device_type = "memory";
260 - reg = <0x00000000 0x08000000>,
261 - <0x88000000 0x18000000>;
263 + model = "ASUS RT-AC88U";
266 - compatible = "brcm,nvram";
267 - reg = <0x1c080000 0x00180000>;
269 et1macaddr: et1macaddr {
274 - compatible = "gpio-leds";
277 - label = "white:power";
278 - gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
279 - linux,default-trigger = "default-on";
284 - gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
288 - label = "white:lan";
289 - gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
293 - label = "white:usb2";
294 - gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
295 - trigger-sources = <&ehci_port2>;
296 - linux,default-trigger = "usbport";
300 - label = "white:usb3";
301 - gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
302 - trigger-sources = <&ehci_port1>, <&xhci_port1>;
303 - linux,default-trigger = "usbport";
307 - label = "white:wps";
308 - gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
313 - compatible = "gpio-keys";
317 - linux,code = <KEY_WPS_BUTTON>;
318 - gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
323 - linux,code = <KEY_RESTART>;
324 - gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
329 - linux,code = <KEY_RFKILL>;
330 - gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
334 - label = "Backlight";
335 - linux,code = <KEY_BRIGHTNESS_ZERO>;
336 - gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
341 compatible = "realtek,rtl8365mb";
342 /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */
347 - compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
373 /delete-property/ethernet;
396 nvmem-cells = <&et1macaddr>;
397 nvmem-cell-names = "mac-address";
401 - vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
410 - compatible = "fixed-partitions";
411 - #address-cells = <1>;
416 - reg = <0x00000000 0x00080000>;
422 - reg = <0x00080000 0x00180000>;
426 - label = "firmware";
427 - reg = <0x00200000 0x07e00000>;
428 - compatible = "brcm,trx";