ipq4019: fix even more wrong reference to USB node
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-rt-ac42u.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
8
9 / {
10 model = "ASUS RT-AC42U";
11 compatible = "asus,rt-ac42u";
12
13 memory {
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>; /* 256MB */
16 };
17
18 aliases {
19 led-boot = &led_power;
20 led-failsafe = &led_power;
21 led-running = &led_power;
22 led-upgrade = &led_power;
23 };
24
25 soc {
26 rng@22000 {
27 status = "okay";
28 };
29
30 mdio@90000 {
31 status = "okay";
32 };
33
34 tcsr@1949000 {
35 compatible = "qcom,tcsr";
36 reg = <0x1949000 0x100>;
37 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
38 };
39
40 tcsr@194b000 {
41 compatible = "qcom,tcsr";
42 reg = <0x194b000 0x100>;
43 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
44 };
45
46 ess_tcsr@1953000 {
47 compatible = "qcom,tcsr";
48 reg = <0x1953000 0x1000>;
49 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
50 };
51
52 tcsr@1957000 {
53 compatible = "qcom,tcsr";
54 reg = <0x1957000 0x100>;
55 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
56 };
57
58 crypto@8e3a000 {
59 status = "okay";
60 };
61
62 watchdog@b017000 {
63 status = "okay";
64 };
65 };
66
67 keys {
68 compatible = "gpio-keys";
69
70 reset {
71 label = "reset";
72 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
74 };
75
76 wps {
77 label = "wps";
78 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
80 };
81 };
82
83 leds {
84 compatible = "gpio-leds";
85
86 led_power: led-0 {
87 color = <LED_COLOR_ID_BLUE>;
88 function = LED_FUNCTION_STATUS;
89 gpios = <&tlmm 40 GPIO_ACTIVE_LOW>;
90 };
91
92 led-1 {
93 color = <LED_COLOR_ID_BLUE>;
94 function = LED_FUNCTION_WAN;
95 gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
96 linux,default-trigger = "90000.mdio-1:04:link";
97 };
98
99 led-2 {
100 color = <LED_COLOR_ID_RED>;
101 function = LED_FUNCTION_WAN;
102 gpios = <&tlmm 68 GPIO_ACTIVE_HIGH>;
103 linux,default-trigger = "none";
104 };
105
106 led-3 {
107 color = <LED_COLOR_ID_BLUE>;
108 function = LED_FUNCTION_WLAN;
109 function-enumerator = <0>;
110 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
111 linux,default-trigger = "phy1tpt";
112 };
113
114 led-4 {
115 color = <LED_COLOR_ID_BLUE>;
116 function = LED_FUNCTION_WLAN;
117 function-enumerator = <1>;
118 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
119 linux,default-trigger = "phy0tpt";
120 };
121
122 led-5 {
123 color = <LED_COLOR_ID_BLUE>;
124 function = LED_FUNCTION_LAN;
125 function-enumerator = <1>;
126 gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
127 };
128
129 led-6 {
130 color = <LED_COLOR_ID_BLUE>;
131 function = LED_FUNCTION_LAN;
132 function-enumerator = <2>;
133 gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
134 };
135
136 led-7 {
137 color = <LED_COLOR_ID_BLUE>;
138 function = LED_FUNCTION_LAN;
139 function-enumerator = <3>;
140 gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
141 };
142
143 led-8 {
144 color = <LED_COLOR_ID_BLUE>;
145 function = LED_FUNCTION_LAN;
146 function-enumerator = <4>;
147 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
148 };
149 };
150 };
151
152 &cryptobam {
153 status = "okay";
154 };
155
156 &blsp_dma {
157 status = "okay";
158 };
159
160 &qpic_bam {
161 status = "okay";
162 };
163
164 &tlmm {
165 serial_0_pins: serial0_pinmux {
166 mux {
167 pins = "gpio16", "gpio17";
168 function = "blsp_uart0";
169 bias-disable;
170 };
171 };
172
173 nand_pins: nand_pins {
174 pullups {
175 pins = "gpio53", "gpio58", "gpio59";
176 function = "qpic";
177 bias-pull-up;
178 };
179
180 pulldowns {
181 pins = "gpio55", "gpio56", "gpio57", "gpio60",
182 "gpio62", "gpio63", "gpio64", "gpio65",
183 "gpio66", "gpio67", "gpio69";
184 function = "qpic";
185 bias-pull-down;
186 };
187 };
188 };
189
190 &blsp1_uart1 {
191 pinctrl-0 = <&serial_0_pins>;
192 pinctrl-names = "default";
193 status = "okay";
194 };
195
196 &nand {
197 pinctrl-0 = <&nand_pins>;
198 pinctrl-names = "default";
199 status = "okay";
200
201 nand@0 {
202 partitions {
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
205 #size-cells = <1>;
206
207 partition@0 {
208 label = "SBL1";
209 reg = <0x00000000 0x00080000>;
210 read-only;
211 };
212 partition@80000 {
213 label = "MIBIB";
214 reg = <0x00080000 0x00080000>;
215 read-only;
216 };
217 partition@100000 {
218 label = "QSEE";
219 reg = <0x00100000 0x00100000>;
220 read-only;
221 };
222 partition@200000 {
223 label = "CDT";
224 reg = <0x00200000 0x00080000>;
225 read-only;
226 };
227 partition@280000 {
228 label = "APPSBL";
229 reg = <0x00280000 0x00140000>;
230 read-only;
231 };
232 partition@3C0000 {
233 label = "APPSBLENV";
234 reg = <0x003C0000 0x00040000>;
235 read-only;
236 };
237 partition@400000 {
238 label = "ubi";
239 reg = <0x00400000 0x07C00000>;
240 };
241 };
242 };
243 };
244
245 &usb3_ss_phy {
246 status = "okay";
247 };
248
249 &usb3_hs_phy {
250 status = "okay";
251 };
252
253 &usb3 {
254 status = "okay";
255 };
256
257 &usb3_dwc {
258 #address-cells = <1>;
259 #size-cells = <0>;
260
261 usb3_port1: port@1 {
262 reg = <1>;
263 #trigger-source-cells = <0>;
264 };
265
266 usb3_port2: port@2 {
267 reg = <2>;
268 #trigger-source-cells = <0>;
269 };
270 };
271
272 &gmac {
273 status = "okay";
274 };
275
276 &switch {
277 status = "okay";
278 };
279
280 &swport1 {
281 status = "okay";
282 };
283
284 &swport2 {
285 status = "okay";
286 };
287
288 &swport3 {
289 status = "okay";
290 };
291
292 &swport4 {
293 status = "okay";
294 };
295
296 &swport5 {
297 status = "okay";
298 };
299
300 &wifi0 {
301 status = "okay";
302 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
303 };
304
305 &pcie0 {
306 status = "okay";
307 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
308 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
309 clkreq-gpio = <&tlmm 39 GPIO_ACTIVE_LOW>;
310
311 bridge@0,0 {
312 reg = <0x00000000 0 0 0 0>;
313 #address-cells = <3>;
314 #size-cells = <2>;
315 ranges;
316
317 wifi2: wifi@1,0 {
318 compatible = "qcom,ath10k";
319 reg = <0x00010000 0 0 0 0>;
320
321 qcom,ath10k-calibration-variant = "ASUS-RT-AC42U";
322 };
323 };
324 };