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