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",
212 "loongson, pci-gmac";
214 reg = <0x1900 0x0 0x0 0x0 0x0>;
215 interrupts = <14 IRQ_TYPE_LEVEL_HIGH>,
216 <15 IRQ_TYPE_LEVEL_HIGH>;
217 interrupt-names = "macirq", "eth_lpi";
218 interrupt-parent = <&pic>;
221 #address-cells = <1>;
223 compatible = "snps,dwmac-mdio";
224 phy1: ethernet-phy@1 {
231 compatible = "pci0014,7a19.1",
236 reg = <0x4800 0x0 0x0 0x0 0x0>;
237 interrupts = <32 IRQ_TYPE_LEVEL_HIGH>;
238 interrupt-parent = <&pic>;
240 #interrupt-cells = <1>;
241 interrupt-map-mask = <0 0 0 0>;
242 interrupt-map = <0 0 0 0 &pic 32 IRQ_TYPE_LEVEL_HIGH>;
246 compatible = "pci0014,7a09.1",
251 reg = <0x5000 0x0 0x0 0x0 0x0>;
252 interrupts = <33 IRQ_TYPE_LEVEL_HIGH>;
253 interrupt-parent = <&pic>;
255 #interrupt-cells = <1>;
256 interrupt-map-mask = <0 0 0 0>;
257 interrupt-map = <0 0 0 0 &pic 33 IRQ_TYPE_LEVEL_HIGH>;
261 compatible = "pci0014,7a09.1",
266 reg = <0x5800 0x0 0x0 0x0 0x0>;
267 interrupts = <34 IRQ_TYPE_LEVEL_HIGH>;
268 interrupt-parent = <&pic>;
270 #interrupt-cells = <1>;
271 interrupt-map-mask = <0 0 0 0>;
272 interrupt-map = <0 0 0 0 &pic 34 IRQ_TYPE_LEVEL_HIGH>;
276 compatible = "pci0014,7a09.1",
281 reg = <0x6000 0x0 0x0 0x0 0x0>;
282 interrupts = <35 IRQ_TYPE_LEVEL_HIGH>;
283 interrupt-parent = <&pic>;
285 #interrupt-cells = <1>;
286 interrupt-map-mask = <0 0 0 0>;
287 interrupt-map = <0 0 0 0 &pic 35 IRQ_TYPE_LEVEL_HIGH>;
291 compatible = "pci0014,7a19.1",
296 reg = <0x6800 0x0 0x0 0x0 0x0>;
297 interrupts = <36 IRQ_TYPE_LEVEL_HIGH>;
298 interrupt-parent = <&pic>;
300 #interrupt-cells = <1>;
301 interrupt-map-mask = <0 0 0 0>;
302 interrupt-map = <0 0 0 0 &pic 36 IRQ_TYPE_LEVEL_HIGH>;
306 compatible = "pci0014,7a09.1",
311 reg = <0x7000 0x0 0x0 0x0 0x0>;
312 interrupts = <37 IRQ_TYPE_LEVEL_HIGH>;
313 interrupt-parent = <&pic>;
315 #interrupt-cells = <1>;
316 interrupt-map-mask = <0 0 0 0>;
317 interrupt-map = <0 0 0 0 &pic 37 IRQ_TYPE_LEVEL_HIGH>;
321 compatible = "pci0014,7a29.1",
326 reg = <0x7800 0x0 0x0 0x0 0x0>;
327 interrupts = <40 IRQ_TYPE_LEVEL_HIGH>;
328 interrupt-parent = <&pic>;
330 #interrupt-cells = <1>;
331 interrupt-map-mask = <0 0 0 0>;
332 interrupt-map = <0 0 0 0 &pic 40 IRQ_TYPE_LEVEL_HIGH>;
336 compatible = "pci0014,7a19.1",
341 reg = <0x8000 0x0 0x0 0x0 0x0>;
342 interrupts = <41 IRQ_TYPE_LEVEL_HIGH>;
343 interrupt-parent = <&pic>;
345 #interrupt-cells = <1>;
346 interrupt-map-mask = <0 0 0 0>;
347 interrupt-map = <0 0 0 0 &pic 41 IRQ_TYPE_LEVEL_HIGH>;
351 compatible = "pci0014,7a29.1",
356 reg = <0x8800 0x0 0x0 0x0 0x0>;
357 interrupts = <42 IRQ_TYPE_LEVEL_HIGH>;
358 interrupt-parent = <&pic>;
360 #interrupt-cells = <1>;
361 interrupt-map-mask = <0 0 0 0>;
362 interrupt-map = <0 0 0 0 &pic 42 IRQ_TYPE_LEVEL_HIGH>;
366 compatible = "pci0014,7a19.1",
371 reg = <0x9000 0x0 0x0 0x0 0x0>;
372 interrupts = <43 IRQ_TYPE_LEVEL_HIGH>;
373 interrupt-parent = <&pic>;
375 #interrupt-cells = <1>;
376 interrupt-map-mask = <0 0 0 0>;
377 interrupt-map = <0 0 0 0 &pic 43 IRQ_TYPE_LEVEL_HIGH>;
381 compatible = "pci0014,7a29.1",
386 reg = <0x9800 0x0 0x0 0x0 0x0>;
387 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
388 interrupt-parent = <&pic>;
390 #interrupt-cells = <1>;
391 interrupt-map-mask = <0 0 0 0>;
392 interrupt-map = <0 0 0 0 &pic 38 IRQ_TYPE_LEVEL_HIGH>;
396 compatible = "pci0014,7a19.1",
401 reg = <0xa000 0x0 0x0 0x0 0x0>;
402 interrupts = <39 IRQ_TYPE_LEVEL_HIGH>;
403 interrupt-parent = <&pic>;
405 #interrupt-cells = <1>;
406 interrupt-map-mask = <0 0 0 0>;
407 interrupt-map = <0 0 0 0 &pic 39 IRQ_TYPE_LEVEL_HIGH>;
413 #address-cells = <2>;
415 ranges = <1 0 0 0x18000000 0x20000>;