xref: /linux/arch/arm/boot/dts/broadcom/bcm4709-asus-rt-ac3200.dts (revision daa121128a2d2ac6006159e2c47676e4fcd21eab)
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};
151