1 From 0c1e8630dca36c2d5a9bf98a5f1f8c15f75d0253 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Mon, 12 Aug 2013 18:11:33 +0200
4 Subject: [PATCH 20/57] MIPS: ralink: update dts files
6 Add the devicetree nodes needed to make the newly merged drivers work.
8 Signed-off-by: John Crispin <blogic@openwrt.org>
10 arch/mips/ralink/dts/mt7620a.dtsi | 135 +++++++++++++++++++++++
11 arch/mips/ralink/dts/rt3050.dtsi | 156 ++++++++++++++++++++++++++
12 arch/mips/ralink/dts/rt3883.dtsi | 219 +++++++++++++++++++++++++++++++++++++
13 3 files changed, 510 insertions(+)
15 diff --git a/arch/mips/ralink/dts/mt7620a.dtsi b/arch/mips/ralink/dts/mt7620a.dtsi
16 index 08bf24f..df6cb79 100644
17 --- a/arch/mips/ralink/dts/mt7620a.dtsi
18 +++ b/arch/mips/ralink/dts/mt7620a.dtsi
24 + compatible = "ralink,mt7620a-timer", "ralink,rt2880-timer";
27 + interrupt-parent = <&intc>;
32 + compatible = "ralink,mt7620a-wdt", "ralink,rt2880-wdt";
35 + resets = <&rstctrl 8>;
36 + reset-names = "wdt";
38 + interrupt-parent = <&intc>;
43 compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
46 + resets = <&rstctrl 19>;
47 + reset-names = "intc";
50 #interrupt-cells = <1>;
54 compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
57 + resets = <&rstctrl 20>;
60 + interrupt-parent = <&intc>;
65 + compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
66 + reg = <0x500 0x100>;
68 + resets = <&rstctrl 12>;
69 + reset-names = "uart";
71 + interrupt-parent = <&intc>;
76 + status = "disabled";
80 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
83 + resets = <&rstctrl 13>;
84 + reset-names = "pio";
86 + interrupt-parent = <&intc>;
92 + ralink,gpio-base = <0>;
93 + ralink,num-gpios = <24>;
94 + ralink,register-map = [ 00 04 08 0c
98 + status = "disabled";
102 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
103 + reg = <0x638 0x24>;
105 + interrupt-parent = <&intc>;
111 + ralink,gpio-base = <24>;
112 + ralink,num-gpios = <16>;
113 + ralink,register-map = [ 00 04 08 0c
117 + status = "disabled";
121 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
122 + reg = <0x660 0x24>;
124 + interrupt-parent = <&intc>;
130 + ralink,gpio-base = <40>;
131 + ralink,num-gpios = <32>;
132 + ralink,register-map = [ 00 04 08 0c
136 + status = "disabled";
140 + compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
141 + reg = <0xb00 0x100>;
143 + resets = <&rstctrl 18>;
144 + reset-names = "spi";
146 + #address-cells = <1>;
149 + status = "disabled";
153 compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
156 + resets = <&rstctrl 19>;
157 + reset-names = "uartl";
159 interrupt-parent = <&intc>;
166 + compatible = "ralink,mt7620a-systick", "ralink,cevt-systick";
167 + reg = <0xd00 0x10>;
169 + resets = <&rstctrl 28>;
170 + reset-names = "intc";
172 + interrupt-parent = <&cpuintc>;
178 + compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset";
179 + #reset-cells = <1>;
182 diff --git a/arch/mips/ralink/dts/rt3050.dtsi b/arch/mips/ralink/dts/rt3050.dtsi
183 index e3203d4..49622d7 100644
184 --- a/arch/mips/ralink/dts/rt3050.dtsi
185 +++ b/arch/mips/ralink/dts/rt3050.dtsi
191 + bootargs = "console=ttyS0,57600";
195 #address-cells = <0>;
196 #interrupt-cells = <1>;
202 + compatible = "ralink,rt3052-timer", "ralink,rt2880-timer";
203 + reg = <0x100 0x20>;
205 + interrupt-parent = <&intc>;
210 + compatible = "ralink,rt3052-wdt", "ralink,rt2880-wdt";
211 + reg = <0x120 0x10>;
213 + resets = <&rstctrl 8>;
214 + reset-names = "wdt";
216 + interrupt-parent = <&intc>;
221 compatible = "ralink,rt3052-intc", "ralink,rt2880-intc";
224 + resets = <&rstctrl 19>;
225 + reset-names = "intc";
227 interrupt-controller;
228 #interrupt-cells = <1>;
232 compatible = "ralink,rt3052-memc", "ralink,rt3050-memc";
235 + resets = <&rstctrl 20>;
236 + reset-names = "mc";
238 + interrupt-parent = <&intc>;
243 + compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
244 + reg = <0x500 0x100>;
246 + resets = <&rstctrl 12>;
247 + reset-names = "uart";
249 + interrupt-parent = <&intc>;
254 + status = "disabled";
258 + compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
259 + reg = <0x600 0x34>;
264 + ralink,gpio-base = <0>;
265 + ralink,num-gpios = <24>;
266 + ralink,register-map = [ 00 04 08 0c
270 + resets = <&rstctrl 13>;
271 + reset-names = "pio";
273 + interrupt-parent = <&intc>;
276 + status = "disabled";
280 + compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
281 + reg = <0x638 0x24>;
286 + ralink,gpio-base = <24>;
287 + ralink,num-gpios = <16>;
288 + ralink,register-map = [ 00 04 08 0c
292 + status = "disabled";
296 + compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
297 + reg = <0x660 0x24>;
302 + ralink,gpio-base = <40>;
303 + ralink,num-gpios = <12>;
304 + ralink,register-map = [ 00 04 08 0c
308 + status = "disabled";
312 + compatible = "ralink,rt3050-spi", "ralink,rt2880-spi";
313 + reg = <0xb00 0x100>;
315 + resets = <&rstctrl 18>;
316 + reset-names = "spi";
318 + #address-cells = <1>;
321 + status = "disabled";
325 compatible = "ralink,rt3052-uart", "ralink,rt2880-uart", "ns16550a";
328 + resets = <&rstctrl 19>;
329 + reset-names = "uartl";
331 interrupt-parent = <&intc>;
340 + compatible = "ralink,rt3050-reset", "ralink,rt2880-reset";
341 + #reset-cells = <1>;
344 + ethernet@10100000 {
345 + compatible = "ralink,rt3050-eth";
346 + reg = <0x10100000 10000>;
348 + interrupt-parent = <&cpuintc>;
351 + status = "disabled";
355 + compatible = "ralink,rt3050-esw";
356 + reg = <0x10110000 8000>;
358 + interrupt-parent = <&intc>;
361 + status = "disabled";
365 + compatible = "ralink,rt3050-wmac", "ralink,rt2880-wmac";
366 + reg = <0x10180000 40000>;
368 + interrupt-parent = <&cpuintc>;
371 + status = "disabled";
376 interrupt-parent = <&intc>;
379 + resets = <&rstctrl 22>;
380 + reset-names = "otg";
385 diff --git a/arch/mips/ralink/dts/rt3883.dtsi b/arch/mips/ralink/dts/rt3883.dtsi
386 index 3b131dd..4d092b1 100644
387 --- a/arch/mips/ralink/dts/rt3883.dtsi
388 +++ b/arch/mips/ralink/dts/rt3883.dtsi
394 + compatible = "ralink,rt3883-timer", "ralink,rt2880-timer";
395 + reg = <0x100 0x20>;
397 + interrupt-parent = <&intc>;
402 + compatible = "ralink,rt3883-wdt", "ralink,rt2880-wdt";
403 + reg = <0x120 0x10>;
405 + resets = <&rstctrl 8>;
406 + reset-names = "wdt";
408 + interrupt-parent = <&intc>;
413 compatible = "ralink,rt3883-intc", "ralink,rt2880-intc";
416 + resets = <&rstctrl 19>;
417 + reset-names = "intc";
419 interrupt-controller;
420 #interrupt-cells = <1>;
424 compatible = "ralink,rt3883-memc", "ralink,rt3050-memc";
427 + resets = <&rstctrl 20>;
428 + reset-names = "mc";
430 + interrupt-parent = <&intc>;
435 + compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
436 + reg = <0x500 0x100>;
438 + resets = <&rstctrl 12>;
439 + reset-names = "uart";
441 + interrupt-parent = <&intc>;
446 + status = "disabled";
450 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
451 + reg = <0x600 0x34>;
453 + resets = <&rstctrl 13>;
454 + reset-names = "pio";
456 + interrupt-parent = <&intc>;
462 + ralink,gpio-base = <0>;
463 + ralink,num-gpios = <24>;
464 + ralink,register-map = [ 00 04 08 0c
468 + status = "disabled";
472 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
473 + reg = <0x638 0x24>;
478 + ralink,gpio-base = <24>;
479 + ralink,num-gpios = <16>;
480 + ralink,register-map = [ 00 04 08 0c
484 + status = "disabled";
488 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
489 + reg = <0x660 0x24>;
494 + ralink,gpio-base = <40>;
495 + ralink,num-gpios = <32>;
496 + ralink,register-map = [ 00 04 08 0c
500 + status = "disabled";
504 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
505 + reg = <0x688 0x24>;
510 + ralink,gpio-base = <72>;
511 + ralink,num-gpios = <24>;
512 + ralink,register-map = [ 00 04 08 0c
516 + status = "disabled";
520 + compatible = "ralink,rt3883-spi", "ralink,rt2880-spi";
521 + reg = <0xb00 0x100>;
522 + #address-cells = <1>;
525 + resets = <&rstctrl 18>;
526 + reset-names = "spi";
528 + status = "disabled";
532 compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
535 + resets = <&rstctrl 19>;
536 + reset-names = "uartl";
538 interrupt-parent = <&intc>;
546 + compatible = "ralink,rt3883-reset", "ralink,rt2880-reset";
547 + #reset-cells = <1>;
551 + compatible = "ralink,rt3883-pci";
552 + reg = <0x10140000 0x20000>;
553 + #address-cells = <1>;
555 + ranges; /* direct mapping */
557 + status = "disabled";
559 + pciintc: interrupt-controller {
560 + interrupt-controller;
561 + #address-cells = <0>;
562 + #interrupt-cells = <1>;
564 + interrupt-parent = <&cpuintc>;
569 + #address-cells = <3>;
571 + #interrupt-cells = <1>;
573 + device_type = "pci";
575 + bus-range = <0 255>;
577 + 0x02000000 0 0x00000000 0x20000000 0 0x10000000 /* pci memory */
578 + 0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */
581 + interrupt-map-mask = <0xf800 0 0 7>;
584 + 0x8800 0 0 1 &pciintc 18
585 + 0x8800 0 0 2 &pciintc 18
586 + 0x8800 0 0 3 &pciintc 18
587 + 0x8800 0 0 4 &pciintc 18
589 + 0x9000 0 0 1 &pciintc 19
590 + 0x9000 0 0 2 &pciintc 19
591 + 0x9000 0 0 3 &pciintc 19
592 + 0x9000 0 0 4 &pciintc 19
596 + reg = <0x0800 0 0 0 0>;
597 + device_type = "pci";
598 + #interrupt-cells = <1>;
599 + #address-cells = <3>;
602 + status = "disabled";
604 + ralink,pci-slot = <1>;
606 + interrupt-map-mask = <0x0 0 0 0>;
607 + interrupt-map = <0x0 0 0 0 &pciintc 20>;
611 + reg = <0x8800 0 0 0 0>;
612 + device_type = "pci";
613 + #interrupt-cells = <1>;
614 + #address-cells = <3>;
617 + ralink,pci-slot = <17>;
619 + status = "disabled";
623 + reg = <0x9000 0 0 0 0>;
624 + device_type = "pci";
625 + #interrupt-cells = <1>;
626 + #address-cells = <3>;
629 + ralink,pci-slot = <18>;
631 + status = "disabled";