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 --- a/arch/mips/ralink/dts/mt7620a.dtsi
16 +++ b/arch/mips/ralink/dts/mt7620a.dtsi
22 + compatible = "ralink,mt7620a-timer", "ralink,rt2880-timer";
25 + interrupt-parent = <&intc>;
30 + compatible = "ralink,mt7620a-wdt", "ralink,rt2880-wdt";
33 + resets = <&rstctrl 8>;
34 + reset-names = "wdt";
36 + interrupt-parent = <&intc>;
41 compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
44 + resets = <&rstctrl 19>;
45 + reset-names = "intc";
48 #interrupt-cells = <1>;
52 compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
55 + resets = <&rstctrl 20>;
58 + interrupt-parent = <&intc>;
63 + compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
64 + reg = <0x500 0x100>;
66 + resets = <&rstctrl 12>;
67 + reset-names = "uart";
69 + interrupt-parent = <&intc>;
74 + status = "disabled";
78 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
81 + resets = <&rstctrl 13>;
82 + reset-names = "pio";
84 + interrupt-parent = <&intc>;
90 + ralink,gpio-base = <0>;
91 + ralink,num-gpios = <24>;
92 + ralink,register-map = [ 00 04 08 0c
96 + status = "disabled";
100 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
101 + reg = <0x638 0x24>;
103 + interrupt-parent = <&intc>;
109 + ralink,gpio-base = <24>;
110 + ralink,num-gpios = <16>;
111 + ralink,register-map = [ 00 04 08 0c
115 + status = "disabled";
119 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
120 + reg = <0x660 0x24>;
122 + interrupt-parent = <&intc>;
128 + ralink,gpio-base = <40>;
129 + ralink,num-gpios = <32>;
130 + ralink,register-map = [ 00 04 08 0c
134 + status = "disabled";
138 + compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
139 + reg = <0xb00 0x100>;
141 + resets = <&rstctrl 18>;
142 + reset-names = "spi";
144 + #address-cells = <1>;
147 + status = "disabled";
151 compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
154 + resets = <&rstctrl 19>;
155 + reset-names = "uartl";
157 interrupt-parent = <&intc>;
164 + compatible = "ralink,mt7620a-systick", "ralink,cevt-systick";
165 + reg = <0xd00 0x10>;
167 + resets = <&rstctrl 28>;
168 + reset-names = "intc";
170 + interrupt-parent = <&cpuintc>;
176 + compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset";
177 + #reset-cells = <1>;
180 --- a/arch/mips/ralink/dts/rt3050.dtsi
181 +++ b/arch/mips/ralink/dts/rt3050.dtsi
187 + bootargs = "console=ttyS0,57600";
191 #address-cells = <0>;
192 #interrupt-cells = <1>;
198 + compatible = "ralink,rt3052-timer", "ralink,rt2880-timer";
199 + reg = <0x100 0x20>;
201 + interrupt-parent = <&intc>;
206 + compatible = "ralink,rt3052-wdt", "ralink,rt2880-wdt";
207 + reg = <0x120 0x10>;
209 + resets = <&rstctrl 8>;
210 + reset-names = "wdt";
212 + interrupt-parent = <&intc>;
217 compatible = "ralink,rt3052-intc", "ralink,rt2880-intc";
220 + resets = <&rstctrl 19>;
221 + reset-names = "intc";
223 interrupt-controller;
224 #interrupt-cells = <1>;
228 compatible = "ralink,rt3052-memc", "ralink,rt3050-memc";
231 + resets = <&rstctrl 20>;
232 + reset-names = "mc";
234 + interrupt-parent = <&intc>;
239 + compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
240 + reg = <0x500 0x100>;
242 + resets = <&rstctrl 12>;
243 + reset-names = "uart";
245 + interrupt-parent = <&intc>;
250 + status = "disabled";
254 + compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
255 + reg = <0x600 0x34>;
260 + ralink,gpio-base = <0>;
261 + ralink,num-gpios = <24>;
262 + ralink,register-map = [ 00 04 08 0c
266 + resets = <&rstctrl 13>;
267 + reset-names = "pio";
269 + interrupt-parent = <&intc>;
272 + status = "disabled";
276 + compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
277 + reg = <0x638 0x24>;
282 + ralink,gpio-base = <24>;
283 + ralink,num-gpios = <16>;
284 + ralink,register-map = [ 00 04 08 0c
288 + status = "disabled";
292 + compatible = "ralink,rt3052-gpio", "ralink,rt2880-gpio";
293 + reg = <0x660 0x24>;
298 + ralink,gpio-base = <40>;
299 + ralink,num-gpios = <12>;
300 + ralink,register-map = [ 00 04 08 0c
304 + status = "disabled";
308 + compatible = "ralink,rt3050-spi", "ralink,rt2880-spi";
309 + reg = <0xb00 0x100>;
311 + resets = <&rstctrl 18>;
312 + reset-names = "spi";
314 + #address-cells = <1>;
317 + status = "disabled";
321 compatible = "ralink,rt3052-uart", "ralink,rt2880-uart", "ns16550a";
324 + resets = <&rstctrl 19>;
325 + reset-names = "uartl";
327 interrupt-parent = <&intc>;
336 + compatible = "ralink,rt3050-reset", "ralink,rt2880-reset";
337 + #reset-cells = <1>;
340 + ethernet@10100000 {
341 + compatible = "ralink,rt3050-eth";
342 + reg = <0x10100000 10000>;
344 + interrupt-parent = <&cpuintc>;
347 + status = "disabled";
351 + compatible = "ralink,rt3050-esw";
352 + reg = <0x10110000 8000>;
354 + interrupt-parent = <&intc>;
357 + status = "disabled";
361 + compatible = "ralink,rt3050-wmac", "ralink,rt2880-wmac";
362 + reg = <0x10180000 40000>;
364 + interrupt-parent = <&cpuintc>;
367 + status = "disabled";
372 interrupt-parent = <&intc>;
375 + resets = <&rstctrl 22>;
376 + reset-names = "otg";
381 --- a/arch/mips/ralink/dts/rt3883.dtsi
382 +++ b/arch/mips/ralink/dts/rt3883.dtsi
388 + compatible = "ralink,rt3883-timer", "ralink,rt2880-timer";
389 + reg = <0x100 0x20>;
391 + interrupt-parent = <&intc>;
396 + compatible = "ralink,rt3883-wdt", "ralink,rt2880-wdt";
397 + reg = <0x120 0x10>;
399 + resets = <&rstctrl 8>;
400 + reset-names = "wdt";
402 + interrupt-parent = <&intc>;
407 compatible = "ralink,rt3883-intc", "ralink,rt2880-intc";
410 + resets = <&rstctrl 19>;
411 + reset-names = "intc";
413 interrupt-controller;
414 #interrupt-cells = <1>;
418 compatible = "ralink,rt3883-memc", "ralink,rt3050-memc";
421 + resets = <&rstctrl 20>;
422 + reset-names = "mc";
424 + interrupt-parent = <&intc>;
429 + compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
430 + reg = <0x500 0x100>;
432 + resets = <&rstctrl 12>;
433 + reset-names = "uart";
435 + interrupt-parent = <&intc>;
440 + status = "disabled";
444 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
445 + reg = <0x600 0x34>;
447 + resets = <&rstctrl 13>;
448 + reset-names = "pio";
450 + interrupt-parent = <&intc>;
456 + ralink,gpio-base = <0>;
457 + ralink,num-gpios = <24>;
458 + ralink,register-map = [ 00 04 08 0c
462 + status = "disabled";
466 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
467 + reg = <0x638 0x24>;
472 + ralink,gpio-base = <24>;
473 + ralink,num-gpios = <16>;
474 + ralink,register-map = [ 00 04 08 0c
478 + status = "disabled";
482 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
483 + reg = <0x660 0x24>;
488 + ralink,gpio-base = <40>;
489 + ralink,num-gpios = <32>;
490 + ralink,register-map = [ 00 04 08 0c
494 + status = "disabled";
498 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
499 + reg = <0x688 0x24>;
504 + ralink,gpio-base = <72>;
505 + ralink,num-gpios = <24>;
506 + ralink,register-map = [ 00 04 08 0c
510 + status = "disabled";
514 + compatible = "ralink,rt3883-spi", "ralink,rt2880-spi";
515 + reg = <0xb00 0x100>;
516 + #address-cells = <1>;
519 + resets = <&rstctrl 18>;
520 + reset-names = "spi";
522 + status = "disabled";
526 compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
529 + resets = <&rstctrl 19>;
530 + reset-names = "uartl";
532 interrupt-parent = <&intc>;
540 + compatible = "ralink,rt3883-reset", "ralink,rt2880-reset";
541 + #reset-cells = <1>;
545 + compatible = "ralink,rt3883-pci";
546 + reg = <0x10140000 0x20000>;
547 + #address-cells = <1>;
549 + ranges; /* direct mapping */
551 + status = "disabled";
553 + pciintc: interrupt-controller {
554 + interrupt-controller;
555 + #address-cells = <0>;
556 + #interrupt-cells = <1>;
558 + interrupt-parent = <&cpuintc>;
563 + #address-cells = <3>;
565 + #interrupt-cells = <1>;
567 + device_type = "pci";
569 + bus-range = <0 255>;
571 + 0x02000000 0 0x00000000 0x20000000 0 0x10000000 /* pci memory */
572 + 0x01000000 0 0x00000000 0x10160000 0 0x00010000 /* io space */
575 + interrupt-map-mask = <0xf800 0 0 7>;
578 + 0x8800 0 0 1 &pciintc 18
579 + 0x8800 0 0 2 &pciintc 18
580 + 0x8800 0 0 3 &pciintc 18
581 + 0x8800 0 0 4 &pciintc 18
583 + 0x9000 0 0 1 &pciintc 19
584 + 0x9000 0 0 2 &pciintc 19
585 + 0x9000 0 0 3 &pciintc 19
586 + 0x9000 0 0 4 &pciintc 19
590 + reg = <0x0800 0 0 0 0>;
591 + device_type = "pci";
592 + #interrupt-cells = <1>;
593 + #address-cells = <3>;
596 + status = "disabled";
598 + ralink,pci-slot = <1>;
600 + interrupt-map-mask = <0x0 0 0 0>;
601 + interrupt-map = <0x0 0 0 0 &pciintc 20>;
605 + reg = <0x8800 0 0 0 0>;
606 + device_type = "pci";
607 + #interrupt-cells = <1>;
608 + #address-cells = <3>;
611 + ralink,pci-slot = <17>;
613 + status = "disabled";
617 + reg = <0x9000 0 0 0 0>;
618 + device_type = "pci";
619 + #interrupt-cells = <1>;
620 + #address-cells = <3>;
623 + ralink,pci-slot = <18>;
625 + status = "disabled";