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