mac80211: update to version 5.9.1
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files-6.6 / arch / arm / boot / dts / qcom / qcom-ipq4019-r619ac.dtsi
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 chosen {
11 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
12 };
13
14 aliases {
15 led-boot = &led_sys;
16 led-failsafe = &led_sys;
17 led-running = &led_sys;
18 led-upgrade = &led_sys;
19 };
20
21 soc {
22 rng@22000 {
23 status = "okay";
24 };
25
26 mdio@90000 {
27 status = "okay";
28 pinctrl-0 = <&mdio_pins>;
29 pinctrl-names = "default";
30 };
31
32 tcsr@1949000 {
33 compatible = "qcom,tcsr";
34 reg = <0x1949000 0x100>;
35 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
36 };
37
38 tcsr@194b000 {
39 compatible = "qcom,tcsr";
40 reg = <0x194b000 0x100>;
41 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
42 };
43
44 ess_tcsr@1953000 {
45 compatible = "qcom,tcsr";
46 reg = <0x1953000 0x1000>;
47 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
48 };
49
50 tcsr@1957000 {
51 compatible = "qcom,tcsr";
52 reg = <0x1957000 0x100>;
53 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
54 };
55
56 crypto@8e3a000 {
57 status = "okay";
58 };
59
60 watchdog@b017000 {
61 status = "okay";
62 };
63 };
64
65 leds {
66 compatible = "gpio-leds";
67
68 led_sys: led-0 {
69 gpios = <&tlmm 39 GPIO_ACTIVE_HIGH>;
70 color = <LED_COLOR_ID_BLUE>;
71 function = LED_FUNCTION_POWER;
72 };
73
74 led-1 {
75 gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
76 linux,default-trigger = "phy0tpt";
77 color = <LED_COLOR_ID_BLUE>;
78 function = LED_FUNCTION_WLAN;
79 function-enumerator = <0>;
80 };
81
82 led-2 {
83 gpios = <&tlmm 50 GPIO_ACTIVE_HIGH>;
84 linux,default-trigger = "phy1tpt";
85 color = <LED_COLOR_ID_BLUE>;
86 function = LED_FUNCTION_WLAN;
87 function-enumerator = <1>;
88 };
89 };
90
91 keys {
92 compatible = "gpio-keys";
93
94 reset {
95 label = "reset";
96 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_RESTART>;
98 };
99 };
100 };
101
102 &blsp_dma {
103 status = "okay";
104 };
105
106 &blsp1_spi1 {
107 status = "okay";
108
109 flash@0 {
110 reg = <0>;
111 compatible = "jedec,spi-nor";
112 spi-max-frequency = <24000000>;
113
114 partitions {
115 compatible = "fixed-partitions";
116 #address-cells = <1>;
117 #size-cells = <1>;
118
119 partition@0 {
120 label = "SBL1";
121 reg = <0x0 0x40000>;
122 read-only;
123 };
124
125 partition@40000 {
126 label = "MIBIB";
127 reg = <0x40000 0x20000>;
128 read-only;
129 };
130
131 partition@60000 {
132 label = "QSEE";
133 reg = <0x60000 0x60000>;
134 read-only;
135 };
136
137 partition@c0000 {
138 label = "CDT";
139 reg = <0xc0000 0x10000>;
140 read-only;
141 };
142
143 partition@d0000 {
144 label = "DDRPARAMS";
145 reg = <0xd0000 0x10000>;
146 read-only;
147 };
148
149 partition@e0000 {
150 label = "APPSBLENV";
151 reg = <0xe0000 0x10000>;
152 read-only;
153 };
154
155 partition@f0000 {
156 label = "APPSBL";
157 reg = <0xf0000 0x80000>;
158 read-only;
159 };
160
161 partition@170000 {
162 label = "ART";
163 reg = <0x170000 0x10000>;
164 read-only;
165
166 nvmem-layout {
167 compatible = "fixed-layout";
168 #address-cells = <1>;
169 #size-cells = <1>;
170
171 precal_art_1000: precal@1000 {
172 reg = <0x1000 0x2f20>;
173 };
174
175 precal_art_5000: precal@5000 {
176 reg = <0x5000 0x2f20>;
177 };
178 };
179 };
180 };
181 };
182 };
183
184 &nand {
185 status = "okay";
186
187 nand@0 {
188 partitions {
189 compatible = "fixed-partitions";
190 #address-cells = <1>;
191 #size-cells = <1>;
192
193 nand_rootfs: partition@0 {
194 label = "ubi";
195 /* reg defined in 64M/128M variant dts. */
196 };
197 };
198 };
199 };
200
201 &blsp1_uart1 {
202 pinctrl-0 = <&serial_0_pins>;
203 pinctrl-names = "default";
204 status = "okay";
205 };
206
207 &cryptobam {
208 status = "okay";
209 };
210
211 &pcie0 {
212 status = "okay";
213 pinctrl-names = "default";
214 pinctrl-0 = <&pcie_pins>;
215 perst-gpio = <&tlmm 4 GPIO_ACTIVE_LOW>;
216 wake-gpio = <&tlmm 40 GPIO_ACTIVE_HIGH>;
217
218 /* Free slot for use */
219 bridge@0,0 {
220 reg = <0x00000000 0 0 0 0>;
221 #address-cells = <3>;
222 #size-cells = <2>;
223 ranges;
224 };
225 };
226
227 &qpic_bam {
228 status = "okay";
229 };
230
231 &sdhci {
232 pinctrl-0 = <&sd_0_pins>;
233 pinctrl-names = "default";
234 vqmmc-supply = <&vqmmc>;
235 status = "okay";
236 };
237
238 &tlmm {
239 pcie_pins: pcie_pinmux {
240 mux {
241 pins = "gpio2";
242 function = "gpio";
243 output-low;
244 bias-pull-down;
245 };
246 };
247
248 mdio_pins: mdio_pinmux {
249 mux_1 {
250 pins = "gpio6";
251 function = "mdio";
252 bias-pull-up;
253 };
254
255 mux_2 {
256 pins = "gpio7";
257 function = "mdc";
258 bias-pull-up;
259 };
260 };
261
262 sd_0_pins: sd_0_pinmux {
263 mux_1 {
264 pins = "gpio23", "gpio24", "gpio25", "gpio26", "gpio28";
265 function = "sdio";
266 drive-strength = <10>;
267 };
268
269 mux_2 {
270 pins = "gpio27";
271 function = "sdio";
272 drive-strength = <16>;
273 };
274 };
275
276 serial_0_pins: serial0-pinmux {
277 mux {
278 pins = "gpio16", "gpio17";
279 function = "blsp_uart0";
280 bias-disable;
281 };
282 };
283 };
284
285 &ethphy0 {
286 qcom,single-led-1000;
287 qcom,single-led-100;
288 qcom,single-led-10;
289 };
290
291 &ethphy1 {
292 qcom,single-led-1000;
293 qcom,single-led-100;
294 qcom,single-led-10;
295 };
296
297 &ethphy2 {
298 qcom,single-led-1000;
299 qcom,single-led-100;
300 qcom,single-led-10;
301 };
302
303 &ethphy3 {
304 qcom,single-led-1000;
305 qcom,single-led-100;
306 qcom,single-led-10;
307 };
308
309 &ethphy4 {
310 qcom,single-led-1000;
311 qcom,single-led-100;
312 qcom,single-led-10;
313 };
314
315 &gmac {
316 status = "okay";
317 };
318
319 &switch {
320 status = "okay";
321 };
322
323 &swport1 {
324 status = "okay";
325
326 label = "lan4";
327 };
328
329 &swport2 {
330 status = "okay";
331
332 label = "lan3";
333 };
334
335 &swport3 {
336 status = "okay";
337
338 label = "lan2";
339 };
340
341 &swport4 {
342 status = "okay";
343
344 label = "lan1";
345 };
346
347 &swport5 {
348 status = "okay";
349 };
350
351 &usb3_ss_phy {
352 status = "okay";
353 };
354
355 &usb3_hs_phy {
356 status = "okay";
357 };
358
359 &usb3 {
360 status = "okay";
361 };
362
363 &usb2_hs_phy {
364 status = "okay";
365 };
366
367 &usb2 {
368 status = "okay";
369 };
370
371 &vqmmc {
372 status = "okay";
373 };
374
375 &wifi0 {
376 status = "okay";
377 nvmem-cell-names = "pre-calibration";
378 nvmem-cells = <&precal_art_1000>;
379 qcom,ath10k-calibration-variant = "P&W-R619AC";
380 };
381
382 &wifi1 {
383 status = "okay";
384 nvmem-cell-names = "pre-calibration";
385 nvmem-cells = <&precal_art_5000>;
386 qcom,ath10k-calibration-variant = "P&W-R619AC";
387 };