1 // SPDX-License-Identifier: GPL-2.0
5 #include <dt-bindings/interrupt-controller/irq.h>
8 compatible = "loongson,loongson2k1000";
19 compatible = "loongson,gs264";
27 compatible = "memory";
28 device_type = "memory";
29 reg = <0x00000000 0x00200000 0x00000000 0x0ee00000>, /* 238 MB at 2 MB */
30 <0x00000000 0x20000000 0x00000000 0x1f000000>, /* 496 MB at 512 MB */
31 <0x00000001 0x10000000 0x00000001 0xb0000000>; /* 6912 MB at 4352MB */
36 compatible = "fixed-clock";
37 clock-frequency = <800000000>;
40 cpuintc: interrupt-controller {
42 #interrupt-cells = <1>;
44 compatible = "mti,cpu-interrupt-controller";
47 package0: bus@10000000 {
48 compatible = "simple-bus";
51 ranges = <0 0x10000000 0 0x10000000 0 0x10000000 /* ioports */
52 0 0x40000000 0 0x40000000 0 0x40000000
53 0xfe 0x00000000 0xfe 0x00000000 0 0x40000000>;
55 liointc0: interrupt-controller@1fe11400 {
56 compatible = "loongson,liointc-2.0";
57 reg = <0 0x1fe11400 0 0x40>,
60 reg-names = "main", "isr0", "isr1";
63 #interrupt-cells = <2>;
65 interrupt-parent = <&cpuintc>;
67 interrupt-names = "int0";
69 loongson,parent_int_map = <0xffffffff>, /* int0 */
70 <0x00000000>, /* int1 */
71 <0x00000000>, /* int2 */
72 <0x00000000>; /* int3 */
75 liointc1: interrupt-controller@1fe11440 {
76 compatible = "loongson,liointc-2.0";
77 reg = <0 0x1fe11440 0 0x40>,
80 reg-names = "main", "isr0", "isr1";
83 #interrupt-cells = <2>;
85 interrupt-parent = <&cpuintc>;
87 interrupt-names = "int1";
89 loongson,parent_int_map = <0x00000000>, /* int0 */
90 <0xffffffff>, /* int1 */
91 <0x00000000>, /* int2 */
92 <0x00000000>; /* int3 */
95 uart0: serial@1fe00000 {
96 compatible = "ns16550a";
97 reg = <0 0x1fe00000 0 0x8>;
98 clock-frequency = <125000000>;
99 interrupt-parent = <&liointc0>;
100 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
105 compatible = "loongson,ls2k-pci";
107 #address-cells = <3>;
109 #interrupt-cells = <2>;
111 reg = <0 0x1a000000 0 0x02000000>,
112 <0xfe 0x00000000 0 0x20000000>;
114 ranges = <0x01000000 0x0 0x00000000 0x0 0x18000000 0x0 0x00010000>,
115 <0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>;
118 compatible = "pci0014,7a03.0",
122 "loongson, pci-gmac";
124 reg = <0x1800 0x0 0x0 0x0 0x0>;
125 interrupts = <12 IRQ_TYPE_LEVEL_LOW>,
126 <13 IRQ_TYPE_LEVEL_LOW>;
127 interrupt-names = "macirq", "eth_lpi";
128 interrupt-parent = <&liointc0>;
131 #address-cells = <1>;
133 compatible = "snps,dwmac-mdio";
134 phy0: ethernet-phy@0 {
141 compatible = "pci0014,7a03.0",
145 "loongson, pci-gmac";
147 reg = <0x1900 0x0 0x0 0x0 0x0>;
148 interrupts = <14 IRQ_TYPE_LEVEL_LOW>,
149 <15 IRQ_TYPE_LEVEL_LOW>;
150 interrupt-names = "macirq", "eth_lpi";
151 interrupt-parent = <&liointc0>;
154 #address-cells = <1>;
156 compatible = "snps,dwmac-mdio";
157 phy1: ethernet-phy@1 {
164 compatible = "pci0014,7a14.0",
169 reg = <0x2100 0x0 0x0 0x0 0x0>;
170 interrupts = <18 IRQ_TYPE_LEVEL_LOW>;
171 interrupt-parent = <&liointc1>;
175 compatible = "pci0014,7a24.0",
180 reg = <0x2200 0x0 0x0 0x0 0x0>;
181 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
182 interrupt-parent = <&liointc1>;
186 compatible = "pci0014,7a08.0",
191 reg = <0x4000 0x0 0x0 0x0 0x0>;
192 interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
193 interrupt-parent = <&liointc0>;
197 compatible = "pci0014,7a19.0",
202 reg = <0x4800 0x0 0x0 0x0 0x0>;
203 #interrupt-cells = <1>;
204 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
205 interrupt-parent = <&liointc1>;
206 interrupt-map-mask = <0 0 0 0>;
207 interrupt-map = <0 0 0 0 &liointc1 0 IRQ_TYPE_LEVEL_LOW>;
212 compatible = "pci0014,7a19.0",
217 reg = <0x5000 0x0 0x0 0x0 0x0>;
218 #interrupt-cells = <1>;
219 interrupts = <1 IRQ_TYPE_LEVEL_LOW>;
220 interrupt-parent = <&liointc1>;
221 interrupt-map-mask = <0 0 0 0>;
222 interrupt-map = <0 0 0 0 &liointc1 1 IRQ_TYPE_LEVEL_LOW>;
227 compatible = "pci0014,7a19.0",
232 reg = <0x5800 0x0 0x0 0x0 0x0>;
233 #interrupt-cells = <1>;
234 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
235 interrupt-parent = <&liointc1>;
236 interrupt-map-mask = <0 0 0 0>;
237 interrupt-map = <0 0 0 0 &liointc1 2 IRQ_TYPE_LEVEL_LOW>;
242 compatible = "pci0014,7a19.0",
247 reg = <0x6000 0x0 0x0 0x0 0x0>;
248 #interrupt-cells = <1>;
249 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
250 interrupt-parent = <&liointc1>;
251 interrupt-map-mask = <0 0 0 0>;
252 interrupt-map = <0 0 0 0 &liointc1 3 IRQ_TYPE_LEVEL_LOW>;
257 compatible = "pci0014,7a19.0",
262 reg = <0x6800 0x0 0x0 0x0 0x0>;
263 #interrupt-cells = <1>;
264 interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
265 interrupt-parent = <&liointc1>;
266 interrupt-map-mask = <0 0 0 0>;
267 interrupt-map = <0 0 0 0 &liointc1 4 IRQ_TYPE_LEVEL_LOW>;
272 compatible = "pci0014,7a19.0",
277 reg = <0x7000 0x0 0x0 0x0 0x0>;
278 #interrupt-cells = <1>;
279 interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
280 interrupt-parent = <&liointc1>;
281 interrupt-map-mask = <0 0 0 0>;
282 interrupt-map = <0 0 0 0 &liointc1 5 IRQ_TYPE_LEVEL_LOW>;