35b1f180a5e59a11dc3668801a2a2a3af1c96295
[openwrt/staging/wigyori.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / vr9.dtsi
1 #include <dt-bindings/gpio/gpio.h>
2
3 / {
4 #address-cells = <1>;
5 #size-cells = <1>;
6 compatible = "lantiq,xway", "lantiq,vr9";
7
8 aliases {
9 serial0 = &asc1;
10 };
11
12 chosen {
13 stdout-path = "serial0:115200n8";
14 };
15
16 cpus {
17 #address-cells = <1>;
18 #size-cells = <0>;
19
20 cpu@0 {
21 compatible = "mips,mips34Kc";
22 reg = <0>;
23 };
24 };
25
26 cputemp {
27 compatible = "lantiq,cputemp";
28 };
29
30 reboot {
31 compatible = "syscon-reboot";
32
33 regmap = <&rcu0>;
34 offset = <0x10>;
35 mask = <0xe0000000>;
36 };
37
38 biu@1f800000 {
39 #address-cells = <1>;
40 #size-cells = <1>;
41 compatible = "lantiq,biu", "simple-bus";
42 reg = <0x1f800000 0x800000>;
43 ranges = <0x0 0x1f800000 0x7fffff>;
44
45 icu0: icu@80200 {
46 #interrupt-cells = <1>;
47 interrupt-controller;
48 compatible = "lantiq,icu";
49 reg = <0x80200 0x28
50 0x80228 0x28
51 0x80250 0x28
52 0x80278 0x28
53 0x802a0 0x28>;
54 };
55
56 watchdog@803f0 {
57 compatible = "lantiq,xrx100-wdt", "lantiq,xrx100-wdt";
58 reg = <0x803f0 0x10>;
59
60 regmap = <&rcu0>;
61 };
62 };
63
64 sram@1f000000 {
65 #address-cells = <1>;
66 #size-cells = <1>;
67 compatible = "lantiq,sram", "simple-bus";
68 reg = <0x1f000000 0x800000>;
69 ranges = <0x0 0x1f000000 0x7fffff>;
70
71 eiu0: eiu@101000 {
72 #interrupt-cells = <1>;
73 interrupt-controller;
74 compatible = "lantiq,eiu-xway";
75 reg = <0x101000 0x1000>;
76 interrupt-parent = <&icu0>;
77 lantiq,eiu-irqs = <166 135 66 40 41 42>;
78 };
79
80 pmu0: pmu@102000 {
81 compatible = "lantiq,pmu-xway";
82 reg = <0x102000 0x1000>;
83 };
84
85 cgu0: cgu@103000 {
86 compatible = "lantiq,cgu-xway";
87 reg = <0x103000 0x1000>;
88 };
89
90 dcdc@106a00 {
91 compatible = "lantiq,dcdc-xrx200";
92 reg = <0x106a00 0x200>;
93 };
94
95 vmmc: vmmc@107000 {
96 status = "disabled";
97 compatible = "lantiq,vmmc-xway";
98 reg = <0x107000 0x300>;
99 interrupt-parent = <&icu0>;
100 interrupts = <150 151 152 153 154 155>;
101 };
102
103 rcu0: rcu@203000 {
104 #address-cells = <1>;
105 #size-cells = <1>;
106 compatible = "lantiq,xrx200-rcu", "simple-mfd", "syscon";
107 reg = <0x203000 0x100>;
108 ranges = <0x0 0x203000 0x100>;
109 big-endian;
110
111 gphy0: gphy@20 {
112 compatible = "lantiq,xrx200-gphy";
113 reg = <0x20 0x4>;
114
115 resets = <&reset0 31 30>, <&reset1 7 7>;
116 reset-names = "gphy", "gphy2";
117 };
118
119 gphy1: gphy@68 {
120 compatible = "lantiq,xrx200-gphy";
121 reg = <0x68 0x4>;
122
123 resets = <&reset0 29 28>, <&reset1 6 6>;
124 reset-names = "gphy", "gphy2";
125 };
126
127 reset0: reset-controller@10 {
128 compatible = "lantiq,xrx200-reset";
129 reg = <0x10 4>, <0x14 4>;
130
131 #reset-cells = <2>;
132 };
133
134 reset1: reset-controller@48 {
135 compatible = "lantiq,xrx200-reset";
136 reg = <0x48 4>, <0x24 4>;
137
138 #reset-cells = <2>;
139 };
140
141 usb_phy0: usb2-phy@18 {
142 compatible = "lantiq,xrx200-usb2-phy";
143 reg = <0x18 4>, <0x38 4>;
144 status = "disabled";
145
146 resets = <&reset1 4 4>, <&reset0 4 4>;
147 reset-names = "phy", "ctrl";
148 #phy-cells = <0>;
149 };
150
151 usb_phy1: usb2-phy@34 {
152 compatible = "lantiq,xrx200-usb2-phy";
153 reg = <0x34 4>, <0x3c 4>;
154 status = "disabled";
155
156 resets = <&reset1 5 5>, <&reset0 4 4>;
157 reset-names = "phy", "ctrl";
158 #phy-cells = <0>;
159 };
160 };
161 };
162
163 fpi@10000000 {
164 compatible = "lantiq,xrx200-fpi", "simple-bus";
165 ranges = <0x0 0x10000000 0xf000000>;
166 reg = <0x1f400000 0x1000>,
167 <0x10000000 0xf000000>;
168 regmap = <&rcu0>;
169 offset-endianness = <0x4c>;
170 #address-cells = <1>;
171 #size-cells = <1>;
172
173 localbus: localbus@0 {
174 #address-cells = <2>;
175 #size-cells = <1>;
176 ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
177 1 0 0x4000000 0x4000010>; /* addsel1 */
178 compatible = "lantiq,localbus", "simple-bus";
179 };
180
181 gptu@e100a00 {
182 compatible = "lantiq,gptu-xway";
183 reg = <0xe100a00 0x100>;
184 interrupt-parent = <&icu0>;
185 interrupts = <126 127 128 129 130 131>;
186 };
187
188 usif: usif@da00000 {
189 compatible = "lantiq,usif";
190 reg = <0xda00000 0x1000000>;
191 interrupt-parent = <&icu0>;
192 interrupts = <29 125 107 108 109 110>;
193 status = "disabled";
194 };
195
196 spi: spi@e100800 {
197 compatible = "lantiq,xrx200-spi", "lantiq,xrx100-spi";
198 reg = <0xe100800 0x100>;
199 interrupt-parent = <&icu0>;
200 interrupts = <22 23 24>;
201 interrupt-names = "spi_rx", "spi_tx", "spi_err",
202 "spi_frm";
203 #address-cells = <1>;
204 #size-cells = <0>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&spi_pins>, <&spi_cs4_pins>;
207 status = "disabled";
208 };
209
210 gpio: pinmux@e100b10 {
211 compatible = "lantiq,xrx200-pinctrl";
212 #gpio-cells = <2>;
213 gpio-controller;
214 reg = <0xe100b10 0xa0>;
215
216 gphy0_led0_pins: gphy0-led0 {
217 mux {
218 lantiq,groups = "gphy0 led0";
219 lantiq,function = "gphy";
220 lantiq,open-drain = <0>;
221 lantiq,pull = <2>;
222 lantiq,output = <1>;
223 };
224 };
225
226 gphy0_led1_pins: gphy0-led1 {
227 mux {
228 lantiq,groups = "gphy0 led1";
229 lantiq,function = "gphy";
230 lantiq,open-drain = <0>;
231 lantiq,pull = <2>;
232 lantiq,output = <1>;
233 };
234 };
235
236 gphy0_led2_pins: gphy0-led2 {
237 mux {
238 lantiq,groups = "gphy0 led2";
239 lantiq,function = "gphy";
240 lantiq,open-drain = <0>;
241 lantiq,pull = <2>;
242 lantiq,output = <1>;
243 };
244 };
245
246 gphy1_led0_pins: gphy1-led0 {
247 mux {
248 lantiq,groups = "gphy1 led0";
249 lantiq,function = "gphy";
250 lantiq,open-drain = <0>;
251 lantiq,pull = <2>;
252 lantiq,output = <1>;
253 };
254 };
255
256 gphy1_led1_pins: gphy1-led1 {
257 mux {
258 lantiq,groups = "gphy1 led1";
259 lantiq,function = "gphy";
260 lantiq,open-drain = <0>;
261 lantiq,pull = <2>;
262 lantiq,output = <1>;
263 };
264 };
265
266 gphy1_led2_pins: gphy1-led2 {
267 mux {
268 lantiq,groups = "gphy1 led2";
269 lantiq,function = "gphy";
270 lantiq,open-drain = <0>;
271 lantiq,pull = <2>;
272 lantiq,output = <1>;
273 };
274 };
275
276 mdio_pins: mdio {
277 mux {
278 lantiq,groups = "mdio";
279 lantiq,function = "mdio";
280 };
281 };
282
283 nand_pins: nand {
284 mux-0 {
285 lantiq,groups = "nand cle", "nand ale",
286 "nand rd";
287 lantiq,function = "ebu";
288 lantiq,output = <1>;
289 lantiq,open-drain = <0>;
290 lantiq,pull = <0>;
291 };
292 mux-1 {
293 lantiq,groups = "nand rdy";
294 lantiq,function = "ebu";
295 lantiq,output = <0>;
296 lantiq,pull = <2>;
297 };
298 };
299
300 nand_cs1_pins: nand-cs1 {
301 mux {
302 lantiq,groups = "nand cs1";
303 lantiq,function = "ebu";
304 lantiq,open-drain = <0>;
305 lantiq,pull = <0>;
306 };
307 };
308
309 pci_gnt1_pins: pci-gnt1 {
310 mux {
311 lantiq,groups = "gnt1";
312 lantiq,function = "pci";
313 lantiq,output = <1>;
314 lantiq,open-drain = <0>;
315 lantiq,pull = <0>;
316 };
317 };
318
319 pci_req1_pins: pci-req1 {
320 mux {
321 lantiq,groups = "req1";
322 lantiq,function = "pci";
323 lantiq,output = <0>;
324 lantiq,open-drain = <1>;
325 lantiq,pull = <2>;
326 };
327 };
328
329 spi_pins: spi {
330 mux-0 {
331 lantiq,groups = "spi_di";
332 lantiq,function = "spi";
333 };
334 mux-1 {
335 lantiq,groups = "spi_do", "spi_clk";
336 lantiq,function = "spi";
337 lantiq,output = <1>;
338 };
339 };
340
341 spi_cs4_pins: spi-cs4 {
342 mux {
343 lantiq,groups = "spi_cs4";
344 lantiq,function = "spi";
345 lantiq,output = <1>;
346 };
347 };
348
349 stp_pins: stp {
350 mux {
351 lantiq,groups = "stp";
352 lantiq,function = "stp";
353 lantiq,pull = <0>;
354 lantiq,open-drain = <0>;
355 lantiq,output = <1>;
356 };
357 };
358 };
359
360 stp: stp@e100bb0 {
361 status = "disabled";
362 compatible = "lantiq,gpio-stp-xway";
363 reg = <0xe100bb0 0x40>;
364 #gpio-cells = <2>;
365 gpio-controller;
366
367 pinctrl-0 = <&stp_pins>;
368 pinctrl-names = "default";
369
370 lantiq,shadow = <0xffffff>;
371 lantiq,groups = <0x7>;
372 lantiq,dsl = <0x0>;
373 lantiq,phy1 = <0x0>;
374 lantiq,phy2 = <0x0>;
375 };
376
377 asc1: serial@e100c00 {
378 compatible = "lantiq,asc";
379 reg = <0xe100c00 0x400>;
380 interrupt-parent = <&icu0>;
381 interrupts = <112 113 114>;
382 };
383
384 deu@e103100 {
385 compatible = "lantiq,deu-xrx200";
386 reg = <0xe103100 0xf00>;
387 };
388
389 dma0: dma@e104100 {
390 compatible = "lantiq,dma-xway";
391 reg = <0xe104100 0x800>;
392 };
393
394 ebu0: ebu@e105300 {
395 compatible = "lantiq,ebu-xway";
396 reg = <0xe105300 0x100>;
397 };
398
399 usb0: usb@e101000 {
400 status = "disabled";
401 compatible = "lantiq,xrx200-usb";
402 reg = <0xe101000 0x1000
403 0xe120000 0x3f000>;
404 interrupt-parent = <&icu0>;
405 interrupts = <62 91>;
406 dr_mode = "host";
407 phys = <&usb_phy0>;
408 phy-names = "usb2-phy";
409 };
410
411 usb1: usb@e106000 {
412 status = "disabled";
413 compatible = "lantiq,xrx200-usb";
414 reg = <0xe106000 0x1000>;
415 interrupt-parent = <&icu0>;
416 interrupts = <91>;
417 dr_mode = "host";
418 phys = <&usb_phy1>;
419 phy-names = "usb2-phy";
420 };
421
422 eth0: eth@e108000 {
423 #address-cells = <1>;
424 #size-cells = <0>;
425 compatible = "lantiq,xrx200-net";
426 reg = < 0xe108000 0x3000 /* switch */
427 0xe10b100 0x70 /* mdio */
428 0xe10b1d8 0x30 /* mii */
429 0xe10b308 0x30 /* pmac */
430 >;
431 interrupt-parent = <&icu0>;
432 interrupts = <75 73 72>;
433 resets = <&reset0 21 16>, <&reset0 8 8>;
434 reset-names = "switch", "ppe";
435 lantiq,phys = <&gphy0>, <&gphy1>;
436 pinctrl-0 = <&mdio_pins>;
437 pinctrl-names = "default";
438 };
439
440 mei@e116000 {
441 compatible = "lantiq,mei-xrx200";
442 reg = <0xe116000 0x9c>;
443 interrupt-parent = <&icu0>;
444 interrupts = <63>;
445 };
446
447 ppe@e234000 {
448 compatible = "lantiq,ppe-xrx200";
449 reg = <0xe234000 0x3ffd>;
450 interrupt-parent = <&icu0>;
451 interrupts = <96>;
452 resets = <&reset0 3 3>, <&reset0 11 11>, <&reset0 23 23>;
453 reset-names = "dsp", "dfe", "tc";
454 };
455
456 pcie0: pcie@d900000 {
457 compatible = "lantiq,pcie-xrx200";
458
459 #interrupt-cells = <1>;
460 #size-cells = <2>;
461 #address-cells = <3>;
462
463 reg = <0xd900000 0x1000>;
464
465 interrupt-parent = <&icu0>;
466 interrupts = <161 144>;
467
468 device_type = "pci";
469
470 gpio-reset = <&gpio 38 GPIO_ACTIVE_HIGH>;
471 };
472
473 pci0: pci@e105400 {
474 status = "disabled";
475
476 #address-cells = <3>;
477 #size-cells = <2>;
478 #interrupt-cells = <1>;
479 compatible = "lantiq,pci-xway";
480 bus-range = <0x0 0x0>;
481 ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000 /* pci memory */
482 0x1000000 0 0x00000000 0xae00000 0 0x200000>; /* io space */
483 reg = <0x7000000 0x8000 /* config space */
484 0xe105400 0x400>; /* pci bridge */
485 lantiq,bus-clock = <33333333>;
486 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
487 interrupt-map = <0x7000 0 0 1 &icu0 30 1>; /* slot 14, irq 30 */
488 req-mask = <0x1>; /* GNT1 */
489 };
490 };
491
492 vdsl {
493 compatible = "lantiq,vdsl-vrx200";
494 };
495 };