1 From 9d13fedc08f4e2cd9640983c2af8b9e9c64c094b Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 21 Mar 2013 18:37:00 +0100
4 Subject: [PATCH 110/121] MIPS: add rt3883 dts files
6 Add a dtsi file for RT3883 SoC. This SoC is almost the same as RT3050 but has
7 OHCI/EHCI in favour of the Synopsis DWC2 core. There is also a 3x3 802.11n
10 Signed-off-by: John Crispin <blogic@openwrt.org>
12 arch/mips/ralink/Kconfig | 4 +
13 arch/mips/ralink/dts/Makefile | 1 +
14 arch/mips/ralink/dts/rt3883.dtsi | 186 ++++++++++++++++++++++++++++++++++
15 arch/mips/ralink/dts/rt3883_eval.dts | 52 ++++++++++
16 4 files changed, 243 insertions(+)
17 create mode 100644 arch/mips/ralink/dts/rt3883.dtsi
18 create mode 100644 arch/mips/ralink/dts/rt3883_eval.dts
20 diff --git a/arch/mips/ralink/Kconfig b/arch/mips/ralink/Kconfig
21 index f21cbaa..2ef69ee 100644
22 --- a/arch/mips/ralink/Kconfig
23 +++ b/arch/mips/ralink/Kconfig
24 @@ -39,6 +39,10 @@ choice
25 bool "RT305x eval kit"
28 + config DTB_RT3883_EVAL
29 + bool "RT3883 eval kit"
30 + depends on SOC_RT3883
35 diff --git a/arch/mips/ralink/dts/Makefile b/arch/mips/ralink/dts/Makefile
36 index f635a01..040a986 100644
37 --- a/arch/mips/ralink/dts/Makefile
38 +++ b/arch/mips/ralink/dts/Makefile
40 obj-$(CONFIG_DTB_RT2880_EVAL) := rt2880_eval.dtb.o
41 obj-$(CONFIG_DTB_RT305X_EVAL) := rt3052_eval.dtb.o
42 +obj-$(CONFIG_DTB_RT3883_EVAL) := rt3883_eval.dtb.o
43 diff --git a/arch/mips/ralink/dts/rt3883.dtsi b/arch/mips/ralink/dts/rt3883.dtsi
45 index 0000000..1e80ad3
47 +++ b/arch/mips/ralink/dts/rt3883.dtsi
50 + #address-cells = <1>;
52 + compatible = "ralink,rt3883-soc";
56 + compatible = "mips,mips74Kc";
61 + bootargs = "console=ttyS0,57600 init=/init";
64 + cpuintc: cpuintc@0 {
65 + #address-cells = <0>;
66 + #interrupt-cells = <1>;
67 + interrupt-controller;
68 + compatible = "mti,cpu-interrupt-controller";
72 + compatible = "palmbus";
73 + reg = <0x10000000 0x200000>;
74 + ranges = <0x0 0x10000000 0x1FFFFF>;
76 + #address-cells = <1>;
80 + compatible = "ralink,rt3883-sysc", "ralink,rt3050-sysc";
85 + compatible = "ralink,rt3883-timer", "ralink,rt2880-timer";
88 + interrupt-parent = <&intc>;
91 + status = "disabled";
95 + compatible = "ralink,rt3883-wdt", "ralink,rt2880-wdt";
100 + compatible = "ralink,rt3883-intc", "ralink,rt2880-intc";
101 + reg = <0x200 0x100>;
103 + interrupt-controller;
104 + #interrupt-cells = <1>;
106 + interrupt-parent = <&cpuintc>;
111 + compatible = "ralink,rt3883-memc", "ralink,rt3050-memc";
112 + reg = <0x300 0x100>;
116 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
117 + reg = <0x600 0x34>;
122 + ralink,num-gpios = <24>;
123 + ralink,register-map = [ 00 04 08 0c
127 + status = "disabled";
131 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
132 + reg = <0x638 0x24>;
137 + ralink,num-gpios = <16>;
138 + ralink,register-map = [ 00 04 08 0c
142 + status = "disabled";
146 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
147 + reg = <0x660 0x24>;
152 + ralink,num-gpios = <32>;
153 + ralink,register-map = [ 00 04 08 0c
157 + status = "disabled";
161 + compatible = "ralink,rt3883-gpio", "ralink,rt2880-gpio";
162 + reg = <0x688 0x24>;
167 + ralink,num-gpios = <24>;
168 + ralink,register-map = [ 00 04 08 0c
172 + status = "disabled";
176 + compatible = "ralink,rt3883-spi", "ralink,rt2880-spi";
177 + reg = <0xb00 0x100>;
178 + #address-cells = <1>;
181 + status = "disabled";
185 + compatible = "ralink,rt3883-uart", "ralink,rt2880-uart", "ns16550a";
186 + reg = <0xc00 0x100>;
188 + interrupt-parent = <&intc>;
195 + ethernet@10100000 {
196 + compatible = "ralink,rt3883-eth";
197 + reg = <0x10100000 10000>;
199 + interrupt-parent = <&cpuintc>;
202 + status = "disabled";
206 + compatible = "ralink,rt3883-wmac", "ralink,rt2880-wmac";
207 + reg = <0x10180000 40000>;
209 + interrupt-parent = <&cpuintc>;
212 + status = "disabled";
216 + compatible = "ralink,rt3883-ehci", "ehci-platform";
217 + reg = <0x101c0000 0x1000>;
219 + interrupt-parent = <&intc>;
222 + status = "disabled";
226 + compatible = "ralink,rt3883-ohci", "ohci-platform";
227 + reg = <0x101c1000 0x1000>;
229 + interrupt-parent = <&intc>;
232 + status = "disabled";
235 diff --git a/arch/mips/ralink/dts/rt3883_eval.dts b/arch/mips/ralink/dts/rt3883_eval.dts
237 index 0000000..d4c06ed
239 +++ b/arch/mips/ralink/dts/rt3883_eval.dts
243 +/include/ "rt3883.dtsi"
246 + #address-cells = <1>;
248 + compatible = "ralink,rt3883-eval-board", "ralink,rt3883-soc";
249 + model = "Ralink RT3883 evaluation board";
252 + reg = <0x0 0x4000000>;
257 + ralink,pinmmux = "uartlite", "spi";
258 + ralink,uartmux = "gpio";
259 + ralink,wdtmux = <0>;
264 + compatible = "cfi-flash";
265 + reg = <0x1f000000 0x800000>;
268 + device-width = <2>;
269 + #address-cells = <1>;
274 + reg = <0x0 0x30000>;
278 + label = "uboot-env";
279 + reg = <0x30000 0x10000>;
283 + label = "calibration";
284 + reg = <0x40000 0x10000>;
289 + reg = <0x50000 0x7b0000>;