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