Skip to content

Commit b116239

Browse files
arinc9ffainelli
authored andcommitted
ARM: dts: BCM5301X: Add DT for ASUS RT-AC3200
Add the device tree for ASUS RT-AC3200 which is an AC3200 router featuring 5 Ethernet ports over the integrated Broadcom switch. Hardware info: * Processor: Broadcom BCM4709A0 dual-core @ 1.0 GHz * Switch: BCM53012 in BCM4709A0 * DDR3 RAM: 256 MB * Flash: 128 MB * 2.4GHz: BCM43602 3x3 single chip 802.11b/g/n SoC * 5GHz: BCM43602 3x3 two chips 802.11a/n/ac SoC * Ports: 4 LAN Ports, 1 WAN Port Co-developed-by: Tom Brautaset <tbrautaset@gmail.com> Signed-off-by: Tom Brautaset <tbrautaset@gmail.com> Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20240423-for-soc-asus-rt-ac3200-ac5300-v3-3-23d33cfafe7a@arinc9.com Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent 5b4ce81 commit b116239

2 files changed

Lines changed: 151 additions & 0 deletions

File tree

arch/arm/boot/dts/broadcom/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
6464
bcm47081-luxul-xap-1410.dtb \
6565
bcm47081-luxul-xwr-1200.dtb \
6666
bcm47081-tplink-archer-c5-v2.dtb \
67+
bcm4709-asus-rt-ac3200.dtb \
6768
bcm4709-asus-rt-ac87u.dtb \
6869
bcm4709-buffalo-wxr-1900dhp.dtb \
6970
bcm4709-linksys-ea9200.dtb \
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2+
/*
3+
* Author: Tom Brautaset <tbrautaset@gmail.com>
4+
*/
5+
6+
/dts-v1/;
7+
8+
#include "bcm4709.dtsi"
9+
#include "bcm5301x-nand-cs0-bch8.dtsi"
10+
11+
#include <dt-bindings/leds/common.h>
12+
13+
/ {
14+
compatible = "asus,rt-ac3200", "brcm,bcm4709", "brcm,bcm4708";
15+
model = "ASUS RT-AC3200";
16+
17+
memory@0 {
18+
reg = <0x00000000 0x08000000>,
19+
<0x88000000 0x08000000>;
20+
device_type = "memory";
21+
};
22+
23+
nvram@1c080000 {
24+
compatible = "brcm,nvram";
25+
reg = <0x1c080000 0x00180000>;
26+
27+
et0macaddr: et0macaddr {
28+
#nvmem-cell-cells = <1>;
29+
};
30+
};
31+
32+
gpio-keys {
33+
compatible = "gpio-keys";
34+
35+
button-reset {
36+
label = "Reset";
37+
linux,code = <KEY_RESTART>;
38+
gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
39+
};
40+
41+
button-wifi {
42+
label = "Wi-Fi";
43+
linux,code = <KEY_RFKILL>;
44+
gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
45+
};
46+
47+
button-wps {
48+
label = "WPS";
49+
linux,code = <KEY_WPS_BUTTON>;
50+
gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
51+
};
52+
};
53+
54+
leds {
55+
compatible = "gpio-leds";
56+
57+
led-power {
58+
color = <LED_COLOR_ID_WHITE>;
59+
function = LED_FUNCTION_POWER;
60+
gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
61+
linux,default-trigger = "default-on";
62+
};
63+
64+
led-wan-red {
65+
color = <LED_COLOR_ID_RED>;
66+
function = LED_FUNCTION_WAN;
67+
gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
68+
};
69+
70+
led-wps {
71+
color = <LED_COLOR_ID_WHITE>;
72+
function = LED_FUNCTION_WPS;
73+
gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
74+
};
75+
};
76+
};
77+
78+
&gmac0 {
79+
nvmem-cells = <&et0macaddr 0>;
80+
nvmem-cell-names = "mac-address";
81+
};
82+
83+
&gmac1 {
84+
nvmem-cells = <&et0macaddr 1>;
85+
nvmem-cell-names = "mac-address";
86+
};
87+
88+
&gmac2 {
89+
nvmem-cells = <&et0macaddr 2>;
90+
nvmem-cell-names = "mac-address";
91+
};
92+
93+
&nandcs {
94+
partitions {
95+
compatible = "fixed-partitions";
96+
#address-cells = <1>;
97+
#size-cells = <1>;
98+
99+
partition@0 {
100+
reg = <0x00000000 0x00080000>;
101+
label = "boot";
102+
read-only;
103+
};
104+
105+
partition@80000 {
106+
reg = <0x00080000 0x00180000>;
107+
label = "nvram";
108+
};
109+
110+
partition@200000 {
111+
compatible = "brcm,trx";
112+
reg = <0x00200000 0x07e00000>;
113+
label = "firmware";
114+
};
115+
};
116+
};
117+
118+
&srab {
119+
status = "okay";
120+
121+
ports {
122+
port@0 {
123+
label = "wan";
124+
};
125+
126+
port@1 {
127+
label = "lan1";
128+
};
129+
130+
port@2 {
131+
label = "lan2";
132+
};
133+
134+
port@3 {
135+
label = "lan3";
136+
};
137+
138+
port@4 {
139+
label = "lan4";
140+
};
141+
};
142+
};
143+
144+
&usb2 {
145+
vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
146+
};
147+
148+
&usb3_phy {
149+
status = "okay";
150+
};

0 commit comments

Comments
 (0)