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
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
12 Processor - Broadcom BCM4709C0KFEBG dual-core @ 1.4 GHz
13 Switch - BCM53012 in BCM4709C0KFEBG & external RTL8365MB
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
20 Tested on OpenWrt on kernel 5.10 built with DSA driver.
22 Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
23 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
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
30 --- a/arch/arm/boot/dts/Makefile
31 +++ b/arch/arm/boot/dts/Makefile
32 @@ -117,6 +117,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 \
41 +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
43 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
45 + * Copyright (C) 2021 Arınç ÜNAL <arinc.unal@arinc9.com>
50 +#include "bcm47094.dtsi"
51 +#include "bcm5301x-nand-cs0-bch8.dtsi"
54 + compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708";
55 + model = "Asus RT-AC88U";
58 + bootargs = "earlycon";
62 + device_type = "memory";
63 + reg = <0x00000000 0x08000000>,
64 + <0x88000000 0x18000000>;
68 + compatible = "brcm,nvram";
69 + reg = <0x1c080000 0x00180000>;
73 + compatible = "gpio-leds";
76 + label = "white:power";
77 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
78 + linux,default-trigger = "default-on";
83 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
87 + label = "white:lan";
88 + gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
92 + label = "white:usb2";
93 + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
94 + trigger-sources = <&ehci_port2>;
95 + linux,default-trigger = "usbport";
99 + label = "white:usb3";
100 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
101 + trigger-sources = <&ehci_port1>, <&xhci_port1>;
102 + linux,default-trigger = "usbport";
106 + label = "white:wps";
107 + gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
112 + compatible = "gpio-keys";
113 + #address-cells = <1>;
118 + linux,code = <KEY_WPS_BUTTON>;
119 + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
124 + linux,code = <KEY_RESTART>;
125 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
130 + linux,code = <KEY_RFKILL>;
131 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
135 + label = "Backlight";
136 + linux,code = <KEY_BRIGHTNESS_ZERO>;
137 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
143 + compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
145 + dsa,member = <0 0>;
148 + #address-cells = <1>;
188 + ethernet = <&gmac1>;
199 + ethernet = <&gmac2>;
201 + status = "disabled";
212 + vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
221 + compatible = "fixed-partitions";
222 + #address-cells = <1>;
227 + reg = <0x00000000 0x00080000>;
233 + reg = <0x00080000 0x00180000>;
237 + label = "firmware";
238 + reg = <0x00200000 0x07e00000>;
239 + compatible = "brcm,trx";