1 // SPDX-License-Identifier: GPL-2.0
5 compatible = "simple-bus";
8 ranges = <0 0x10000000 0 0x10000000 0 0x10000000 /* PIO & CONF & APB */
9 0 0x20000000 0 0x20000000 0 0x10000000
10 0 0x40000000 0 0x40000000 0 0x40000000 /* PCI MEM */
11 0xe00 0x00000000 0xe00 0x00000000 0x100 0x0000000>;
13 pic: interrupt-controller@10000000 {
14 compatible = "loongson,pch-pic-1.0";
15 reg = <0 0x10000000 0 0x400>;
17 interrupt-parent = <&htvec>;
18 loongson,pic-base-vec = <0>;
19 #interrupt-cells = <2>;
22 ls7a_uart0: serial@10080000 {
23 compatible = "ns16550a";
24 reg = <0 0x10080000 0 0x100>;
25 clock-frequency = <50000000>;
26 interrupt-parent = <&pic>;
27 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
31 ls7a_uart1: serial@10080100 {
33 compatible = "ns16550a";
34 reg = <0 0x10080100 0 0x100>;
35 clock-frequency = <50000000>;
36 interrupt-parent = <&pic>;
37 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
41 ls7a_uart2: serial@10080200 {
43 compatible = "ns16550a";
44 reg = <0 0x10080200 0 0x100>;
45 clock-frequency = <50000000>;
46 interrupt-parent = <&pic>;
47 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
51 ls7a_uart3: serial@10080300 {
53 compatible = "ns16550a";
54 reg = <0 0x10080300 0 0x100>;
55 clock-frequency = <50000000>;
56 interrupt-parent = <&pic>;
57 interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
62 compatible = "loongson,ls7a-pci";
66 #interrupt-cells = <2>;
69 reg = <0 0x1a000000 0 0x02000000>,
70 <0xefe 0x00000000 0 0x20000000>;
72 ranges = <0x01000000 0x0 0x00020000 0x0 0x18020000 0x0 0x00020000>,
73 <0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>;
76 compatible = "pci0014,7a24.0",
81 reg = <0x2000 0x0 0x0 0x0 0x0>;
82 interrupts = <49 IRQ_TYPE_LEVEL_HIGH>;
83 interrupt-parent = <&pic>;
87 compatible = "pci0014,7a14.0",
92 reg = <0x2100 0x0 0x0 0x0 0x0>;
93 interrupts = <48 IRQ_TYPE_LEVEL_HIGH>;
94 interrupt-parent = <&pic>;
98 compatible = "pci0014,7a24.0",
103 reg = <0x2800 0x0 0x0 0x0 0x0>;
104 interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
105 interrupt-parent = <&pic>;
109 compatible = "pci0014,7a14.0",
114 reg = <0x2900 0x0 0x0 0x0 0x0>;
115 interrupts = <50 IRQ_TYPE_LEVEL_HIGH>;
116 interrupt-parent = <&pic>;
120 compatible = "pci0014,7a08.0",
125 reg = <0x4000 0x0 0x0 0x0 0x0>;
126 interrupts = <16 IRQ_TYPE_LEVEL_HIGH>;
127 interrupt-parent = <&pic>;
131 compatible = "pci0014,7a08.0",
136 reg = <0x4100 0x0 0x0 0x0 0x0>;
137 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
138 interrupt-parent = <&pic>;
142 compatible = "pci0014,7a08.0",
147 reg = <0x4200 0x0 0x0 0x0 0x0>;
148 interrupts = <18 IRQ_TYPE_LEVEL_HIGH>;
149 interrupt-parent = <&pic>;
153 compatible = "pci0014,7a15.0",
158 reg = <0x3000 0x0 0x0 0x0 0x0>;
159 interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
160 interrupt-parent = <&pic>;
164 compatible = "pci0014,7a06.0",
169 reg = <0x3100 0x0 0x0 0x0 0x0>;
170 interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
171 interrupt-parent = <&pic>;
175 compatible = "pci0014,7a07.0",
180 reg = <0x3800 0x0 0x0 0x0 0x0>;
181 interrupts = <58 IRQ_TYPE_LEVEL_HIGH>;
182 interrupt-parent = <&pic>;
186 compatible = "pci0014,7a03.0",
191 reg = <0x1800 0x0 0x0 0x0 0x0>;
192 interrupts = <12 IRQ_TYPE_LEVEL_HIGH>,
193 <13 IRQ_TYPE_LEVEL_HIGH>;
194 interrupt-names = "macirq", "eth_lpi";
195 interrupt-parent = <&pic>;
198 #address-cells = <1>;
200 compatible = "snps,dwmac-mdio";
201 phy0: ethernet-phy@0 {
208 compatible = "pci0014,7a03.0",
213 reg = <0x1900 0x0 0x0 0x0 0x0>;
214 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>,
215 <15 IRQ_TYPE_LEVEL_HIGH>;
216 interrupt-names = "macirq", "eth_lpi";
217 interrupt-parent = <&pic>;
220 #address-cells = <1>;
222 compatible = "snps,dwmac-mdio";
223 phy1: ethernet-phy@1 {
230 compatible = "pci0014,7a19.1",
235 reg = <0x4800 0x0 0x0 0x0 0x0>;
236 interrupts = <32 IRQ_TYPE_LEVEL_HIGH>;
237 interrupt-parent = <&pic>;
239 #interrupt-cells = <1>;
240 interrupt-map-mask = <0 0 0 0>;
241 interrupt-map = <0 0 0 0 &pic 32 IRQ_TYPE_LEVEL_HIGH>;
245 compatible = "pci0014,7a09.1",
250 reg = <0x5000 0x0 0x0 0x0 0x0>;
251 interrupts = <33 IRQ_TYPE_LEVEL_HIGH>;
252 interrupt-parent = <&pic>;
254 #interrupt-cells = <1>;
255 interrupt-map-mask = <0 0 0 0>;
256 interrupt-map = <0 0 0 0 &pic 33 IRQ_TYPE_LEVEL_HIGH>;
260 compatible = "pci0014,7a09.1",
265 reg = <0x5800 0x0 0x0 0x0 0x0>;
266 interrupts = <34 IRQ_TYPE_LEVEL_HIGH>;
267 interrupt-parent = <&pic>;
269 #interrupt-cells = <1>;
270 interrupt-map-mask = <0 0 0 0>;
271 interrupt-map = <0 0 0 0 &pic 34 IRQ_TYPE_LEVEL_HIGH>;
275 compatible = "pci0014,7a09.1",
280 reg = <0x6000 0x0 0x0 0x0 0x0>;
281 interrupts = <35 IRQ_TYPE_LEVEL_HIGH>;
282 interrupt-parent = <&pic>;
284 #interrupt-cells = <1>;
285 interrupt-map-mask = <0 0 0 0>;
286 interrupt-map = <0 0 0 0 &pic 35 IRQ_TYPE_LEVEL_HIGH>;
290 compatible = "pci0014,7a19.1",
295 reg = <0x6800 0x0 0x0 0x0 0x0>;
296 interrupts = <36 IRQ_TYPE_LEVEL_HIGH>;
297 interrupt-parent = <&pic>;
299 #interrupt-cells = <1>;
300 interrupt-map-mask = <0 0 0 0>;
301 interrupt-map = <0 0 0 0 &pic 36 IRQ_TYPE_LEVEL_HIGH>;
305 compatible = "pci0014,7a09.1",
310 reg = <0x7000 0x0 0x0 0x0 0x0>;
311 interrupts = <37 IRQ_TYPE_LEVEL_HIGH>;
312 interrupt-parent = <&pic>;
314 #interrupt-cells = <1>;
315 interrupt-map-mask = <0 0 0 0>;
316 interrupt-map = <0 0 0 0 &pic 37 IRQ_TYPE_LEVEL_HIGH>;
320 compatible = "pci0014,7a29.1",
325 reg = <0x7800 0x0 0x0 0x0 0x0>;
326 interrupts = <40 IRQ_TYPE_LEVEL_HIGH>;
327 interrupt-parent = <&pic>;
329 #interrupt-cells = <1>;
330 interrupt-map-mask = <0 0 0 0>;
331 interrupt-map = <0 0 0 0 &pic 40 IRQ_TYPE_LEVEL_HIGH>;
335 compatible = "pci0014,7a19.1",
340 reg = <0x8000 0x0 0x0 0x0 0x0>;
341 interrupts = <41 IRQ_TYPE_LEVEL_HIGH>;
342 interrupt-parent = <&pic>;
344 #interrupt-cells = <1>;
345 interrupt-map-mask = <0 0 0 0>;
346 interrupt-map = <0 0 0 0 &pic 41 IRQ_TYPE_LEVEL_HIGH>;
350 compatible = "pci0014,7a29.1",
355 reg = <0x8800 0x0 0x0 0x0 0x0>;
356 interrupts = <42 IRQ_TYPE_LEVEL_HIGH>;
357 interrupt-parent = <&pic>;
359 #interrupt-cells = <1>;
360 interrupt-map-mask = <0 0 0 0>;
361 interrupt-map = <0 0 0 0 &pic 42 IRQ_TYPE_LEVEL_HIGH>;
365 compatible = "pci0014,7a19.1",
370 reg = <0x9000 0x0 0x0 0x0 0x0>;
371 interrupts = <43 IRQ_TYPE_LEVEL_HIGH>;
372 interrupt-parent = <&pic>;
374 #interrupt-cells = <1>;
375 interrupt-map-mask = <0 0 0 0>;
376 interrupt-map = <0 0 0 0 &pic 43 IRQ_TYPE_LEVEL_HIGH>;
380 compatible = "pci0014,7a29.1",
385 reg = <0x9800 0x0 0x0 0x0 0x0>;
386 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
387 interrupt-parent = <&pic>;
389 #interrupt-cells = <1>;
390 interrupt-map-mask = <0 0 0 0>;
391 interrupt-map = <0 0 0 0 &pic 38 IRQ_TYPE_LEVEL_HIGH>;
395 compatible = "pci0014,7a19.1",
400 reg = <0xa000 0x0 0x0 0x0 0x0>;
401 interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
402 interrupt-parent = <&pic>;
404 #interrupt-cells = <1>;
405 interrupt-map-mask = <0 0 0 0>;
406 interrupt-map = <0 0 0 0 &pic 39 IRQ_TYPE_LEVEL_HIGH>;
412 #address-cells = <2>;
414 ranges = <1 0 0 0x18000000 0x20000>;