ramips: update dtsi files to support second spi device
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt5350.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "ralink,rt5350-soc";
5
6 cpus {
7 cpu@0 {
8 compatible = "mips,mips24KEc";
9 };
10 };
11
12 chosen {
13 bootargs = "console=ttyS0,57600";
14 };
15
16 cpuintc: cpuintc@0 {
17 #address-cells = <0>;
18 #interrupt-cells = <1>;
19 interrupt-controller;
20 compatible = "mti,cpu-interrupt-controller";
21 };
22
23 aliases {
24 spi0 = &spi0;
25 spi1 = &spi1;
26 };
27
28 palmbus@10000000 {
29 compatible = "palmbus";
30 reg = <0x10000000 0x200000>;
31 ranges = <0x0 0x10000000 0x1FFFFF>;
32
33 #address-cells = <1>;
34 #size-cells = <1>;
35
36 sysc@0 {
37 compatible = "ralink,rt5350-sysc", "ralink,rt3050-sysc";
38 reg = <0x0 0x100>;
39 };
40
41 timer@100 {
42 compatible = "ralink,rt5350-timer", "ralink,rt2880-timer";
43 reg = <0x100 0x20>;
44
45 interrupt-parent = <&intc>;
46 interrupts = <1>;
47 };
48
49 watchdog@120 {
50 compatible = "ralink,rt5350-wdt", "ralink,rt2880-wdt";
51 reg = <0x120 0x10>;
52
53 resets = <&rstctrl 8>;
54 reset-names = "wdt";
55
56 interrupt-parent = <&intc>;
57 interrupts = <1>;
58 };
59
60 intc: intc@200 {
61 compatible = "ralink,rt5350-intc", "ralink,rt2880-intc";
62 reg = <0x200 0x100>;
63
64 resets = <&rstctrl 19>;
65 reset-names = "intc";
66
67 interrupt-controller;
68 #interrupt-cells = <1>;
69
70 interrupt-parent = <&cpuintc>;
71 interrupts = <2>;
72 };
73
74 memc@300 {
75 compatible = "ralink,rt5350-memc", "ralink,rt3050-memc";
76 reg = <0x300 0x100>;
77
78 resets = <&rstctrl 20>;
79 reset-names = "mc";
80
81 interrupt-parent = <&intc>;
82 interrupts = <3>;
83 };
84
85 uart@500 {
86 compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
87 reg = <0x500 0x100>;
88
89 resets = <&rstctrl 12>;
90 reset-names = "uart";
91
92 interrupt-parent = <&intc>;
93 interrupts = <5>;
94
95 reg-shift = <2>;
96
97 pinctrl-names = "default";
98 pinctrl-0 = <&uartf_pins>;
99
100 status = "disabled";
101 };
102
103 gpio0: gpio@600 {
104 compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
105 reg = <0x600 0x34>;
106
107 resets = <&rstctrl 13>;
108 reset-names = "pio";
109
110 interrupt-parent = <&intc>;
111 interrupts = <6>;
112
113 gpio-controller;
114 #gpio-cells = <2>;
115
116 ralink,gpio-base = <0>;
117 ralink,num-gpios = <22>;
118 ralink,register-map = [ 00 04 08 0c
119 20 24 28 2c
120 30 34 ];
121 };
122
123 gpio1: gpio@660 {
124 compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
125 reg = <0x660 0x24>;
126
127 interrupt-parent = <&intc>;
128 interrupts = <6>;
129
130 gpio-controller;
131 #gpio-cells = <2>;
132
133 ralink,gpio-base = <22>;
134 ralink,num-gpios = <6>;
135 ralink,register-map = [ 00 04 08 0c
136 10 14 18 1c
137 20 24 ];
138
139 status = "disabled";
140 };
141
142 i2c@900 {
143 compatible = "link,rt5350-i2c", "ralink,rt2880-i2c";
144 reg = <0x900 0x100>;
145
146 resets = <&rstctrl 16>;
147 reset-names = "i2c";
148
149 #address-cells = <1>;
150 #size-cells = <0>;
151
152 pinctrl-names = "default";
153 pinctrl-0 = <&i2c_pins>;
154
155 status = "disabled";
156 };
157
158 spi0: spi@b00 {
159 compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
160 reg = <0xb00 0x40>;
161
162 resets = <&rstctrl 18>;
163 reset-names = "spi";
164
165 #address-cells = <1>;
166 #size-cells = <1>;
167
168 pinctrl-names = "default";
169 pinctrl-0 = <&spi_pins>;
170
171 status = "disabled";
172 };
173
174 spi1: spi@b40 {
175 compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
176 reg = <0xb40 0x60>;
177
178 resets = <&rstctrl 18>;
179 reset-names = "spi";
180
181 #address-cells = <1>;
182 #size-cells = <0>;
183
184 pinctrl-names = "default";
185 pinctrl-0 = <&spi_cs1>;
186
187 status = "disabled";
188 };
189
190 uartlite@c00 {
191 compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
192 reg = <0xc00 0x100>;
193
194 resets = <&rstctrl 19>;
195 reset-names = "uartl";
196
197 interrupt-parent = <&intc>;
198 interrupts = <12>;
199
200 pinctrl-names = "default";
201 pinctrl-0 = <&uartlite_pins>;
202
203 reg-shift = <2>;
204 };
205
206 systick@d00 {
207 compatible = "ralink,rt5350-systick", "ralink,cevt-systick";
208 reg = <0xd00 0x10>;
209
210 interrupt-parent = <&cpuintc>;
211 interrupts = <7>;
212 };
213 };
214
215 pinctrl {
216 compatible = "ralink,rt2880-pinmux";
217
218 pinctrl-names = "default";
219 pinctrl-0 = <&state_default>;
220
221 state_default: pinctrl0 {
222 };
223
224 spi_pins: spi {
225 spi {
226 ralink,group = "spi";
227 ralink,function = "spi";
228 };
229 };
230
231 i2c_pins: i2c {
232 i2c {
233 ralink,group = "i2c";
234 ralink,function = "i2c";
235 };
236 };
237
238 phy_led_pins: phy_led {
239 phy_led {
240 ralink,group = "led";
241 ralink,function = "led";
242 };
243 };
244
245 uartlite_pins: uartlite {
246 uart {
247 ralink,group = "uartlite";
248 ralink,function = "uartlite";
249 };
250 };
251
252 uartf_pins: uartf {
253 uartf {
254 ralink,group = "uartf";
255 ralink,function = "uartf";
256 };
257 };
258
259 spi_cs1: spi1 {
260 spi1 {
261 ralink,group = "spi_cs1";
262 ralink,function = "spi_cs1";
263 };
264 };
265 };
266
267 rstctrl: rstctrl {
268 compatible = "ralink,rt5350-reset", "ralink,rt2880-reset";
269 #reset-cells = <1>;
270 };
271
272 usbphy: usbphy {
273 compatible = "ralink,rt3xxx-usbphy";
274 #phy-cells = <1>;
275
276 resets = <&rstctrl 22 &rstctrl 25>;
277 reset-names = "host", "device";
278 };
279
280 ethernet@10100000 {
281 compatible = "ralink,rt5350-eth";
282 reg = <0x10100000 10000>;
283
284 resets = <&rstctrl 21 &rstctrl 23>;
285 reset-names = "fe", "esw";
286
287 interrupt-parent = <&cpuintc>;
288 interrupts = <5>;
289 };
290
291 esw@10110000 {
292 compatible = "ralink,rt3050-esw";
293 reg = <0x10110000 8000>;
294
295 resets = <&rstctrl 23>;
296 reset-names = "esw";
297
298 interrupt-parent = <&intc>;
299 interrupts = <17>;
300 };
301
302 wmac@10180000 {
303 compatible = "ralink,rt5350-wmac", "ralink,rt2880-wmac";
304 reg = <0x10180000 40000>;
305
306 interrupt-parent = <&cpuintc>;
307 interrupts = <6>;
308
309 ralink,eeprom = "soc_wmac.eeprom";
310 };
311
312 ehci@101c0000 {
313 compatible = "ralink,rt3xxx-ehci", "ehci-platform";
314 reg = <0x101c0000 0x1000>;
315
316 phys = <&usbphy 1>;
317 phy-names = "usb";
318
319 interrupt-parent = <&intc>;
320 interrupts = <18>;
321 };
322
323 ohci@101c1000 {
324 compatible = "ralink,rt3xxx-ohci", "ohci-platform";
325 reg = <0x101c1000 0x1000>;
326
327 phys = <&usbphy 1>;
328 phy-names = "usb";
329
330 interrupt-parent = <&intc>;
331 interrupts = <18>;
332 };
333 };