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