lantiq: add Linux 5.4 support as testing kernel version
[openwrt/staging/wigyori.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / danube.dtsi
1 #include <dt-bindings/gpio/gpio.h>
2
3 / {
4 #address-cells = <1>;
5 #size-cells = <1>;
6 compatible = "lantiq,xway", "lantiq,danube";
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,mips24Kc";
22 reg = <0>;
23 };
24 };
25
26 reboot {
27 compatible = "syscon-reboot";
28
29 regmap = <&rcu0>;
30 offset = <0x10>;
31 mask = <0x40000000>;
32 };
33
34 biu@1f800000 {
35 #address-cells = <1>;
36 #size-cells = <1>;
37 compatible = "lantiq,biu", "simple-bus";
38 reg = <0x1f800000 0x800000>;
39 ranges = <0x0 0x1f800000 0x7fffff>;
40
41 icu0: icu@80200 {
42 #interrupt-cells = <1>;
43 interrupt-controller;
44 compatible = "lantiq,icu";
45 /*
46 * There is a second ICU, but the SoC is not SMP
47 * capable.
48 */
49 reg = <0x80200 0xc8>;
50 };
51
52 watchdog@803f0 {
53 compatible = "lantiq,wdt";
54 reg = <0x803f0 0x10>;
55 };
56 };
57
58 sram@1f000000 {
59 #address-cells = <1>;
60 #size-cells = <1>;
61 compatible = "lantiq,sram", "simple-bus";
62 reg = <0x1f000000 0x800000>;
63 ranges = <0x0 0x1f000000 0x7fffff>;
64
65 eiu0: eiu@101000 {
66 #interrupt-cells = <1>;
67 interrupt-controller;
68 compatible = "lantiq,eiu-xway";
69 reg = <0x101000 0x1000>;
70 interrupt-parent = <&icu0>;
71 lantiq,eiu-irqs = <166 135 66>;
72 };
73
74 pmu0: pmu@102000 {
75 compatible = "lantiq,pmu-xway";
76 reg = <0x102000 0x1000>;
77 };
78
79 cgu0: cgu@103000 {
80 compatible = "lantiq,cgu-xway";
81 reg = <0x103000 0x1000>;
82 #clock-cells = <1>;
83 };
84
85 vmmc: vmmc@107000 {
86 status = "disabled";
87 compatible = "lantiq,vmmc-xway";
88 reg = <0x107000 0x400>;
89 interrupt-parent = <&icu0>;
90 interrupts = <150 151 152 153 154 155>;
91 };
92
93 rcu0: rcu@203000 {
94 #address-cells = <1>;
95 #size-cells = <1>;
96 compatible = "lantiq,danube-rcu", "simple-mfd", "syscon";
97 reg = <0x203000 0x1000>;
98 ranges = <0x0 0x203000 0x100>;
99 big-endian;
100
101 reset: reset-controller@10 {
102 compatible = "lantiq,danube-reset";
103 reg = <0x10 4>, <0x14 4>;
104
105 #reset-cells = <2>;
106 };
107
108 usb_phy: usb2-phy@18 {
109 compatible = "lantiq,danube-usb2-phy";
110 reg = <0x18 4>;
111 status = "disabled";
112
113 resets = <&reset 4 4>;
114 reset-names = "ctrl";
115 #phy-cells = <0>;
116 };
117 };
118 };
119
120 fpi@10000000 {
121 #address-cells = <1>;
122 #size-cells = <1>;
123 compatible = "lantiq,fpi", "simple-bus";
124 ranges = <0x0 0x10000000 0xeefffff>;
125 reg = <0x10000000 0xef00000>;
126
127 localbus: localbus@0 {
128 #address-cells = <2>;
129 #size-cells = <1>;
130 ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
131 1 0 0x4000000 0x4000010>; /* addsel1 */
132 compatible = "lantiq,localbus", "simple-bus";
133 };
134
135 gptu@e100a00 {
136 compatible = "lantiq,gptu-xway";
137 reg = <0xe100a00 0x100>;
138 interrupt-parent = <&icu0>;
139 interrupts = <126 127 128 129 130 131>;
140 };
141
142 gpios: stp@e100bb0 {
143 #gpio-cells = <2>;
144 compatible = "lantiq,gpio-stp-xway";
145 gpio-controller;
146 reg = <0xe100bb0 0x40>;
147
148 pinctrl-0 = <&stp_pins>;
149 pinctrl-names = "default";
150
151 lantiq,shadow = <0xfff>;
152 lantiq,groups = <0x3>;
153 status = "disabled";
154 };
155
156 asc0: serial@e100400 {
157 compatible = "lantiq,asc";
158 reg = <0xe100400 0x400>;
159 interrupt-parent = <&icu0>;
160 interrupts = <104 105 106>;
161 status = "disabled";
162 };
163
164 gpio: pinmux@e100b10 {
165 compatible = "lantiq,danube-pinctrl";
166 #gpio-cells = <2>;
167 gpio-controller;
168 reg = <0xe100b10 0xa0>;
169
170 nand_pins: nand {
171 mux-0 {
172 lantiq,groups = "nand cle", "nand ale",
173 "nand rd";
174 lantiq,function = "ebu";
175 lantiq,output = <1>;
176 lantiq,open-drain = <0>;
177 lantiq,pull = <0>;
178 };
179 mux-1 {
180 lantiq,groups = "nand rdy";
181 lantiq,function = "ebu";
182 lantiq,output = <0>;
183 lantiq,pull = <2>;
184 };
185 };
186
187 nand_cs1_pins: nand-cs1 {
188 mux {
189 lantiq,groups = "nand cs1";
190 lantiq,function = "ebu";
191 lantiq,open-drain = <0>;
192 lantiq,pull = <0>;
193 };
194 };
195
196 pci_gnt1_pins: pci-gnt1 {
197 mux {
198 lantiq,groups = "gnt1";
199 lantiq,function = "pci";
200 lantiq,output = <1>;
201 lantiq,open-drain = <0>;
202 lantiq,pull = <0>;
203 };
204 };
205
206 pci_gnt2_pins: pci-gnt2 {
207 mux {
208 lantiq,groups = "gnt2";
209 lantiq,function = "pci";
210 lantiq,output = <1>;
211 lantiq,open-drain = <0>;
212 lantiq,pull = <0>;
213 };
214 };
215
216 pci_req1_pins: pci-req1 {
217 mux {
218 lantiq,groups = "req1";
219 lantiq,function = "pci";
220 lantiq,output = <0>;
221 lantiq,open-drain = <1>;
222 lantiq,pull = <2>;
223 };
224 };
225
226 pci_req2_pins: pci-req2 {
227 mux {
228 lantiq,groups = "req2";
229 lantiq,function = "pci";
230 lantiq,output = <0>;
231 lantiq,open-drain = <1>;
232 lantiq,pull = <2>;
233 };
234 };
235
236 stp_pins: stp {
237 mux {
238 lantiq,groups = "stp";
239 lantiq,function = "stp";
240 lantiq,pull = <0>;
241 lantiq,open-drain = <0>;
242 lantiq,output = <1>;
243 };
244 };
245 };
246
247 asc1: serial@e100c00 {
248 compatible = "lantiq,asc";
249 reg = <0xe100c00 0x400>;
250 interrupt-parent = <&icu0>;
251 interrupts = <112 113 114>;
252 };
253
254 usb: usb@e101000 {
255 compatible = "lantiq,danube-usb";
256 reg = <0xe101000 0x1000
257 0xe120000 0x3f000>;
258 interrupt-parent = <&icu0>;
259 interrupts = <62>;
260 dr_mode = "host";
261 phys = <&usb_phy>;
262 phy-names = "usb2-phy";
263 status = "disabled";
264 };
265
266 deu@e103100 {
267 compatible = "lantiq,deu-danube";
268 reg = <0xe103100 0xf00>;
269 };
270
271 dma0: dma@e104100 {
272 compatible = "lantiq,dma-xway";
273 reg = <0xe104100 0x800>;
274 };
275
276 ebu0: ebu@e105300 {
277 compatible = "lantiq,ebu-xway";
278 reg = <0xe105300 0x100>;
279 };
280
281 mei@e116000 {
282 compatible = "lantiq,mei-xway";
283 reg = <0xe116000 0x400>;
284 interrupt-parent = <&icu0>;
285 interrupts = <63>;
286 };
287
288 gsw: etop@e180000 {
289 compatible = "lantiq,etop-xway";
290 reg = <0xe180000 0x40000>;
291 interrupt-parent = <&icu0>;
292 interrupts = <73 78>;
293 mac-address = [ 00 11 22 33 44 55 ];
294 };
295
296 ppe@e234000 {
297 compatible = "lantiq,ppe-danube";
298 reg = <0xe234000 0x40000>;
299 interrupt-parent = <&icu0>;
300 interrupts = <96>;
301 };
302
303 pci0: pci@e105400 {
304 status = "disabled";
305
306 #address-cells = <3>;
307 #size-cells = <2>;
308 #interrupt-cells = <1>;
309 compatible = "lantiq,pci-xway";
310 bus-range = <0x0 0x0>;
311 ranges = <0x2000000 0 0x8000000 0x8000000 0 0x2000000 /* pci memory */
312 0x1000000 0 0x00000000 0xae00000 0 0x200000>; /* io space */
313 reg = <0x7000000 0x8000 /* config space */
314 0xe105400 0x400>; /* pci bridge */
315 lantiq,bus-clock = <33333333>;
316 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
317 interrupt-map = <0x7000 0 0 1 &icu0 30 1>; /* slot 14, irq 30 */
318 req-mask = <0x1>; /* GNT1 */
319 };
320 };
321
322 adsl {
323 compatible = "lantiq,adsl-danube";
324 };
325 };