ramips: move mt7620n i2c_pins definition to right place
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n.dtsi
1 / {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "ralink,mtk7620n-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: 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: sysc@0 {
38 compatible = "ralink,mt7620a-sysc", "ralink,rt3050-sysc", "syscon";
39 reg = <0x0 0x100>;
40 };
41
42 timer: timer@100 {
43 compatible = "ralink,mt7620a-timer", "ralink,rt2880-timer";
44 reg = <0x100 0x20>;
45
46 interrupt-parent = <&intc>;
47 interrupts = <1>;
48 };
49
50 watchdog: watchdog@120 {
51 compatible = "ralink,mt7620a-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,mt7620a-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: memc@300 {
76 compatible = "ralink,mt7620a-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 gpio0: gpio@600 {
87 compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
88 reg = <0x600 0x34>;
89
90 resets = <&rstctrl 13>;
91 reset-names = "pio";
92
93 interrupt-parent = <&intc>;
94 interrupts = <6>;
95
96 gpio-controller;
97 #gpio-cells = <2>;
98
99 ralink,gpio-base = <0>;
100 ralink,num-gpios = <24>;
101 ralink,register-map = [ 00 04 08 0c
102 20 24 28 2c
103 30 34 ];
104 };
105
106 gpio1: gpio@638 {
107 compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
108 reg = <0x638 0x24>;
109
110 interrupt-parent = <&intc>;
111 interrupts = <6>;
112
113 gpio-controller;
114 #gpio-cells = <2>;
115
116 ralink,gpio-base = <24>;
117 ralink,num-gpios = <16>;
118 ralink,register-map = [ 00 04 08 0c
119 10 14 18 1c
120 20 24 ];
121
122 status = "disabled";
123 };
124
125 gpio2: gpio@660 {
126 compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
127 reg = <0x660 0x24>;
128
129 interrupt-parent = <&intc>;
130 interrupts = <6>;
131
132 gpio-controller;
133 #gpio-cells = <2>;
134
135 ralink,gpio-base = <40>;
136 ralink,num-gpios = <32>;
137 ralink,register-map = [ 00 04 08 0c
138 10 14 18 1c
139 20 24 ];
140
141 status = "disabled";
142 };
143
144 gpio3: gpio@688 {
145 compatible = "ralink,mt7620a-gpio", "ralink,rt2880-gpio";
146 reg = <0x688 0x24>;
147
148 interrupt-parent = <&intc>;
149 interrupts = <6>;
150
151 gpio-controller;
152 #gpio-cells = <2>;
153
154 ralink,gpio-base = <72>;
155 ralink,num-gpios = <1>;
156 ralink,register-map = [ 00 04 08 0c
157 10 14 18 1c
158 20 24 ];
159
160 status = "disabled";
161 };
162
163 i2c: i2c@900 {
164 compatible = "ralink,rt2880-i2c";
165 reg = <0x900 0x100>;
166
167 resets = <&rstctrl 16>;
168 reset-names = "i2c";
169
170 #address-cells = <1>;
171 #size-cells = <0>;
172
173 status = "disabled";
174
175 pinctrl-names = "default";
176 pinctrl-0 = <&i2c_pins>;
177 };
178
179 spi0: spi@b00 {
180 compatible = "ralink,mt7620a-spi", "ralink,rt2880-spi";
181 reg = <0xb00 0x40>;
182
183 resets = <&rstctrl 18>;
184 reset-names = "spi";
185
186 #address-cells = <1>;
187 #size-cells = <0>;
188
189 status = "disabled";
190
191 pinctrl-names = "default";
192 pinctrl-0 = <&spi_pins>;
193 };
194
195 spi1: spi@b40 {
196 compatible = "ralink,rt2880-spi";
197 reg = <0xb40 0x60>;
198
199 resets = <&rstctrl 18>;
200 reset-names = "spi";
201
202 #address-cells = <1>;
203 #size-cells = <0>;
204
205 status = "disabled";
206
207 pinctrl-names = "default";
208 pinctrl-0 = <&spi_cs1>;
209 };
210
211 uartlite: uartlite@c00 {
212 compatible = "ralink,mt7620a-uart", "ralink,rt2880-uart", "ns16550a";
213 reg = <0xc00 0x100>;
214
215 resets = <&rstctrl 19>;
216 reset-names = "uartl";
217
218 interrupt-parent = <&intc>;
219 interrupts = <12>;
220
221 reg-shift = <2>;
222
223 pinctrl-names = "default";
224 pinctrl-0 = <&uartlite_pins>;
225 };
226
227 systick: systick@d00 {
228 compatible = "ralink,mt7620a-systick", "ralink,cevt-systick";
229 reg = <0xd00 0x10>;
230
231 resets = <&rstctrl 28>;
232 reset-names = "intc";
233
234 interrupt-parent = <&cpuintc>;
235 interrupts = <7>;
236 };
237 };
238
239 pinctrl: pinctrl {
240 compatible = "ralink,rt2880-pinmux";
241 pinctrl-names = "default";
242 pinctrl-0 = <&state_default>;
243
244 state_default: pinctrl0 {
245 };
246
247 ephy_pins: ephy {
248 ephy {
249 ralink,group = "ephy";
250 ralink,function = "ephy";
251 };
252 };
253
254 spi_pins: spi {
255 spi {
256 ralink,group = "spi";
257 ralink,function = "spi";
258 };
259 };
260
261 spi_cs1: spi1 {
262 spi1 {
263 ralink,group = "spi_cs1";
264 ralink,function = "spi_cs1";
265 };
266 };
267
268 i2c_pins: i2c {
269 i2c {
270 ralink,group = "i2c";
271 ralink,function = "i2c";
272 };
273 };
274
275 uartlite_pins: uartlite {
276 uart {
277 ralink,group = "uartlite";
278 ralink,function = "uartlite";
279 };
280 };
281 };
282
283 rstctrl: rstctrl {
284 compatible = "ralink,mt7620a-reset", "ralink,rt2880-reset";
285 #reset-cells = <1>;
286 };
287
288 clkctrl: clkctrl {
289 compatible = "ralink,rt2880-clock";
290 #clock-cells = <1>;
291 };
292
293 usbphy: usbphy {
294 compatible = "mediatek,mt7620-usbphy";
295 #phy-cells = <0>;
296
297 ralink,sysctl = <&sysc>;
298 resets = <&rstctrl 22 &rstctrl 25>;
299 reset-names = "host", "device";
300
301 clocks = <&clkctrl 22 &clkctrl 25>;
302 clock-names = "host", "device";
303 };
304
305 ethernet: ethernet@10100000 {
306 compatible = "mediatek,mt7620-eth";
307 reg = <0x10100000 0x10000>;
308
309 #address-cells = <1>;
310 #size-cells = <0>;
311
312 interrupt-parent = <&cpuintc>;
313 interrupts = <5>;
314
315 resets = <&rstctrl 21 &rstctrl 23>;
316 reset-names = "fe", "esw";
317
318 mediatek,switch = <&gsw>;
319
320 mdio-bus {
321 #address-cells = <1>;
322 #size-cells = <0>;
323
324 status = "disabled";
325 };
326
327 port@4 {
328 compatible = "mediatek,mt7620a-gsw-port", "mediatek,eth-port";
329 reg = <4>;
330
331 status = "disabled";
332 };
333 };
334
335 gsw: gsw@10110000 {
336 compatible = "mediatek,mt7620-gsw";
337 reg = <0x10110000 0x8000>;
338
339 resets = <&rstctrl 23>;
340 reset-names = "esw";
341
342 interrupt-parent = <&intc>;
343 interrupts = <17>;
344 mediatek,port4 = "ephy";
345 };
346
347 ehci: ehci@101c0000 {
348 compatible = "generic-ehci";
349 reg = <0x101c0000 0x1000>;
350
351 interrupt-parent = <&intc>;
352 interrupts = <18>;
353
354 phys = <&usbphy>;
355 phy-names = "usb";
356
357 status = "disabled";
358 };
359
360 ohci: ohci@101c1000 {
361 compatible = "generic-ohci";
362 reg = <0x101c1000 0x1000>;
363
364 phys = <&usbphy>;
365 phy-names = "usb";
366
367 interrupt-parent = <&intc>;
368 interrupts = <18>;
369
370 status = "disabled";
371 };
372
373 wmac: wmac@10180000 {
374 compatible = "ralink,rt7620-wmac", "ralink,rt2880-wmac";
375 reg = <0x10180000 0x40000>;
376
377 interrupt-parent = <&cpuintc>;
378 interrupts = <6>;
379
380 ralink,eeprom = "soc_wmac.eeprom";
381 };
382 };