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