1 From cee339922876e924295c27e274923d1b381f5057 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Tue, 30 Apr 2013 17:27:46 +0200
4 Subject: [PATCH 140/164] MIPS: ralink DTS file updates
6 Signed-off-by: John Crispin <blogic@openwrt.org>
8 arch/mips/ralink/Kconfig | 8 +
9 arch/mips/ralink/dts/Makefile | 2 +
10 arch/mips/ralink/dts/mt7620a.dtsi | 238 ++++++++++++++++++++++++-
11 arch/mips/ralink/dts/mt7620a_eval.dts | 111 ++++++++++++
12 arch/mips/ralink/dts/mt7620a_mt7610e_eval.dts | 99 ++++++++++
13 arch/mips/ralink/dts/rt2880.dtsi | 17 ++
14 arch/mips/ralink/dts/rt2880_eval.dts | 6 +
15 arch/mips/ralink/dts/rt3050.dtsi | 31 +++-
16 arch/mips/ralink/dts/rt3052_eval.dts | 19 +-
17 arch/mips/ralink/dts/rt5350.dtsi | 227 +++++++++++++++++++++++
18 arch/mips/ralink/dts/rt5350_eval.dts | 69 +++++++
19 11 files changed, 824 insertions(+), 3 deletions(-)
20 create mode 100644 arch/mips/ralink/dts/mt7620a_mt7610e_eval.dts
21 create mode 100644 arch/mips/ralink/dts/rt5350.dtsi
22 create mode 100644 arch/mips/ralink/dts/rt5350_eval.dts
24 diff --git a/arch/mips/ralink/Kconfig b/arch/mips/ralink/Kconfig
25 index 026e823..38540a4 100644
26 --- a/arch/mips/ralink/Kconfig
27 +++ b/arch/mips/ralink/Kconfig
28 @@ -42,6 +42,10 @@ choice
29 bool "RT305x eval kit"
32 + config DTB_RT5350_EVAL
33 + bool "RT5350 eval kit"
34 + depends on SOC_RT305X
36 config DTB_RT3883_EVAL
37 bool "RT3883 eval kit"
39 @@ -50,6 +54,10 @@ choice
40 bool "MT7620A eval kit"
43 + config DTB_MT7620A_MT7610E_EVAL
44 + bool "MT7620A + MT7610E eval kit"
45 + depends on SOC_MT7620
50 diff --git a/arch/mips/ralink/dts/Makefile b/arch/mips/ralink/dts/Makefile
51 index 18194fa..0bd12b5 100644
52 --- a/arch/mips/ralink/dts/Makefile
53 +++ b/arch/mips/ralink/dts/Makefile
55 obj-$(CONFIG_DTB_RT2880_EVAL) := rt2880_eval.dtb.o
56 obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_eval.dtb.o
57 +obj-$(CONFIG_DTB_RT5350_EVAL) := rt5350_eval.dtb.o
58 obj-$(CONFIG_DTB_RT3883_EVAL) := rt3883_eval.dtb.o
59 obj-$(CONFIG_DTB_MT7620A_EVAL) := mt7620a_eval.dtb.o
60 +obj-$(CONFIG_DTB_MT7620A_MT7610E_EVAL) := mt7620a_mt7610e_eval.dtb.o
61 diff --git a/arch/mips/ralink/dts/mt7620a.dtsi b/arch/mips/ralink/dts/mt7620a.dtsi
62 index 08bf24f..104abfb 100644
63 --- a/arch/mips/ralink/dts/mt7620a.dtsi
64 +++ b/arch/mips/ralink/dts/mt7620a.dtsi
69 - compatible = "ralink,mt7620a-sysc";
70 + compatible = "ralink,mt7620a-sysc", "ralink,rt3050-sysc";
75 + compatible = "ralink,mt7620a-timer", "ralink,rt2880-timer";
78 + interrupt-parent = <&intc>;
83 + compatible = "ralink,mt7620a-wdt", "ralink,rt2880-wdt";
86 + resets = <&rstctrl 8>;
87 + reset-names = "wdt";
89 + interrupt-parent = <&intc>;
94 compatible = "ralink,mt7620a-intc", "ralink,rt2880-intc";
97 + resets = <&rstctrl 19>;
98 + reset-names = "intc";
100 interrupt-controller;
101 #interrupt-cells = <1>;
105 compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
108 + resets = <&rstctrl 20>;
109 + reset-names = "mc";
111 + interrupt-parent = <&intc>;
116 + compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
117 + reg = <0x500 0x100>;
119 + resets = <&rstctrl 12>;
120 + reset-names = "uart";
122 + interrupt-parent = <&intc>;
127 + status = "disabled";
131 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
132 + reg = <0x600 0x34>;
134 + resets = <&rstctrl 13>;
135 + reset-names = "pio";
137 + interrupt-parent = <&intc>;
143 + ralink,gpio-base = <0>;
144 + ralink,num-gpios = <24>;
145 + ralink,register-map = [ 00 04 08 0c
149 + status = "disabled";
153 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
154 + reg = <0x638 0x24>;
156 + interrupt-parent = <&intc>;
162 + ralink,gpio-base = <24>;
163 + ralink,num-gpios = <16>;
164 + ralink,register-map = [ 00 04 08 0c
168 + status = "disabled";
172 + compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
173 + reg = <0x660 0x24>;
175 + interrupt-parent = <&intc>;
181 + ralink,gpio-base = <40>;
182 + ralink,num-gpios = <32>;
183 + ralink,register-map = [ 00 04 08 0c
187 + status = "disabled";
191 + compatible = "link,mt7620a-i2c", "ralink,rt2880-i2c";
192 + reg = <0x900 0x100>;
194 + resets = <&rstctrl 16>;
195 + reset-names = "i2c";
197 + #address-cells = <1>;
200 + status = "disabled";
204 + compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
205 + reg = <0xb00 0x100>;
207 + resets = <&rstctrl 18>;
208 + reset-names = "spi";
210 + #address-cells = <1>;
213 + status = "disabled";
217 compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
220 + resets = <&rstctrl 19>;
221 + reset-names = "uartl";
223 interrupt-parent = <&intc>;
230 + compatible = "ralink,mt7620a-systick", "ralink,cevt-systick";
231 + reg = <0xd00 0x10>;
233 + resets = <&rstctrl 28>;
234 + reset-names = "intc";
236 + interrupt-parent = <&cpuintc>;
241 + compatible = "ralink,mt7620a-gdma", "ralink,rt2880-gdma";
242 + reg = <0x2800 0x800>;
244 + resets = <&rstctrl 14>;
245 + reset-names = "dma";
247 + interrupt-parent = <&intc>;
253 + compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset";
254 + #reset-cells = <1>;
258 + compatible = "ralink,mt7620a-usbphy";
260 + resets = <&rstctrl 22 &rstctrl 25>;
261 + reset-names = "host", "device";
264 + ethernet@10100000 {
265 + compatible = "ralink,mt7620a-eth";
266 + reg = <0x10100000 10000>;
268 + #address-cells = <1>;
271 + interrupt-parent = <&cpuintc>;
274 + status = "disabled";
277 + #address-cells = <1>;
280 + status = "disabled";
285 + compatible = "ralink,mt7620a-gsw";
286 + reg = <0x10110000 8000>;
288 + interrupt-parent = <&intc>;
291 + status = "disabled";
295 + compatible = "ralink,mt7620a-sdhci";
296 + reg = <0x10130000 4000>;
298 + interrupt-parent = <&intc>;
301 + status = "disabled";
305 + compatible = "ralink,rt3xxx-ehci";
306 + reg = <0x101c0000 0x1000>;
308 + interrupt-parent = <&intc>;
313 + compatible = "ralink,rt3xxx-ohci";
314 + reg = <0x101c1000 0x1000>;
316 + interrupt-parent = <&intc>;
321 + compatible = "ralink,mt7620a-pci";
322 + reg = <0x10140000 0x100
325 + resets = <&rstctrl 26>;
326 + reset-names = "pcie0";
328 + interrupt-parent = <&cpuintc>;
331 + status = "disabled";
334 diff --git a/arch/mips/ralink/dts/mt7620a_eval.dts b/arch/mips/ralink/dts/mt7620a_eval.dts
335 index 35eb874..b56f449 100644
336 --- a/arch/mips/ralink/dts/mt7620a_eval.dts
337 +++ b/arch/mips/ralink/dts/mt7620a_eval.dts
340 bootargs = "console=ttyS0,57600";
345 + ralink,pinmux = "spi", "uartlite", "mdio", "wled", "ephy", "rgmii1", "rgmii2";
346 + ralink,gpiomux = "i2c", "jtag";
347 + ralink,uartmux = "gpio";
348 + ralink,wdtmux = <1>;
359 + #address-cells = <1>;
361 + compatible = "en25q64";
363 + linux,modalias = "m25p80", "en25q64";
364 + spi-max-frequency = <10000000>;
368 + reg = <0x0 0x30000>;
373 + label = "u-boot-env";
374 + reg = <0x30000 0x10000>;
378 + factory: partition@40000 {
380 + reg = <0x40000 0x10000>;
385 + label = "firmware";
386 + reg = <0x50000 0x7b0000>;
392 + ethernet@10100000 {
396 + compatible = "lantiq,mt7620a-gsw-port", "ralink,eth-port";
398 + phy-mode = "rgmii";
399 + phy-handle = <&phy4>;
403 + compatible = "lantiq,mt7620a-gsw-port", "ralink,eth-port";
405 + phy-mode = "rgmii";
406 + phy-handle = <&phy5>;
412 + phy4: ethernet-phy@4 {
414 + phy-mode = "rgmii";
417 + phy5: ethernet-phy@5 {
419 + phy-mode = "rgmii";
426 + ralink,port4 = "gmac";
438 + compatible = "gpio-keys";
439 + #address-cells = <1>;
441 + poll-interval = <20>;
444 + gpios = <&gpio0 1 1>;
445 + linux,code = <0x100>;
449 + gpios = <&gpio0 2 1>;
450 + linux,code = <0x101>;
454 diff --git a/arch/mips/ralink/dts/mt7620a_mt7610e_eval.dts b/arch/mips/ralink/dts/mt7620a_mt7610e_eval.dts
456 index 0000000..0d7755b
458 +++ b/arch/mips/ralink/dts/mt7620a_mt7610e_eval.dts
462 +/include/ "mt7620a.dtsi"
465 + compatible = "ralink,mt7620a-eval-board", "ralink,mt7620a-soc";
466 + model = "Ralink MT7620A evaluation board";
469 + reg = <0x0 0x2000000>;
473 + bootargs = "console=ttyS0,57600";
478 + ralink,pinmux = "spi", "uartlite", "mdio", "wled", "ephy", "rgmii1", "rgmii2";
479 + ralink,gpiomux = "i2c", "jtag";
480 + ralink,uartmux = "gpio";
481 + ralink,wdtmux = <1>;
492 + #address-cells = <1>;
494 + compatible = "en25q64";
496 + linux,modalias = "m25p80", "en25q64";
497 + spi-max-frequency = <10000000>;
501 + reg = <0x0 0x30000>;
506 + label = "u-boot-env";
507 + reg = <0x30000 0x10000>;
511 + factory: partition@40000 {
513 + reg = <0x40000 0x10000>;
518 + label = "firmware";
519 + reg = <0x50000 0x7b0000>;
525 + ethernet@10100000 {
531 + ralink,port4 = "ephy";
543 + compatible = "gpio-keys";
544 + #address-cells = <1>;
546 + poll-interval = <20>;
549 + gpios = <&gpio0 12 1>;
550 + linux,code = <0x100>;
554 + gpios = <&gpio0 13 1>;
555 + linux,code = <0x101>;
559 diff --git a/arch/mips/ralink/dts/rt2880.dtsi b/arch/mips/ralink/dts/rt2880.dtsi
560 index 182afde..2a34b8d 100644
561 --- a/arch/mips/ralink/dts/rt2880.dtsi
562 +++ b/arch/mips/ralink/dts/rt2880.dtsi
569 + compatible = "ralink,rt2880-eth";
570 + reg = <0x00400000 10000>;
572 + interrupt-parent = <&cpuintc>;
575 + status = "disabled";
578 + #address-cells = <1>;
581 + status = "disabled";
585 diff --git a/arch/mips/ralink/dts/rt2880_eval.dts b/arch/mips/ralink/dts/rt2880_eval.dts
586 index 322d700..58a1edf 100644
587 --- a/arch/mips/ralink/dts/rt2880_eval.dts
588 +++ b/arch/mips/ralink/dts/rt2880_eval.dts
590 reg = <0x50000 0x3b0000>;
597 + ralink,fixed-link = <1000 1 1 1>;
600 diff --git a/arch/mips/ralink/dts/rt3050.dtsi b/arch/mips/ralink/dts/rt3050.dtsi
601 index ef7da1e..b1ac940 100644
602 --- a/arch/mips/ralink/dts/rt3050.dtsi
603 +++ b/arch/mips/ralink/dts/rt3050.dtsi
606 #address-cells = <1>;
608 - compatible = "ralink,rt3050-soc", "ralink,rt3052-soc", "ralink,rt3350-soc";
609 + compatible = "ralink,rt3050-soc", "ralink,rt3052-soc";
618 + compatible = "link,rt3052-i2c", "ralink,rt2880-i2c";
619 + reg = <0x900 0x100>;
620 + #address-cells = <1>;
623 + status = "disabled";
627 compatible = "ralink,rt3052-uart", "ralink,rt2880-uart", "ns16550a";
634 + ethernet@10100000 {
635 + compatible = "ralink,rt3050-eth";
636 + reg = <0x10100000 10000>;
638 + interrupt-parent = <&cpuintc>;
641 + status = "disabled";
645 + compatible = "ralink,rt3050-esw";
646 + reg = <0x10110000 8000>;
648 + interrupt-parent = <&intc>;
651 + status = "disabled";
654 diff --git a/arch/mips/ralink/dts/rt3052_eval.dts b/arch/mips/ralink/dts/rt3052_eval.dts
655 index df17f5f..df02957 100644
656 --- a/arch/mips/ralink/dts/rt3052_eval.dts
657 +++ b/arch/mips/ralink/dts/rt3052_eval.dts
659 /include/ "rt3050.dtsi"
662 - compatible = "ralink,rt3052-eval-board", "ralink,rt3052-soc";
663 + compatible = "ralink,rt3052-eval-board", "ralink,rt3052-soc", "ralink,rt5350-soc";
664 model = "Ralink RT3052 evaluation board";
668 bootargs = "console=ttyS0,57600";
673 + ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
674 + ralink,uartmux = "gpio";
675 + ralink,wdtmux = <1>;
680 compatible = "cfi-flash";
681 reg = <0x1f000000 0x800000>;
683 reg = <0x50000 0x7b0000>;
687 + ethernet@10100000 {
693 + ralink,portmap = <0x2f>;
696 diff --git a/arch/mips/ralink/dts/rt5350.dtsi b/arch/mips/ralink/dts/rt5350.dtsi
698 index 0000000..3d6b3bc
700 +++ b/arch/mips/ralink/dts/rt5350.dtsi
703 + #address-cells = <1>;
705 + compatible = "ralink,rt5350-soc";
709 + compatible = "mips,mips24KEc";
713 + cpuintc: cpuintc@0 {
714 + #address-cells = <0>;
715 + #interrupt-cells = <1>;
716 + interrupt-controller;
717 + compatible = "mti,cpu-interrupt-controller";
721 + compatible = "palmbus";
722 + reg = <0x10000000 0x200000>;
723 + ranges = <0x0 0x10000000 0x1FFFFF>;
725 + #address-cells = <1>;
729 + compatible = "ralink,rt5350-sysc", "ralink,rt3050-sysc";
734 + compatible = "ralink,rt5350-timer", "ralink,rt2880-timer";
735 + reg = <0x100 0x20>;
737 + interrupt-parent = <&intc>;
742 + compatible = "ralink,rt5350-wdt", "ralink,rt2880-wdt";
743 + reg = <0x120 0x10>;
745 + resets = <&rstctrl 8>;
746 + reset-names = "wdt";
748 + interrupt-parent = <&intc>;
753 + compatible = "ralink,rt5350-intc", "ralink,rt2880-intc";
754 + reg = <0x200 0x100>;
756 + resets = <&rstctrl 19>;
757 + reset-names = "intc";
759 + interrupt-controller;
760 + #interrupt-cells = <1>;
762 + interrupt-parent = <&cpuintc>;
767 + compatible = "ralink,rt5350-memc", "ralink,rt3050-memc";
768 + reg = <0x300 0x100>;
770 + resets = <&rstctrl 20>;
771 + reset-names = "mc";
773 + interrupt-parent = <&intc>;
778 + compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
779 + reg = <0x500 0x100>;
781 + resets = <&rstctrl 12>;
782 + reset-names = "uart";
784 + interrupt-parent = <&intc>;
789 + status = "disabled";
793 + compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
794 + reg = <0x600 0x34>;
796 + resets = <&rstctrl 13>;
797 + reset-names = "pio";
799 + interrupt-parent = <&intc>;
805 + ralink,gpio-base = <0>;
806 + ralink,num-gpios = <24>;
807 + ralink,register-map = [ 00 04 08 0c
811 + status = "disabled";
815 + compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
816 + reg = <0x638 0x24>;
818 + interrupt-parent = <&intc>;
824 + ralink,gpio-base = <24>;
825 + ralink,num-gpios = <16>;
826 + ralink,register-map = [ 00 04 08 0c
830 + status = "disabled";
834 + compatible = "link,rt5350-i2c", "ralink,rt2880-i2c";
835 + reg = <0x900 0x100>;
837 + resets = <&rstctrl 16>;
838 + reset-names = "i2c";
840 + #address-cells = <1>;
843 + status = "disabled";
847 + compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
848 + reg = <0xb00 0x100>;
850 + resets = <&rstctrl 18>;
851 + reset-names = "spi";
853 + #address-cells = <1>;
856 + status = "disabled";
860 + compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
861 + reg = <0xc00 0x100>;
863 + resets = <&rstctrl 19>;
864 + reset-names = "uartl";
866 + interrupt-parent = <&intc>;
873 + compatible = "ralink,rt5350-systick", "ralink,cevt-systick";
874 + reg = <0xd00 0x10>;
876 + interrupt-parent = <&cpuintc>;
882 + compatible = "ralink,rt5350-reset", "ralink,rt2880-reset";
883 + #reset-cells = <1>;
887 + compatible = "ralink,rt3xxx-usbphy";
889 + resets = <&rstctrl 22 &rstctrl 25>;
890 + reset-names = "host", "device";
893 + ethernet@10100000 {
894 + compatible = "ralink,rt5350-eth";
895 + reg = <0x10100000 10000>;
897 + interrupt-parent = <&cpuintc>;
900 + status = "disabled";
904 + compatible = "ralink,rt3050-esw";
905 + reg = <0x10110000 8000>;
907 + interrupt-parent = <&intc>;
910 + status = "disabled";
914 + compatible = "ralink,rt3xxx-ehci";
915 + reg = <0x101c0000 0x1000>;
917 + interrupt-parent = <&intc>;
922 + compatible = "ralink,rt3xxx-ohci";
923 + reg = <0x101c1000 0x1000>;
925 + interrupt-parent = <&intc>;
929 diff --git a/arch/mips/ralink/dts/rt5350_eval.dts b/arch/mips/ralink/dts/rt5350_eval.dts
931 index 0000000..ab92043
933 +++ b/arch/mips/ralink/dts/rt5350_eval.dts
937 +/include/ "rt5350.dtsi"
940 + compatible = "ralink,rt5350-eval-board", "ralink,rt5350-soc";
941 + model = "Ralink RT5350 evaluation board";
944 + bootargs = "console=ttyS0,57600";
949 + ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
950 + ralink,uartmux = "gpio";
951 + ralink,wdtmux = <1>;
962 + #address-cells = <1>;
964 + compatible = "en25q64";
966 + linux,modalias = "m25p80", "mx25l3205d";
967 + spi-max-frequency = <10000000>;
971 + reg = <0x0 0x30000>;
976 + label = "u-boot-env";
977 + reg = <0x30000 0x10000>;
981 + factory: partition@40000 {
983 + reg = <0x40000 0x10000>;
988 + label = "firmware";
989 + reg = <0x50000 0x3b0000>;
995 + ethernet@10100000 {
1001 + ralink,portmap = <0x2f>;