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