7fd4643171d7eb4a0b8ecd244a5675865c2a72e0
[openwrt/staging/dedeckeh.git] / target / linux / lantiq / files / arch / mips / boot / dts / 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 cpu@0 {
18 compatible = "mips,mips34Kc";
19 };
20 };
21
22 cputemp@0 {
23 compatible = "lantiq,cputemp";
24 };
25
26 biu@1f800000 {
27 #address-cells = <1>;
28 #size-cells = <1>;
29 compatible = "lantiq,biu", "simple-bus";
30 reg = <0x1f800000 0x800000>;
31 ranges = <0x0 0x1f800000 0x7fffff>;
32
33 icu0: icu@80200 {
34 #interrupt-cells = <1>;
35 interrupt-controller;
36 compatible = "lantiq,icu";
37 reg = <0x80200 0x28
38 0x80228 0x28
39 0x80250 0x28
40 0x80278 0x28
41 0x802a0 0x28>;
42 };
43
44 watchdog@803f0 {
45 compatible = "lantiq,xrx100-wdt", "lantiq,xrx100-wdt";
46 reg = <0x803f0 0x10>;
47
48 regmap = <&rcu0>;
49 };
50 };
51
52 sram@1f000000 {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 compatible = "lantiq,sram", "simple-bus";
56 reg = <0x1f000000 0x800000>;
57 ranges = <0x0 0x1f000000 0x7fffff>;
58
59 eiu0: eiu@101000 {
60 #interrupt-cells = <1>;
61 interrupt-controller;
62 compatible = "lantiq,eiu-xway";
63 reg = <0x101000 0x1000>;
64 interrupt-parent = <&icu0>;
65 lantiq,eiu-irqs = <166 135 66 40 41 42>;
66 };
67
68 pmu0: pmu@102000 {
69 compatible = "lantiq,pmu-xway";
70 reg = <0x102000 0x1000>;
71 };
72
73 cgu0: cgu@103000 {
74 compatible = "lantiq,cgu-xway";
75 reg = <0x103000 0x1000>;
76 };
77
78 dcdc@106a00 {
79 compatible = "lantiq,dcdc-xrx200";
80 reg = <0x106a00 0x200>;
81 };
82
83 vmmc: vmmc@103000 {
84 status = "disabled";
85 compatible = "lantiq,vmmc-xway";
86 reg = <0x103000 0x400>;
87 interrupt-parent = <&icu0>;
88 interrupts = <150 151 152 153 154 155>;
89 };
90
91 rcu0: rcu@203000 {
92 compatible = "lantiq,xrx200-rcu", "simple-mfd", "syscon";
93 reg = <0x203000 0x100>;
94 ranges = <0x0 0x203000 0x100>;
95 big-endian;
96
97 gphy0: gphy@20 {
98 compatible = "lantiq,xrx200-gphy";
99 reg = <0x20 0x4>;
100
101 resets = <&reset0 31 30>, <&reset1 7 7>;
102 reset-names = "gphy", "gphy2";
103 };
104
105 gphy1: gphy@68 {
106 compatible = "lantiq,xrx200-gphy";
107 reg = <0x68 0x4>;
108
109 resets = <&reset0 29 28>, <&reset1 6 6>;
110 reset-names = "gphy", "gphy2";
111 };
112
113 reset0: reset-controller@10 {
114 compatible = "lantiq,xrx200-reset";
115 reg = <0x10 4>, <0x14 4>;
116
117 #reset-cells = <2>;
118 };
119
120 reset1: reset-controller@48 {
121 compatible = "lantiq,xrx200-reset";
122 reg = <0x48 4>, <0x24 4>;
123
124 #reset-cells = <2>;
125 };
126
127 usb_phy0: usb2-phy@18 {
128 compatible = "lantiq,xrx200-usb2-phy";
129 reg = <0x18 4>, <0x38 4>;
130 status = "disabled";
131
132 resets = <&reset1 4 4>, <&reset0 4 4>;
133 reset-names = "phy", "ctrl";
134 #phy-cells = <0>;
135 };
136
137 usb_phy1: usb2-phy@34 {
138 compatible = "lantiq,xrx200-usb2-phy";
139 reg = <0x34 4>, <0x3c 4>;
140 status = "disabled";
141
142 resets = <&reset1 5 5>, <&reset0 4 4>;
143 reset-names = "phy", "ctrl";
144 #phy-cells = <0>;
145 };
146
147 reboot@10 {
148 compatible = "syscon-reboot";
149 reg = <0x10 4>;
150
151 regmap = <&rcu0>;
152 offset = <0x10>;
153 mask = <0xe0000000>;
154 };
155 };
156 };
157
158 fpi@10000000 {
159 compatible = "lantiq,xrx200-fpi", "simple-bus";
160 ranges = <0x0 0x10000000 0xf000000>;
161 reg = <0x1f400000 0x1000>,
162 <0x10000000 0xf000000>;
163 regmap = <&rcu0>;
164 offset-endianness = <0x4c>;
165 #address-cells = <1>;
166 #size-cells = <1>;
167
168 localbus: localbus@0 {
169 #address-cells = <2>;
170 #size-cells = <1>;
171 ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
172 1 0 0x4000000 0x4000010>; /* addsel1 */
173 compatible = "lantiq,localbus", "simple-bus";
174 };
175
176 gptu@e100a00 {
177 compatible = "lantiq,gptu-xway";
178 reg = <0xe100a00 0x100>;
179 interrupt-parent = <&icu0>;
180 interrupts = <126 127 128 129 130 131>;
181 };
182
183 usif: usif@da00000 {
184 compatible = "lantiq,usif";
185 reg = <0xda00000 0x1000000>;
186 interrupt-parent = <&icu0>;
187 interrupts = <29 125 107 108 109 110>;
188 status = "disabled";
189 };
190
191 spi: spi@e100800 {
192 compatible = "lantiq,xrx200-spi", "lantiq,xrx100-spi";
193 reg = <0xe100800 0x100>;
194 interrupt-parent = <&icu0>;
195 interrupts = <22 23 24>;
196 interrupt-names = "spi_rx", "spi_tx", "spi_err",
197 "spi_frm";
198 #address-cells = <1>;
199 #size-cells = <1>;
200 status = "disabled";
201 };
202
203 gpio: pinmux@e100b10 {
204 compatible = "lantiq,xrx200-pinctrl";
205 #gpio-cells = <2>;
206 gpio-controller;
207 reg = <0xe100b10 0xa0>;
208 };
209
210 stp: stp@e100bb0 {
211 status = "disabled";
212 compatible = "lantiq,gpio-stp-xway";
213 reg = <0xe100bb0 0x40>;
214 #gpio-cells = <2>;
215 gpio-controller;
216
217 lantiq,shadow = <0xffffff>;
218 lantiq,groups = <0x7>;
219 lantiq,dsl = <0x0>;
220 lantiq,phy1 = <0x0>;
221 lantiq,phy2 = <0x0>;
222 };
223
224 asc1: serial@e100c00 {
225 compatible = "lantiq,asc";
226 reg = <0xe100c00 0x400>;
227 interrupt-parent = <&icu0>;
228 interrupts = <112 113 114>;
229 };
230
231 deu@e103100 {
232 compatible = "lantiq,deu-xrx200";
233 reg = <0xe103100 0xf00>;
234 };
235
236 dma0: dma@e104100 {
237 compatible = "lantiq,dma-xway";
238 reg = <0xe104100 0x800>;
239 };
240
241 ebu0: ebu@e105300 {
242 compatible = "lantiq,ebu-xway";
243 reg = <0xe105300 0x100>;
244 };
245
246 usb0: usb@e101000 {
247 status = "disabled";
248 compatible = "lantiq,xrx200-usb";
249 reg = <0xe101000 0x1000
250 0xe120000 0x3f000>;
251 interrupt-parent = <&icu0>;
252 interrupts = <62 91>;
253 dr_mode = "host";
254 phys = <&usb_phy0>;
255 phy-names = "usb2-phy";
256 };
257
258 usb1: usb@e106000 {
259 status = "disabled";
260 compatible = "lantiq,xrx200-usb";
261 reg = <0xe106000 0x1000>;
262 interrupt-parent = <&icu0>;
263 interrupts = <91>;
264 dr_mode = "host";
265 phys = <&usb_phy1>;
266 phy-names = "usb2-phy";
267 };
268
269 eth0: eth@e108000 {
270 #address-cells = <1>;
271 #size-cells = <0>;
272 compatible = "lantiq,xrx200-net";
273 reg = < 0xe108000 0x3000 /* switch */
274 0xe10b100 0x70 /* mdio */
275 0xe10b1d8 0x30 /* mii */
276 0xe10b308 0x30 /* pmac */
277 >;
278 interrupt-parent = <&icu0>;
279 interrupts = <75 73 72>;
280 resets = <&reset0 21 16>, <&reset0 8 8>;
281 reset-names = "switch", "ppe";
282 lantiq,phys = <&gphy0>, <&gphy1>;
283 };
284
285 mei@e116000 {
286 compatible = "lantiq,mei-xrx200";
287 reg = <0xe116000 0x9c>;
288 interrupt-parent = <&icu0>;
289 interrupts = <63>;
290 };
291
292 ppe@e234000 {
293 compatible = "lantiq,ppe-xrx200";
294 interrupt-parent = <&icu0>;
295 interrupts = <96>;
296 resets = <&reset0 3 3>, <&reset0 11 11>, <&reset0 23 23>;
297 reset-names = "dsp", "dfe", "tc";
298 };
299
300 pcie0: pcie@d900000 {
301 compatible = "lantiq,pcie-xrx200";
302
303 #interrupt-cells = <1>;
304 #size-cells = <2>;
305 #address-cells = <3>;
306
307 interrupt-parent = <&icu0>;
308 interrupts = <161 144>;
309
310 device_type = "pci";
311
312 gpio-reset = <&gpio 38 GPIO_ACTIVE_HIGH>;
313 };
314
315 pci0: pci@e105400 {
316 status = "disabled";
317
318 #address-cells = <3>;
319 #size-cells = <2>;
320 #interrupt-cells = <1>;
321 compatible = "lantiq,pci-xway";
322 bus-range = <0x0 0x0>;
323 ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000 /* pci memory */
324 0x1000000 0 0x00000000 0xae00000 0 0x200000>; /* io space */
325 reg = <0x7000000 0x8000 /* config space */
326 0xe105400 0x400>; /* pci bridge */
327 lantiq,bus-clock = <33333333>;
328 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
329 interrupt-map = <0x7000 0 0 1 &icu0 30 1>; /* slot 14, irq 30 */
330 req-mask = <0x1>; /* GNT1 */
331 };
332 };
333
334 vdsl {
335 compatible = "lantiq,vdsl-vrx200";
336 };
337 };