ipq806x: move serial0 to DTSI files
[openwrt/staging/stintel.git] / target / linux / ipq806x / files-5.4 / arch / arm / boot / dts / qcom-ipq8064-wxr-2533dhp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "qcom-ipq8064-v2.0.dtsi"
3
4 #include <dt-bindings/input/input.h>
5
6 / {
7 model = "Buffalo WXR-2533DHP";
8 compatible = "buffalo,wxr-2533dhp", "qcom,ipq8064";
9
10 memory@42000000 {
11 reg = <0x42000000 0x1e000000>;
12 device_type = "memory";
13 };
14
15 reserved-memory {
16 #address-cells = <1>;
17 #size-cells = <1>;
18 ranges;
19 rsvd@41200000 {
20 reg = <0x41200000 0x300000>;
21 no-map;
22 };
23 };
24
25 aliases {
26 led-boot = &power;
27 led-failsafe = &diag;
28 led-running = &power;
29 led-upgrade = &power;
30 };
31
32 chosen {
33 /* use "ubi_rootfs" volume in "ubi" partition as rootfs */
34 bootargs = "ubi.block=0,1 root=/dev/ubiblock0_1 rootfstype=squashfs";
35 };
36
37 leds {
38 compatible = "gpio-leds";
39 pinctrl-0 = <&led_pins>;
40 pinctrl-names = "default";
41
42 usb {
43 label = "wxr-2533dhp:green:usb";
44 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
45 linux,default-trigger = "usbport";
46 trigger-sources = <&hub_port0 &hub_port1>;
47 };
48
49 guestport {
50 label = "wxr-2533dhp:green:guestport";
51 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
52 };
53
54 diag: diag {
55 label = "wxr-2533dhp:orange:diag";
56 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
57 };
58
59 internet_orange {
60 label = "wxr-2533dhp:orange:internet";
61 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
62 };
63
64 internet_white {
65 label = "wxr-2533dhp:white:internet";
66 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
67 };
68
69 wireless_orange {
70 label = "wxr-2533dhp:orange:wireless";
71 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
72 };
73
74 wireless_white {
75 label = "wxr-2533dhp:white:wireless";
76 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
77 };
78
79 router_orange {
80 label = "wxr-2533dhp:orange:router";
81 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_HIGH>;
82 };
83
84 router_white {
85 label = "wxr-2533dhp:white:router";
86 gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
87 };
88
89 power: power {
90 label = "wxr-2533dhp:white:power";
91 gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
92 };
93 };
94
95 keys {
96 compatible = "gpio-keys";
97 pinctrl-0 = <&button_pins>;
98 pinctrl-names = "default";
99
100 power {
101 label = "power";
102 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_LOW>;
103 linux,code = <KEY_POWER>;
104 };
105
106 reset {
107 label = "reset";
108 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_RESTART>;
110 };
111
112 wps {
113 label = "wps";
114 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_WPS_BUTTON>;
116 };
117
118 eject {
119 label = "eject";
120 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_EJECTCD>;
122 };
123
124 guest {
125 label = "guest";
126 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_LOW>;
127 linux,code = <BTN_0>;
128 };
129
130 ap {
131 label = "ap";
132 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_LOW>;
133 linux,code = <BTN_1>;
134 linux,input-type = <EV_SW>;
135 };
136
137 router {
138 label = "router";
139 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_LOW>;
140 linux,code = <BTN_1>;
141 linux,input-type = <EV_SW>;
142 };
143
144 auto {
145 label = "auto";
146 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_LOW>;
147 linux,code = <BTN_1>;
148 linux,input-type = <EV_SW>;
149 };
150 };
151 };
152
153 &nand_controller {
154 status = "okay";
155
156 pinctrl-0 = <&nand_pins>;
157 pinctrl-names = "default";
158
159 cs@0 {
160 reg = <0>;
161 compatible = "qcom,nandcs";
162
163 nand-ecc-strength = <4>;
164 nand-bus-width = <8>;
165 nand-ecc-step-size = <512>;
166
167 partitions {
168 compatible = "fixed-partitions";
169 #address-cells = <1>;
170 #size-cells = <1>;
171
172 ubi@0 {
173 label = "ubi";
174 reg = <0x0000000 0x4000000>;
175 };
176
177 rootfs_1@4000000 {
178 label = "rootfs_1";
179 reg = <0x4000000 0x4000000>;
180 };
181 };
182 };
183 };
184
185 &adm_dma {
186 status = "okay";
187 };
188
189 &mdio0 {
190 status = "okay";
191
192 pinctrl-0 = <&mdio0_pins>;
193 pinctrl-names = "default";
194
195 ethernet-phy@0 {
196 reg = <0>;
197 qca,ar8327-initvals = <
198 0x00004 0x07600000 /* PAD0_MODE */
199 0x00008 0x01000000 /* PAD5_MODE */
200 0x0000c 0x00000080 /* PAD6_MODE */
201 0x00050 0xcc35cc35 /* LED_CTRL0 */
202 0x00054 0xca35ca35 /* LED_CTRL1 */
203 0x00058 0xc935c935 /* LED_CTRL2 */
204 0x0005c 0x03ffff00 /* LED_CTRL3 */
205 0x000e4 0x0006a545 /* MAC_POWER_SEL */
206 0x000e0 0xc74164de /* SGMII_CTRL */
207 0x0007c 0x0000007e /* PORT0_STATUS */
208 0x00094 0x0000007e /* PORT6_STATUS */
209 >;
210 };
211
212 ethernet-phy@4 {
213 reg = <4>;
214 };
215 };
216
217 &gmac1 {
218 status = "okay";
219
220 phy-mode = "rgmii";
221 qcom,id = <1>;
222
223 pinctrl-0 = <&rgmii2_pins>;
224 pinctrl-names = "default";
225
226 mtd-mac-address = <&ART 6>;
227
228 fixed-link {
229 speed = <1000>;
230 full-duplex;
231 };
232 };
233
234 &gmac2 {
235 status = "okay";
236
237 phy-mode = "sgmii";
238 qcom,id = <2>;
239
240 mtd-mac-address = <&ART 0>;
241
242 fixed-link {
243 speed = <1000>;
244 full-duplex;
245 };
246 };
247
248 &gsbi4 {
249 status = "okay";
250 qcom,mode = <GSBI_PROT_I2C_UART>;
251 };
252
253 &gsbi4_serial {
254 status = "okay";
255
256 pinctrl-0 = <&uart0_pins>;
257 pinctrl-names = "default";
258 };
259
260 &gsbi5 {
261 status = "okay";
262 qcom,mode = <GSBI_PROT_SPI>;
263
264 spi@1a280000 {
265 status = "okay";
266
267 pinctrl-0 = <&spi_pins>;
268 pinctrl-names = "default";
269
270 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
271
272 flash@0 {
273 compatible = "jedec,spi-nor";
274 spi-max-frequency = <50000000>;
275 reg = <0>;
276
277 partitions {
278 compatible = "fixed-partitions";
279 #address-cells = <1>;
280 #size-cells = <1>;
281
282 SBL1@0 {
283 label = "SBL1";
284 reg = <0x0 0x10000>;
285 read-only;
286 };
287
288 MIBIB@10000 {
289 label = "MIBIB";
290 reg = <0x10000 0x20000>;
291 read-only;
292 };
293
294 SBL2@30000 {
295 label = "SBL2";
296 reg = <0x30000 0x30000>;
297 read-only;
298 };
299
300 SBL3@60000 {
301 label = "SBL3";
302 reg = <0x60000 0x30000>;
303 read-only;
304 };
305
306 DDRCONFIG@90000 {
307 label = "DDRCONFIG";
308 reg = <0x90000 0x10000>;
309 read-only;
310 };
311
312 SSD@a0000 {
313 label = "SSD";
314 reg = <0xa0000 0x10000>;
315 read-only;
316 };
317
318 TZ@b0000 {
319 label = "TZ";
320 reg = <0xb0000 0x30000>;
321 read-only;
322 };
323
324 RPM@e0000 {
325 label = "RPM";
326 reg = <0xe0000 0x20000>;
327 read-only;
328 };
329
330 APPSBL@100000 {
331 label = "APPSBL";
332 reg = <0x100000 0x70000>;
333 read-only;
334 };
335
336 APPSBLENV@170000 {
337 label = "APPSBLENV";
338 reg = <0x170000 0x10000>;
339 read-only;
340 };
341
342 ART: ART@180000 {
343 label = "ART";
344 reg = <0x180000 0x40000>;
345 read-only;
346 };
347
348 BOOTCONFIG@1c0000 {
349 label = "BOOTCONFIG";
350 reg = <0x1c0000 0x10000>;
351 read-only;
352 };
353
354 APPSBL_1@1d0000 {
355 label = "APPSBL_1";
356 reg = <0x1d0000 0x70000>;
357 read-only;
358 };
359 };
360 };
361 };
362 };
363
364 &usb3_0 {
365 status = "okay";
366
367 pinctrl-0 = <&usb_pwr_en_pins>;
368 pinctrl-names = "default";
369 };
370
371 &usb3_1 {
372 status = "okay";
373 };
374
375 &dwc3_0 {
376 #address-cells = <1>;
377 #size-cells = <0>;
378
379 hub_port0: port@1 {
380 reg = <1>;
381 #trigger-source-cells = <0>;
382 };
383 };
384
385 &dwc3_1 {
386 #address-cells = <1>;
387 #size-cells = <0>;
388
389 hub_port1: port@1 {
390 reg = <1>;
391 #trigger-source-cells = <0>;
392 };
393 };
394
395 &pcie0 {
396 status = "okay";
397 };
398
399 &pcie1 {
400 status = "okay";
401 force_gen1 = <1>;
402 };
403
404 &qcom_pinmux {
405 button_pins: button_pins {
406 mux {
407 pins = "gpio6", "gpio54", "gpio55", "gpio56", "gpio57",
408 "gpio58", "gpio64", "gpio65";
409 function = "gpio";
410 drive-strength = <2>;
411 bias-pull-up;
412 };
413 };
414
415 led_pins: led_pins {
416 mux {
417 pins = "gpio7", "gpio8", "gpio9", "gpio16", "gpio22",
418 "gpio23", "gpio24", "gpio25", "gpio26", "gpio53";
419 function = "gpio";
420 drive-strength = <2>;
421 bias-pull-up;
422 };
423 };
424
425 uart0_pins: uart0_pins {
426 mux {
427 pins = "gpio10", "gpio11";
428 function = "gsbi4";
429 drive-strength = <12>;
430 bias-disable;
431 };
432 };
433
434 spi_pins: spi_pins {
435 mux {
436 pins = "gpio18", "gpio19", "gpio21";
437 function = "gsbi5";
438 bias-pull-down;
439 };
440
441 data {
442 pins = "gpio18", "gpio19";
443 drive-strength = <10>;
444 };
445
446 cs{
447 pins = "gpio20";
448 drive-strength = <10>;
449 bias-pull-up;
450 };
451
452 clk {
453 pins = "gpio21";
454 drive-strength = <12>;
455 };
456 };
457
458 usb_pwr_en_pins: usb_pwr_en_pins {
459 mux{
460 pins = "gpio68";
461 function = "gpio";
462 drive-strength = <2>;
463 bias-pull-up;
464 output-high;
465 };
466 };
467 };