[ramips] add patches for v3.8
[openwrt.git] / target / linux / ramips / patches-3.8 / 0106-MIPS-add-RT5350-dtsi-file.patch
1 From 1238d973f3828a65ccf9aead437b4e04925b100e Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 21 Mar 2013 17:47:24 +0100
4 Subject: [PATCH 106/121] MIPS: add RT5350 dtsi file
5
6 Add a dtsi file for RT5350 Soc. This SoC is almost the same as RT3050 but has
7 OHCI/EHCI in favour of the Synopsis DWC2 core.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 ---
11  arch/mips/ralink/dts/rt5350.dtsi |  181 ++++++++++++++++++++++++++++++++++++++
12  1 file changed, 181 insertions(+)
13  create mode 100644 arch/mips/ralink/dts/rt5350.dtsi
14
15 diff --git a/arch/mips/ralink/dts/rt5350.dtsi b/arch/mips/ralink/dts/rt5350.dtsi
16 new file mode 100644
17 index 0000000..9ca95a3
18 --- /dev/null
19 +++ b/arch/mips/ralink/dts/rt5350.dtsi
20 @@ -0,0 +1,181 @@
21 +/ {
22 +       #address-cells = <1>;
23 +       #size-cells = <1>;
24 +       compatible = "ralink,rt5350-soc";
25 +
26 +       cpus {
27 +               cpu@0 {
28 +                       compatible = "mips,mips24KEc";
29 +               };
30 +       };
31 +
32 +       chosen {
33 +               bootargs = "console=ttyS0,57600 init=/init";
34 +       };
35 +
36 +       cpuintc: cpuintc@0 {
37 +               #address-cells = <0>;
38 +               #interrupt-cells = <1>;
39 +               interrupt-controller;
40 +               compatible = "mti,cpu-interrupt-controller";
41 +       };
42 +
43 +       palmbus@10000000 {
44 +               compatible = "palmbus";
45 +               reg = <0x10000000 0x200000>;
46 +               ranges = <0x0 0x10000000 0x1FFFFF>;
47 +
48 +               #address-cells = <1>;
49 +               #size-cells = <1>;
50 +
51 +               sysc@0 {
52 +                       compatible = "ralink,rt5350-sysc", "ralink,rt3050-sysc";
53 +                       reg = <0x0 0x100>;
54 +               };
55 +
56 +               timer@100 {
57 +                       compatible = "ralink,rt5350-timer", "ralink,rt2880-timer";
58 +                       reg = <0x100 0x20>;
59 +
60 +                       interrupt-parent = <&intc>;
61 +                       interrupts = <1>;
62 +
63 +                       status = "disabled";
64 +               };
65 +
66 +               watchdog@120 {
67 +                       compatible = "ralink,rt5350-wdt", "ralink,rt2880-wdt";
68 +                       reg = <0x120 0x10>;
69 +               };
70 +
71 +               intc: intc@200 {
72 +                       compatible = "ralink,rt5350-intc", "ralink,rt2880-intc";
73 +                       reg = <0x200 0x100>;
74 +
75 +                       interrupt-controller;
76 +                       #interrupt-cells = <1>;
77 +
78 +                       interrupt-parent = <&cpuintc>;
79 +                       interrupts = <2>;
80 +               };
81 +
82 +               memc@300 {
83 +                       compatible = "ralink,rt5350-memc", "ralink,rt3050-memc";
84 +                       reg = <0x300 0x100>;
85 +               };
86 +
87 +               gpio0: gpio@600 {
88 +                       compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
89 +                       reg = <0x600 0x34>;
90 +
91 +                       gpio-controller;
92 +                       #gpio-cells = <2>;
93 +
94 +                       ralink,num-gpios = <24>;
95 +                       ralink,register-map = [ 00 04 08 0c
96 +                                               20 24 28 2c
97 +                                               30 34 ];
98 +
99 +                       status = "disabled";
100 +               };
101 +
102 +               gpio1: gpio@638 {
103 +                       compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
104 +                       reg = <0x638 0x24>;
105 +
106 +                       gpio-controller;
107 +                       #gpio-cells = <2>;
108 +
109 +                       ralink,num-gpios = <16>;
110 +                       ralink,register-map = [ 00 04 08 0c
111 +                                               10 14 18 1c
112 +                                               20 24 ];
113 +
114 +                       status = "disabled";
115 +               };
116 +
117 +               gpio2: gpio@660 {
118 +                       compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
119 +                       reg = <0x660 0x24>;
120 +
121 +                       gpio-controller;
122 +                       #gpio-cells = <2>;
123 +
124 +                       ralink,num-gpios = <12>;
125 +                       ralink,register-map = [ 00 04 08 0c
126 +                                               10 14 18 1c
127 +                                               20 24 ];
128 +
129 +                       status = "disabled";
130 +               };
131 +
132 +               spi@b00 {
133 +                       compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
134 +                       reg = <0xb00 0x100>;
135 +                       #address-cells = <1>;
136 +                       #size-cells = <1>;
137 +
138 +                       status = "disabled";
139 +               };
140 +
141 +               uartlite@c00 {
142 +                       compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
143 +                       reg = <0xc00 0x100>;
144 +
145 +                       interrupt-parent = <&intc>;
146 +                       interrupts = <12>;
147 +
148 +                       reg-shift = <2>;
149 +               };
150 +       };
151 +
152 +       ethernet@10100000 {
153 +               compatible = "ralink,rt5350-eth", "ralink,rt3050-eth";
154 +               reg = <0x10100000 10000>;
155 +
156 +               interrupt-parent = <&cpuintc>;
157 +               interrupts = <5>;
158 +
159 +               status = "disabled";
160 +       };
161 +
162 +       esw@10110000 {
163 +               compatible = "ralink,rt5350-esw", "ralink,rt3050-esw";
164 +               reg = <0x10110000 8000>;
165 +
166 +               interrupt-parent = <&intc>;
167 +               interrupts = <17>;
168 +
169 +               status = "disabled";
170 +       };
171 +
172 +       wmac@10180000 {
173 +               compatible = "ralink,rt5350-wmac", "ralink,rt2880-wmac";
174 +               reg = <0x10180000 40000>;
175 +
176 +               interrupt-parent = <&cpuintc>;
177 +               interrupts = <6>;
178 +
179 +               status = "disabled";
180 +       };
181 +
182 +       ehci@101c0000 {
183 +               compatible = "ralink,rt5350-ehci", "ehci-platform";
184 +               reg = <0x101c0000 0x1000>;
185 +
186 +               interrupt-parent = <&intc>;
187 +               interrupts = <18>;
188 +
189 +               status = "disabled";
190 +       };
191 +
192 +       ohci@101c1000 {
193 +               compatible = "ralink,rt5350-ohci", "ohci-platform";
194 +               reg = <0x101c1000 0x1000>;
195 +
196 +               interrupt-parent = <&intc>;
197 +               interrupts = <18>;
198 +
199 +               status = "disabled";
200 +       };
201 +};
202 -- 
203 1.7.10.4
204