ramips: Add DTS files for HiWiFi HC5x61 models
[openwrt/svn-archive/archive.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
210 i2c_pins: i2c {
211 i2c {
212 ralink,group = "i2c";
213 ralink,function = "i2c";
214 };
215 };
216
217 phy_led_pins: phy_led {
218 phy_led {
219 ralink,group = "led";
220 ralink,function = "led";
221 };
222 };
223
224 uartlite_pins: uartlite {
225 uart {
226 ralink,group = "uartlite";
227 ralink,function = "uartlite";
228 };
229 };
230
231 uartf_pins: uartf {
232 uartf {
233 ralink,group = "uartf";
234 ralink,function = "uartf";
235 };
236 };
237
238 spi_cs1: spi1 {
239 spi1 {
240 ralink,group = "spi_cs1";
241 ralink,function = "spi_cs1";
242 };
243 };
244 };
245
246 rstctrl: rstctrl {
247 compatible = "ralink,rt5350-reset", "ralink,rt2880-reset";
248 #reset-cells = <1>;
249 };
250
251 usbphy: usbphy {
252 compatible = "ralink,rt3xxx-usbphy";
253 #phy-cells = <1>;
254
255 resets = <&rstctrl 22 &rstctrl 25>;
256 reset-names = "host", "device";
257 };
258
259 ethernet@10100000 {
260 compatible = "ralink,rt5350-eth";
261 reg = <0x10100000 10000>;
262
263 resets = <&rstctrl 21 &rstctrl 23>;
264 reset-names = "fe", "esw";
265
266 interrupt-parent = <&cpuintc>;
267 interrupts = <5>;
268 };
269
270 esw@10110000 {
271 compatible = "ralink,rt3050-esw";
272 reg = <0x10110000 8000>;
273
274 resets = <&rstctrl 23>;
275 reset-names = "esw";
276
277 interrupt-parent = <&intc>;
278 interrupts = <17>;
279 };
280
281 wmac@10180000 {
282 compatible = "ralink,rt5350-wmac", "ralink,rt2880-wmac";
283 reg = <0x10180000 40000>;
284
285 interrupt-parent = <&cpuintc>;
286 interrupts = <6>;
287
288 ralink,eeprom = "soc_wmac.eeprom";
289 };
290
291 ehci@101c0000 {
292 compatible = "ralink,rt3xxx-ehci", "ehci-platform";
293 reg = <0x101c0000 0x1000>;
294
295 phys = <&usbphy 1>;
296 phy-names = "usb";
297
298 interrupt-parent = <&intc>;
299 interrupts = <18>;
300 };
301
302 ohci@101c1000 {
303 compatible = "ralink,rt3xxx-ohci", "ohci-platform";
304 reg = <0x101c1000 0x1000>;
305
306 phys = <&usbphy 1>;
307 phy-names = "usb";
308
309 interrupt-parent = <&intc>;
310 interrupts = <18>;
311 };
312 };