ipq40xx: switch default to 6.6
[openwrt/openwrt.git] / target / linux / ipq40xx / files-6.1 / arch / arm / boot / dts / qcom-ipq4019-wtr-m2133hp.dts
1 // SPDX-License-Identifier: ISC
2 /*
3 * Copyright (c) 2015 - 2016, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2020 Yanase Yuki <dev@zpc.sakura.ne.jp>
5 */
6
7 #include "qcom-ipq4019.dtsi"
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/soc/qcom,tcsr.h>
12
13 / {
14 model = "Buffalo WTR-M2133HP";
15 compatible = "buffalo,wtr-m2133hp", "qcom,ipq4019";
16
17 memory {
18 device_type = "memory";
19 reg = <0x80000000 0x20000000>;
20 };
21
22 chosen {
23 /*
24 * U-Boot adds "ubi.mtd=rootfs root=mtd:ubi_rootfs" to
25 * kernel command line. But we use different partition names,
26 * so we have to set correct parameters.
27 */
28 bootargs-append = " ubi.mtd=ubi root=/dev/ubiblock0_1";
29 };
30
31 aliases {
32 led-boot = &led_power_blue;
33 led-failsafe = &led_power_orange;
34 led-running = &led_power_white;
35 led-upgrade = &led_power_blue;
36 };
37
38 soc {
39 rng@22000 {
40 status = "okay";
41 };
42
43 tcsr@1949000 {
44 compatible = "qcom,tcsr";
45 reg = <0x1949000 0x100>;
46 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
47 };
48
49 tcsr@194b000 {
50 compatible = "qcom,tcsr";
51 reg = <0x194b000 0x100>;
52 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
53 status = "okay";
54 };
55
56 ess_tcsr@1953000 {
57 compatible = "qcom,tcsr";
58 reg = <0x1953000 0x1000>;
59 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
60 };
61
62 tcsr@1957000 {
63 compatible = "qcom,tcsr";
64 reg = <0x1957000 0x100>;
65 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
66 };
67
68 crypto@8e3a000 {
69 status = "okay";
70 };
71
72 watchdog@b017000 {
73 status = "okay";
74 };
75
76 usb3@8af8800 {
77 status = "okay";
78 };
79 };
80
81 leds {
82 compatible = "gpio-leds";
83
84 led_power_white: power_white {
85 function = LED_FUNCTION_POWER;
86 color = <LED_COLOR_ID_WHITE>;
87 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
88 };
89
90 led_power_orange: power_orange {
91 function = LED_FUNCTION_POWER;
92 color = <LED_COLOR_ID_ORANGE>;
93 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
94 };
95
96 led_power_blue: power_blue {
97 function = LED_FUNCTION_POWER;
98 color = <LED_COLOR_ID_BLUE>;
99 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
100 };
101
102 router_white {
103 label = "white:router";
104 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
105 };
106
107 router_orange {
108 label = "orange:router";
109 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
110 };
111
112 internet_white {
113 label = "white:internet";
114 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
115 };
116
117 internet_orange {
118 label = "orange:internet";
119 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
120 };
121
122 wireless_white {
123 label = "white:wireless";
124 gpios = <&tlmm 24 GPIO_ACTIVE_HIGH>;
125 };
126
127 wireless_orange {
128 label = "orange:wireless";
129 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
130 };
131 };
132
133 keys {
134 compatible = "gpio-keys";
135
136 auto_mode {
137 label = "auto_mode";
138 gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
139 linux,code = <BTN_0>;
140 linux,input-type = <EV_SW>;
141 };
142
143 router_mode {
144 label = "router_mode";
145 gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
146 linux,code = <BTN_1>;
147 linux,input-type = <EV_SW>;
148 };
149
150 ap_mode {
151 label = "ap_mode";
152 gpios = <&tlmm 11 GPIO_ACTIVE_LOW>;
153 linux,code = <BTN_2>;
154 linux,input-type = <EV_SW>;
155 };
156
157 reset {
158 label = "reset";
159 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
160 linux,code = <KEY_RESTART>;
161 };
162
163 wps {
164 label = "AOSS Button";
165 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
166 linux,code = <KEY_WPS_BUTTON>;
167 };
168 };
169 };
170
171 &tlmm {
172 serial_0_pins: serial0_pinmux {
173 mux {
174 pins = "gpio16", "gpio17";
175 function = "blsp_uart0";
176 bias-disable;
177 };
178 };
179
180 mdio_pins: mdio_pinmux {
181 mux_1 {
182 pins = "gpio6";
183 function = "mdio";
184 bias-pull-up;
185 };
186
187 mux_2 {
188 pins = "gpio7";
189 function = "mdc";
190 bias-pull-up;
191 };
192 };
193
194 nand_pins: nand_pins {
195 pullups {
196 pins = "gpio52", "gpio53", "gpio58",
197 "gpio59";
198 function = "qpic";
199 bias-pull-up;
200 };
201
202 pulldowns {
203 pins = "gpio54", "gpio55", "gpio56",
204 "gpio57", "gpio60", "gpio61",
205 "gpio62", "gpio63", "gpio64",
206 "gpio65", "gpio66", "gpio67",
207 "gpio68", "gpio69";
208 function = "qpic";
209 bias-pull-down;
210 };
211 };
212
213 usb_power {
214 line-name = "USB power";
215 gpios = <34 GPIO_ACTIVE_HIGH>;
216 gpio-hog;
217 output-high;
218 };
219 };
220
221 &blsp_dma {
222 status = "okay";
223 };
224
225 &blsp1_uart1 {
226 pinctrl-0 = <&serial_0_pins>;
227 pinctrl-names = "default";
228 status = "okay";
229 };
230
231 &cryptobam {
232 status = "okay";
233 };
234
235 &pcie0 {
236 status = "okay";
237
238 bridge@0,0 {
239 reg = <0x00000000 0 0 0 0>;
240 #address-cells = <3>;
241 #size-cells = <2>;
242 ranges;
243
244 wifi@0,0 {
245 compatible = "qcom,ath10k";
246 reg = <0 0 0 0 0>;
247 nvmem-cell-names = "pre-calibration", "mac-address";
248 nvmem-cells = <&precal_art_9000>, <&macaddr_orgdata_32>;
249 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
250 };
251 };
252 };
253
254 &qpic_bam {
255 status = "okay";
256 };
257
258 &nand {
259 pinctrl-0 = <&nand_pins>;
260 pinctrl-names = "default";
261 status = "okay";
262
263 nand@0 {
264 partitions {
265 compatible = "fixed-partitions";
266 #address-cells = <1>;
267 #size-cells = <1>;
268
269 partition@0 {
270 label = "SBL1";
271 reg = <0x0000000 0x0100000>;
272 read-only;
273 };
274
275 partition@100000 {
276 label = "MIBIB";
277 reg = <0x0100000 0x0100000>;
278 read-only;
279 };
280
281 partition@200000 {
282 label = "BOOTCONFIG";
283 reg = <0x0200000 0x0100000>;
284 read-only;
285 };
286
287 partition@300000 {
288 label = "QSEE";
289 reg = <0x0300000 0x0100000>;
290 read-only;
291 };
292
293 partition@400000 {
294 label = "QSEE_1";
295 reg = <0x0400000 0x0100000>;
296 read-only;
297 };
298
299 partition@500000 {
300 label = "CDT";
301 reg = <0x0500000 0x0080000>;
302 read-only;
303 };
304
305 partition@580000 {
306 label = "CDT_1";
307 reg = <0x0580000 0x0080000>;
308 read-only;
309 };
310
311 partition@600000 {
312 label = "BOOTCONFIG1";
313 reg = <0x0600000 0x0080000>;
314 read-only;
315 };
316
317 partition@680000 {
318 label = "APPSBLENV";
319 reg = <0x0680000 0x0080000>;
320 };
321
322 partition@700000 {
323 label = "APPSBL";
324 reg = <0x0700000 0x0200000>;
325 read-only;
326 };
327
328 partition@900000 {
329 label = "APPSBL_1";
330 reg = <0x0900000 0x0200000>;
331 read-only;
332 };
333
334 partition@b00000 {
335 label = "ART";
336 reg = <0x0b00000 0x0080000>;
337 read-only;
338
339 nvmem-layout {
340 compatible = "fixed-layout";
341 #address-cells = <1>;
342 #size-cells = <1>;
343
344 precal_art_1000: precal@1000 {
345 reg = <0x1000 0x2f20>;
346 };
347
348 precal_art_5000: precal@5000 {
349 reg = <0x5000 0x2f20>;
350 };
351
352 precal_art_9000: precal@9000 {
353 reg = <0x5000 0x2f20>;
354 };
355 };
356 };
357
358 partition@b80000 {
359 label = "ART_1";
360 reg = <0x0b80000 0x0080000>;
361 read-only;
362 };
363
364 orgdata: partition@c00000 {
365 label = "ORGDATA";
366 reg = <0x0c00000 0x0080000>;
367 read-only;
368
369 nvmem-layout {
370 compatible = "fixed-layout";
371 #address-cells = <1>;
372 #size-cells = <1>;
373
374 macaddr_orgdata_20: macaddr@20 {
375 reg = <0x20 0x6>;
376 };
377 macaddr_orgdata_26: macaddr@26 {
378 reg = <0x26 0x6>;
379 };
380 macaddr_orgdata_2c: macaddr@2c {
381 reg = <0x2c 0x6>;
382 };
383 macaddr_orgdata_32: macaddr@32 {
384 reg = <0x32 0x6>;
385 };
386 };
387 };
388
389 partition@c80000 {
390 label = "ORGDATA_1";
391 reg = <0x0c80000 0x0080000>;
392 read-only;
393 };
394
395 partition@d00000 {
396 label = "ubi";
397 reg = <0x0d00000 0x2900000>;
398 };
399
400 partition@3600000 {
401 label = "rootfs_recover";
402 reg = <0x3600000 0x2900000>;
403 read-only;
404 };
405
406 partition@5f00000 {
407 label = "user_property";
408 reg = <0x5f00000 0x1a20000>;
409 read-only;
410 };
411 };
412 };
413 };
414
415 &wifi0 {
416 status = "okay";
417 nvmem-cell-names = "pre-calibration", "mac-address";
418 nvmem-cells = <&precal_art_1000>, <&macaddr_orgdata_26>;
419 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
420 ieee80211-freq-limit = <2400000 2483000>;
421 };
422
423 &wifi1 {
424 status = "okay";
425 nvmem-cell-names = "pre-calibration", "mac-address";
426 nvmem-cells = <&precal_art_5000>, <&macaddr_orgdata_2c>;
427 qcom,ath10k-calibration-variant = "Buffalo-WTR-M2133HP";
428 };
429
430 &switch {
431 status = "okay";
432 };
433
434 &swport2 {
435 status = "okay";
436 label = "lan3";
437 };
438
439 &swport3 {
440 status = "okay";
441 label = "lan2";
442 };
443
444 &swport4 {
445 status = "okay";
446 label = "lan1";
447 };
448
449 &swport5 {
450 status = "okay";
451 };
452
453 &gmac {
454 status = "okay";
455 nvmem-cell-names = "mac-address";
456 nvmem-cells = <&macaddr_orgdata_20>;
457 };
458
459 &mdio {
460 status = "okay";
461 pinctrl-0 = <&mdio_pins>;
462 pinctrl-names = "default";
463 reset-gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
464 };
465
466 &usb3_ss_phy {
467 status = "okay";
468 };
469
470 &usb3_hs_phy {
471 status = "okay";
472 };