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-map-ac2200.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/soc/qcom,tcsr.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "ASUS Lyra MAP-AC2200";
11 compatible = "asus,map-ac2200";
12
13 aliases {
14 led-boot = &led_blue0;
15 led-failsafe = &led_red0;
16 led-running = &led_blue0;
17 led-upgrade = &led_red0;
18 ethernet1 = &swport4;
19 };
20
21 soc {
22 rng@22000 {
23 status = "okay";
24 };
25
26 mdio@90000 {
27 status = "okay";
28 };
29
30 tcsr@1949000 {
31 compatible = "qcom,tcsr";
32 reg = <0x1949000 0x100>;
33 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
34 };
35
36 ess_tcsr@1953000 {
37 compatible = "qcom,tcsr";
38 reg = <0x1953000 0x1000>;
39 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
40 };
41
42 tcsr@1957000 {
43 compatible = "qcom,tcsr";
44 reg = <0x1957000 0x100>;
45 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
46 };
47
48 crypto@8e3a000 {
49 status = "okay";
50 };
51
52 watchdog@b017000 {
53 status = "okay";
54 };
55 };
56
57 keys {
58 compatible = "gpio-keys";
59
60 reset {
61 label = "reset";
62 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_RESTART>;
64 };
65
66 wps {
67 label = "wps";
68 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
69 linux,code = <KEY_WPS_BUTTON>;
70 };
71 };
72 };
73
74 &nand {
75 pinctrl-0 = <&nand_pins>;
76 pinctrl-names = "default";
77 status = "okay";
78
79 nand@0 {
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "SBL1";
87 reg = <0x0 0x80000>;
88 read-only;
89 };
90
91 partition@80000 {
92 label = "MIBIB";
93 reg = <0x80000 0x80000>;
94 read-only;
95 };
96
97 partition@100000 {
98 label = "QSEE";
99 reg = <0x100000 0x100000>;
100 read-only;
101 };
102
103 partition@200000 {
104 label = "CDT";
105 reg = <0x200000 0x80000>;
106 read-only;
107 };
108
109 partition@280000 {
110 label = "APPSBL";
111 reg = <0x280000 0x140000>;
112 read-only;
113 };
114
115 partition@3c0000 {
116 label = "APPSBLENV";
117 reg = <0x3c0000 0x40000>;
118 read-only;
119 };
120
121 partition@400000 {
122 label = "ubi";
123 reg = <0x400000 0x7c00000>;
124 };
125 };
126 };
127 };
128
129 &tlmm {
130 i2c_0_pins: i2c_0_pinmux {
131 pinmux {
132 function = "blsp_i2c0";
133 pins = "gpio20", "gpio21";
134 drive-strength = <16>;
135 bias-disable;
136 };
137 };
138
139 serial_pins: serial_pinmux {
140 mux {
141 pins = "gpio16", "gpio17";
142 function = "blsp_uart0";
143 bias-disable;
144 };
145 };
146
147 nand_pins: nand_pins {
148 pullups {
149 pins = "gpio52", "gpio53", "gpio58",
150 "gpio59";
151 function = "qpic";
152 bias-pull-up;
153 };
154
155 pulldowns {
156 pins = "gpio54", "gpio55", "gpio56",
157 "gpio57", "gpio60", "gpio61",
158 "gpio62", "gpio63", "gpio64",
159 "gpio65", "gpio66", "gpio67",
160 "gpio68", "gpio69";
161 function = "qpic";
162 bias-pull-down;
163 };
164 };
165 enable_ext_pa_high {
166 gpio-hog;
167 gpios = <44 GPIO_ACTIVE_HIGH>,
168 <46 GPIO_ACTIVE_HIGH>;
169 output-high;
170 bias-pull-down;
171 line-name = "enable external PA output-high";
172 };
173 enable_ext_pa_low {
174 gpio-hog;
175 gpios = <45 GPIO_ACTIVE_HIGH>,
176 <47 GPIO_ACTIVE_HIGH>;
177 output-low;
178 bias-pull-down;
179 line-name = "enable external PA output-low";
180 };
181 };
182
183 &cryptobam {
184 status = "okay";
185 };
186
187 &blsp_dma {
188 status = "okay";
189 };
190
191 &qpic_bam {
192 status = "okay";
193 };
194
195 &wifi0 {
196 status = "okay";
197 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
198 };
199
200 &wifi1 {
201 status = "okay";
202 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
203 ieee80211-freq-limit = <5470000 5875000>;
204 };
205
206 &pcie0 {
207 status = "okay";
208 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
209 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
210
211 bridge@0,0 {
212 reg = <0x00000000 0 0 0 0>;
213 #address-cells = <3>;
214 #size-cells = <2>;
215 ranges;
216
217 wifi2: wifi@1,0 {
218 compatible = "qcom,ath10k";
219 status = "okay";
220 reg = <0x00010000 0 0 0 0>;
221 qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
222 ieee80211-freq-limit = <5170000 5350000>;
223 };
224 };
225 };
226
227 &usb2_hs_phy {
228 /* Bluetooth module attached via USB */
229 status = "okay";
230 };
231
232 &usb2 {
233 status = "okay";
234 };
235
236 &blsp1_i2c3 {
237 pinctrl-0 = <&i2c_0_pins>;
238 pinctrl-names = "default";
239 status = "okay";
240
241 led-controller@32 {
242 /* 9-channel RGB LED controller */
243 compatible = "national,lp5523";
244 reg = <0x32>;
245 clock-mode = /bits/ 8 <1>;
246 #address-cells = <1>;
247 #size-cells = <0>;
248
249 /*
250 * There is only one single extremely bright RGB-LED.
251 * The RGB-color channels are running in parallel to
252 * increase the current delivery capabilities beyond
253 * what a single PWM-output of the controller can do.
254 */
255
256 led_blue0: led@0 {
257 chan-name = "blue-0";
258 led-cur = /bits/ 8 <0xfa>;
259 max-cur = /bits/ 8 <0xff>;
260 reg = <0>;
261 color = <LED_COLOR_ID_BLUE>;
262 function-enumerator = <0>;
263 };
264
265 led@1 {
266 chan-name = "blue-1";
267 led-cur = /bits/ 8 <0xfa>;
268 max-cur = /bits/ 8 <0xff>;
269 reg = <1>;
270 color = <LED_COLOR_ID_BLUE>;
271 function-enumerator = <1>;
272 };
273
274 led@2 {
275 chan-name = "blue-2";
276 led-cur = /bits/ 8 <0xfa>;
277 max-cur = /bits/ 8 <0xff>;
278 reg = <2>;
279 color = <LED_COLOR_ID_BLUE>;
280 function-enumerator = <2>;
281 };
282
283 led_green0: led@3 {
284 chan-name = "green-0";
285 led-cur = /bits/ 8 <0xfa>;
286 max-cur = /bits/ 8 <0xff>;
287 reg = <3>;
288 color = <LED_COLOR_ID_GREEN>;
289 function-enumerator = <0>;
290 };
291
292 led@4 {
293 chan-name = "green-1";
294 led-cur = /bits/ 8 <0xfa>;
295 max-cur = /bits/ 8 <0xff>;
296 reg = <4>;
297 color = <LED_COLOR_ID_GREEN>;
298 function-enumerator = <1>;
299 };
300
301 led@5 {
302 chan-name = "green-2";
303 led-cur = /bits/ 8 <0xfa>;
304 max-cur = /bits/ 8 <0xff>;
305 reg = <5>;
306 color = <LED_COLOR_ID_GREEN>;
307 function-enumerator = <2>;
308 };
309
310 led_red0: led@6 {
311 chan-name = "red-0";
312 led-cur = /bits/ 8 <0xfa>;
313 max-cur = /bits/ 8 <0xff>;
314 reg = <6>;
315 color = <LED_COLOR_ID_RED>;
316 function-enumerator = <0>;
317 };
318
319 led@7 {
320 chan-name = "red-1";
321 led-cur = /bits/ 8 <0xfa>;
322 max-cur = /bits/ 8 <0xff>;
323 reg = <7>;
324 color = <LED_COLOR_ID_RED>;
325 function-enumerator = <1>;
326 };
327
328 led@8 {
329 chan-name = "red-2";
330 led-cur = /bits/ 8 <0xfa>;
331 max-cur = /bits/ 8 <0xff>;
332 reg = <8>;
333 color = <LED_COLOR_ID_RED>;
334 function-enumerator = <2>;
335 };
336 };
337 };
338
339 &blsp1_uart1 {
340 pinctrl-0 = <&serial_pins>;
341 pinctrl-names = "default";
342 status = "okay";
343 };
344
345 &gmac {
346 status = "okay";
347 };
348
349 &switch {
350 status = "okay";
351 };
352
353 &swport4 {
354 status = "okay";
355
356 label = "wan";
357 };
358
359 &swport5 {
360 status = "okay";
361
362 label = "lan";
363 };