|
1 | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
2 | 2 | /* |
3 | | - * Copyright (C) 2021-2022 Arınç ÜNAL <arinc.unal@arinc9.com> |
| 3 | + * Author: Arınç ÜNAL <arinc.unal@arinc9.com> |
4 | 4 | */ |
5 | 5 |
|
6 | 6 | /dts-v1/; |
7 | 7 |
|
8 | | -#include "bcm47094.dtsi" |
9 | | -#include "bcm5301x-nand-cs0-bch8.dtsi" |
| 8 | +#include "bcm47094-asus-rt-ac3100.dtsi" |
10 | 9 |
|
11 | 10 | / { |
12 | 11 | compatible = "asus,rt-ac88u", "brcm,bcm47094", "brcm,bcm4708"; |
13 | | - model = "Asus RT-AC88U"; |
14 | | - |
15 | | - chosen { |
16 | | - bootargs = "earlycon"; |
17 | | - }; |
18 | | - |
19 | | - memory@0 { |
20 | | - device_type = "memory"; |
21 | | - reg = <0x00000000 0x08000000>, |
22 | | - <0x88000000 0x18000000>; |
23 | | - }; |
| 12 | + model = "ASUS RT-AC88U"; |
24 | 13 |
|
25 | 14 | nvram@1c080000 { |
26 | | - compatible = "brcm,nvram"; |
27 | | - reg = <0x1c080000 0x00180000>; |
28 | | - |
29 | 15 | et1macaddr: et1macaddr { |
30 | 16 | }; |
31 | 17 | }; |
32 | 18 |
|
33 | | - leds { |
34 | | - compatible = "gpio-leds"; |
35 | | - |
36 | | - led-power { |
37 | | - label = "white:power"; |
38 | | - gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>; |
39 | | - linux,default-trigger = "default-on"; |
40 | | - }; |
41 | | - |
42 | | - led-wan-red { |
43 | | - label = "red:wan"; |
44 | | - gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>; |
45 | | - }; |
46 | | - |
47 | | - led-lan { |
48 | | - label = "white:lan"; |
49 | | - gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>; |
50 | | - }; |
51 | | - |
52 | | - led-usb2 { |
53 | | - label = "white:usb2"; |
54 | | - gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>; |
55 | | - trigger-sources = <&ehci_port2>; |
56 | | - linux,default-trigger = "usbport"; |
57 | | - }; |
58 | | - |
59 | | - led-usb3 { |
60 | | - label = "white:usb3"; |
61 | | - gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>; |
62 | | - trigger-sources = <&ehci_port1>, <&xhci_port1>; |
63 | | - linux,default-trigger = "usbport"; |
64 | | - }; |
65 | | - |
66 | | - led-wps { |
67 | | - label = "white:wps"; |
68 | | - gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>; |
69 | | - }; |
70 | | - }; |
71 | | - |
72 | | - gpio-keys { |
73 | | - compatible = "gpio-keys"; |
74 | | - |
75 | | - button-wps { |
76 | | - label = "WPS"; |
77 | | - linux,code = <KEY_WPS_BUTTON>; |
78 | | - gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>; |
79 | | - }; |
80 | | - |
81 | | - button-reset { |
82 | | - label = "Reset"; |
83 | | - linux,code = <KEY_RESTART>; |
84 | | - gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>; |
85 | | - }; |
86 | | - |
87 | | - button-wifi { |
88 | | - label = "Wi-Fi"; |
89 | | - linux,code = <KEY_RFKILL>; |
90 | | - gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>; |
91 | | - }; |
92 | | - |
93 | | - button-led { |
94 | | - label = "Backlight"; |
95 | | - linux,code = <KEY_BRIGHTNESS_ZERO>; |
96 | | - gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>; |
97 | | - }; |
98 | | - }; |
99 | | - |
100 | 19 | switch { |
101 | 20 | compatible = "realtek,rtl8365mb"; |
102 | 21 | /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */ |
|
175 | 94 | }; |
176 | 95 |
|
177 | 96 | &srab { |
178 | | - compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab"; |
179 | | - status = "okay"; |
180 | 97 | dsa,member = <0 0>; |
181 | 98 |
|
182 | 99 | ports { |
183 | | - port@0 { |
184 | | - label = "lan4"; |
185 | | - }; |
186 | | - |
187 | | - port@1 { |
188 | | - label = "lan3"; |
189 | | - }; |
190 | | - |
191 | | - port@2 { |
192 | | - label = "lan2"; |
193 | | - }; |
194 | | - |
195 | | - port@3 { |
196 | | - label = "lan1"; |
197 | | - }; |
198 | | - |
199 | | - port@4 { |
200 | | - label = "wan"; |
201 | | - }; |
202 | | - |
203 | 100 | sw0_p5: port@5 { |
204 | 101 | /delete-property/ethernet; |
205 | 102 |
|
|
212 | 109 | pause; |
213 | 110 | }; |
214 | 111 | }; |
215 | | - |
216 | | - port@7 { |
217 | | - label = "cpu"; |
218 | | - |
219 | | - fixed-link { |
220 | | - speed = <1000>; |
221 | | - full-duplex; |
222 | | - }; |
223 | | - }; |
224 | | - |
225 | | - port@8 { |
226 | | - label = "cpu"; |
227 | | - }; |
228 | 112 | }; |
229 | 113 | }; |
230 | 114 |
|
|
236 | 120 | nvmem-cells = <&et1macaddr>; |
237 | 121 | nvmem-cell-names = "mac-address"; |
238 | 122 | }; |
239 | | - |
240 | | -&usb2 { |
241 | | - vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>; |
242 | | -}; |
243 | | - |
244 | | -&usb3_phy { |
245 | | - status = "okay"; |
246 | | -}; |
247 | | - |
248 | | -&nandcs { |
249 | | - partitions { |
250 | | - compatible = "fixed-partitions"; |
251 | | - #address-cells = <1>; |
252 | | - #size-cells = <1>; |
253 | | - |
254 | | - partition@0 { |
255 | | - label = "boot"; |
256 | | - reg = <0x00000000 0x00080000>; |
257 | | - read-only; |
258 | | - }; |
259 | | - |
260 | | - partition@80000 { |
261 | | - label = "nvram"; |
262 | | - reg = <0x00080000 0x00180000>; |
263 | | - }; |
264 | | - |
265 | | - partition@200000 { |
266 | | - label = "firmware"; |
267 | | - reg = <0x00200000 0x07e00000>; |
268 | | - compatible = "brcm,trx"; |
269 | | - }; |
270 | | - }; |
271 | | -}; |
0 commit comments