xref: /freebsd/sys/contrib/device-tree/src/arm/broadcom/bcm47094-asus-rt-ac3100.dtsi (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1*aa1a8ff2SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*aa1a8ff2SEmmanuel Vadot/*
3*aa1a8ff2SEmmanuel Vadot * Author: Arınç ÜNAL <arinc.unal@arinc9.com>
4*aa1a8ff2SEmmanuel Vadot */
5*aa1a8ff2SEmmanuel Vadot
6*aa1a8ff2SEmmanuel Vadot#include "bcm47094.dtsi"
7*aa1a8ff2SEmmanuel Vadot#include "bcm5301x-nand-cs0-bch8.dtsi"
8*aa1a8ff2SEmmanuel Vadot
9*aa1a8ff2SEmmanuel Vadot/ {
10*aa1a8ff2SEmmanuel Vadot	chosen {
11*aa1a8ff2SEmmanuel Vadot		bootargs = "earlycon";
12*aa1a8ff2SEmmanuel Vadot	};
13*aa1a8ff2SEmmanuel Vadot
14*aa1a8ff2SEmmanuel Vadot	memory@0 {
15*aa1a8ff2SEmmanuel Vadot		device_type = "memory";
16*aa1a8ff2SEmmanuel Vadot		reg = <0x00000000 0x08000000>,
17*aa1a8ff2SEmmanuel Vadot		      <0x88000000 0x18000000>;
18*aa1a8ff2SEmmanuel Vadot	};
19*aa1a8ff2SEmmanuel Vadot
20*aa1a8ff2SEmmanuel Vadot	nvram@1c080000 {
21*aa1a8ff2SEmmanuel Vadot		compatible = "brcm,nvram";
22*aa1a8ff2SEmmanuel Vadot		reg = <0x1c080000 0x00180000>;
23*aa1a8ff2SEmmanuel Vadot	};
24*aa1a8ff2SEmmanuel Vadot
25*aa1a8ff2SEmmanuel Vadot	leds {
26*aa1a8ff2SEmmanuel Vadot		compatible = "gpio-leds";
27*aa1a8ff2SEmmanuel Vadot
28*aa1a8ff2SEmmanuel Vadot		led-power {
29*aa1a8ff2SEmmanuel Vadot			label = "white:power";
30*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
31*aa1a8ff2SEmmanuel Vadot			linux,default-trigger = "default-on";
32*aa1a8ff2SEmmanuel Vadot		};
33*aa1a8ff2SEmmanuel Vadot
34*aa1a8ff2SEmmanuel Vadot		led-wan-red {
35*aa1a8ff2SEmmanuel Vadot			label = "red:wan";
36*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
37*aa1a8ff2SEmmanuel Vadot		};
38*aa1a8ff2SEmmanuel Vadot
39*aa1a8ff2SEmmanuel Vadot		led-lan {
40*aa1a8ff2SEmmanuel Vadot			label = "white:lan";
41*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
42*aa1a8ff2SEmmanuel Vadot		};
43*aa1a8ff2SEmmanuel Vadot
44*aa1a8ff2SEmmanuel Vadot		led-usb2 {
45*aa1a8ff2SEmmanuel Vadot			label = "white:usb2";
46*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
47*aa1a8ff2SEmmanuel Vadot			trigger-sources = <&ehci_port2>;
48*aa1a8ff2SEmmanuel Vadot			linux,default-trigger = "usbport";
49*aa1a8ff2SEmmanuel Vadot		};
50*aa1a8ff2SEmmanuel Vadot
51*aa1a8ff2SEmmanuel Vadot		led-usb3 {
52*aa1a8ff2SEmmanuel Vadot			label = "white:usb3";
53*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
54*aa1a8ff2SEmmanuel Vadot			trigger-sources = <&ehci_port1>, <&xhci_port1>;
55*aa1a8ff2SEmmanuel Vadot			linux,default-trigger = "usbport";
56*aa1a8ff2SEmmanuel Vadot		};
57*aa1a8ff2SEmmanuel Vadot
58*aa1a8ff2SEmmanuel Vadot		led-wps {
59*aa1a8ff2SEmmanuel Vadot			label = "white:wps";
60*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
61*aa1a8ff2SEmmanuel Vadot		};
62*aa1a8ff2SEmmanuel Vadot	};
63*aa1a8ff2SEmmanuel Vadot
64*aa1a8ff2SEmmanuel Vadot	gpio-keys {
65*aa1a8ff2SEmmanuel Vadot		compatible = "gpio-keys";
66*aa1a8ff2SEmmanuel Vadot
67*aa1a8ff2SEmmanuel Vadot		button-wps {
68*aa1a8ff2SEmmanuel Vadot			label = "WPS";
69*aa1a8ff2SEmmanuel Vadot			linux,code = <KEY_WPS_BUTTON>;
70*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
71*aa1a8ff2SEmmanuel Vadot		};
72*aa1a8ff2SEmmanuel Vadot
73*aa1a8ff2SEmmanuel Vadot		button-reset {
74*aa1a8ff2SEmmanuel Vadot			label = "Reset";
75*aa1a8ff2SEmmanuel Vadot			linux,code = <KEY_RESTART>;
76*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
77*aa1a8ff2SEmmanuel Vadot		};
78*aa1a8ff2SEmmanuel Vadot
79*aa1a8ff2SEmmanuel Vadot		button-wifi {
80*aa1a8ff2SEmmanuel Vadot			label = "Wi-Fi";
81*aa1a8ff2SEmmanuel Vadot			linux,code = <KEY_RFKILL>;
82*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
83*aa1a8ff2SEmmanuel Vadot		};
84*aa1a8ff2SEmmanuel Vadot
85*aa1a8ff2SEmmanuel Vadot		button-led {
86*aa1a8ff2SEmmanuel Vadot			label = "Backlight";
87*aa1a8ff2SEmmanuel Vadot			linux,code = <KEY_BRIGHTNESS_ZERO>;
88*aa1a8ff2SEmmanuel Vadot			gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
89*aa1a8ff2SEmmanuel Vadot		};
90*aa1a8ff2SEmmanuel Vadot	};
91*aa1a8ff2SEmmanuel Vadot};
92*aa1a8ff2SEmmanuel Vadot
93*aa1a8ff2SEmmanuel Vadot&srab {
94*aa1a8ff2SEmmanuel Vadot	compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
95*aa1a8ff2SEmmanuel Vadot	status = "okay";
96*aa1a8ff2SEmmanuel Vadot
97*aa1a8ff2SEmmanuel Vadot	ports {
98*aa1a8ff2SEmmanuel Vadot		port@0 {
99*aa1a8ff2SEmmanuel Vadot			label = "lan4";
100*aa1a8ff2SEmmanuel Vadot		};
101*aa1a8ff2SEmmanuel Vadot
102*aa1a8ff2SEmmanuel Vadot		port@1 {
103*aa1a8ff2SEmmanuel Vadot			label = "lan3";
104*aa1a8ff2SEmmanuel Vadot		};
105*aa1a8ff2SEmmanuel Vadot
106*aa1a8ff2SEmmanuel Vadot		port@2 {
107*aa1a8ff2SEmmanuel Vadot			label = "lan2";
108*aa1a8ff2SEmmanuel Vadot		};
109*aa1a8ff2SEmmanuel Vadot
110*aa1a8ff2SEmmanuel Vadot		port@3 {
111*aa1a8ff2SEmmanuel Vadot			label = "lan1";
112*aa1a8ff2SEmmanuel Vadot		};
113*aa1a8ff2SEmmanuel Vadot
114*aa1a8ff2SEmmanuel Vadot		port@4 {
115*aa1a8ff2SEmmanuel Vadot			label = "wan";
116*aa1a8ff2SEmmanuel Vadot		};
117*aa1a8ff2SEmmanuel Vadot
118*aa1a8ff2SEmmanuel Vadot		port@5 {
119*aa1a8ff2SEmmanuel Vadot			label = "cpu";
120*aa1a8ff2SEmmanuel Vadot		};
121*aa1a8ff2SEmmanuel Vadot
122*aa1a8ff2SEmmanuel Vadot		port@7 {
123*aa1a8ff2SEmmanuel Vadot			label = "cpu";
124*aa1a8ff2SEmmanuel Vadot		};
125*aa1a8ff2SEmmanuel Vadot
126*aa1a8ff2SEmmanuel Vadot		port@8 {
127*aa1a8ff2SEmmanuel Vadot			label = "cpu";
128*aa1a8ff2SEmmanuel Vadot		};
129*aa1a8ff2SEmmanuel Vadot	};
130*aa1a8ff2SEmmanuel Vadot};
131*aa1a8ff2SEmmanuel Vadot
132*aa1a8ff2SEmmanuel Vadot&usb2 {
133*aa1a8ff2SEmmanuel Vadot	vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
134*aa1a8ff2SEmmanuel Vadot};
135*aa1a8ff2SEmmanuel Vadot
136*aa1a8ff2SEmmanuel Vadot&usb3_phy {
137*aa1a8ff2SEmmanuel Vadot	status = "okay";
138*aa1a8ff2SEmmanuel Vadot};
139*aa1a8ff2SEmmanuel Vadot
140*aa1a8ff2SEmmanuel Vadot&nandcs {
141*aa1a8ff2SEmmanuel Vadot	partitions {
142*aa1a8ff2SEmmanuel Vadot		compatible = "fixed-partitions";
143*aa1a8ff2SEmmanuel Vadot		#address-cells = <1>;
144*aa1a8ff2SEmmanuel Vadot		#size-cells = <1>;
145*aa1a8ff2SEmmanuel Vadot
146*aa1a8ff2SEmmanuel Vadot		partition@0 {
147*aa1a8ff2SEmmanuel Vadot			label = "boot";
148*aa1a8ff2SEmmanuel Vadot			reg = <0x00000000 0x00080000>;
149*aa1a8ff2SEmmanuel Vadot			read-only;
150*aa1a8ff2SEmmanuel Vadot		};
151*aa1a8ff2SEmmanuel Vadot
152*aa1a8ff2SEmmanuel Vadot		partition@80000 {
153*aa1a8ff2SEmmanuel Vadot			label = "nvram";
154*aa1a8ff2SEmmanuel Vadot			reg = <0x00080000 0x00180000>;
155*aa1a8ff2SEmmanuel Vadot		};
156*aa1a8ff2SEmmanuel Vadot
157*aa1a8ff2SEmmanuel Vadot		partition@200000 {
158*aa1a8ff2SEmmanuel Vadot			label = "firmware";
159*aa1a8ff2SEmmanuel Vadot			reg = <0x00200000 0x07e00000>;
160*aa1a8ff2SEmmanuel Vadot			compatible = "brcm,trx";
161*aa1a8ff2SEmmanuel Vadot		};
162*aa1a8ff2SEmmanuel Vadot	};
163*aa1a8ff2SEmmanuel Vadot};
164