| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
/ { |
| 4 |
pch: bus@10000000 { |
| 5 |
compatible = "simple-bus"; |
| 6 |
#address-cells = <2>; |
| 7 |
#size-cells = <2>; |
| 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>; |
| 12 |
|
| 13 |
pic: interrupt-controller@10000000 { |
| 14 |
compatible = "loongson,pch-pic-1.0"; |
| 15 |
reg = <0 0x10000000 0 0x400>; |
| 16 |
interrupt-controller; |
| 17 |
interrupt-parent = <&htvec>; |
| 18 |
loongson,pic-base-vec = <0>; |
| 19 |
#interrupt-cells = <2>; |
| 20 |
}; |
| 21 |
|
| 22 |
rtc0: rtc@100d0100 { |
| 23 |
compatible = "loongson,ls7a-rtc"; |
| 24 |
reg = <0 0x100d0100 0 0x78>; |
| 25 |
interrupt-parent = <&pic>; |
| 26 |
interrupts = <52 IRQ_TYPE_LEVEL_HIGH>; |
| 27 |
}; |
| 28 |
|
| 29 |
ls7a_uart0: serial@10080000 { |
| 30 |
compatible = "ns16550a"; |
| 31 |
reg = <0 0x10080000 0 0x100>; |
| 32 |
clock-frequency = <50000000>; |
| 33 |
interrupt-parent = <&pic>; |
| 34 |
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; |
| 35 |
no-loopback-test; |
| 36 |
}; |
| 37 |
|
| 38 |
ls7a_uart1: serial@10080100 { |
| 39 |
status = "disabled"; |
| 40 |
compatible = "ns16550a"; |
| 41 |
reg = <0 0x10080100 0 0x100>; |
| 42 |
clock-frequency = <50000000>; |
| 43 |
interrupt-parent = <&pic>; |
| 44 |
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; |
| 45 |
no-loopback-test; |
| 46 |
}; |
| 47 |
|
| 48 |
ls7a_uart2: serial@10080200 { |
| 49 |
status = "disabled"; |
| 50 |
compatible = "ns16550a"; |
| 51 |
reg = <0 0x10080200 0 0x100>; |
| 52 |
clock-frequency = <50000000>; |
| 53 |
interrupt-parent = <&pic>; |
| 54 |
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; |
| 55 |
no-loopback-test; |
| 56 |
}; |
| 57 |
|
| 58 |
ls7a_uart3: serial@10080300 { |
| 59 |
status = "disabled"; |
| 60 |
compatible = "ns16550a"; |
| 61 |
reg = <0 0x10080300 0 0x100>; |
| 62 |
clock-frequency = <50000000>; |
| 63 |
interrupt-parent = <&pic>; |
| 64 |
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; |
| 65 |
no-loopback-test; |
| 66 |
}; |
| 67 |
|
| 68 |
pci@1a000000 { |
| 69 |
compatible = "loongson,ls7a-pci"; |
| 70 |
device_type = "pci"; |
| 71 |
#address-cells = <3>; |
| 72 |
#size-cells = <2>; |
| 73 |
msi-parent = <&msi>; |
| 74 |
|
| 75 |
reg = <0 0x1a000000 0 0x02000000>, |
| 76 |
<0xefe 0x00000000 0 0x20000000>; |
| 77 |
|
| 78 |
ranges = <0x01000000 0x0 0x00020000 0x0 0x18020000 0x0 0x00020000>, |
| 79 |
<0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>; |
| 80 |
|
| 81 |
ohci@4,0 { |
| 82 |
compatible = "pci0014,7a24.0", |
| 83 |
"pci0014,7a24", |
| 84 |
"pciclass0c0310", |
| 85 |
"pciclass0c03"; |
| 86 |
|
| 87 |
reg = <0x2000 0x0 0x0 0x0 0x0>; |
| 88 |
interrupts = <49 IRQ_TYPE_LEVEL_HIGH>; |
| 89 |
interrupt-parent = <&pic>; |
| 90 |
}; |
| 91 |
|
| 92 |
ehci@4,1 { |
| 93 |
compatible = "pci0014,7a14.0", |
| 94 |
"pci0014,7a14", |
| 95 |
"pciclass0c0320", |
| 96 |
"pciclass0c03"; |
| 97 |
|
| 98 |
reg = <0x2100 0x0 0x0 0x0 0x0>; |
| 99 |
interrupts = <48 IRQ_TYPE_LEVEL_HIGH>; |
| 100 |
interrupt-parent = <&pic>; |
| 101 |
}; |
| 102 |
|
| 103 |
ohci@5,0 { |
| 104 |
compatible = "pci0014,7a24.0", |
| 105 |
"pci0014,7a24", |
| 106 |
"pciclass0c0310", |
| 107 |
"pciclass0c03"; |
| 108 |
|
| 109 |
reg = <0x2800 0x0 0x0 0x0 0x0>; |
| 110 |
interrupts = <51 IRQ_TYPE_LEVEL_HIGH>; |
| 111 |
interrupt-parent = <&pic>; |
| 112 |
}; |
| 113 |
|
| 114 |
ehci@5,1 { |
| 115 |
compatible = "pci0014,7a14.0", |
| 116 |
"pci0014,7a14", |
| 117 |
"pciclass0c0320", |
| 118 |
"pciclass0c03"; |
| 119 |
|
| 120 |
reg = <0x2900 0x0 0x0 0x0 0x0>; |
| 121 |
interrupts = <50 IRQ_TYPE_LEVEL_HIGH>; |
| 122 |
interrupt-parent = <&pic>; |
| 123 |
}; |
| 124 |
|
| 125 |
sata@8,0 { |
| 126 |
compatible = "pci0014,7a08.0", |
| 127 |
"pci0014,7a08", |
| 128 |
"pciclass010601", |
| 129 |
"pciclass0106"; |
| 130 |
|
| 131 |
reg = <0x4000 0x0 0x0 0x0 0x0>; |
| 132 |
interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; |
| 133 |
interrupt-parent = <&pic>; |
| 134 |
}; |
| 135 |
|
| 136 |
sata@8,1 { |
| 137 |
compatible = "pci0014,7a08.0", |
| 138 |
"pci0014,7a08", |
| 139 |
"pciclass010601", |
| 140 |
"pciclass0106"; |
| 141 |
|
| 142 |
reg = <0x4100 0x0 0x0 0x0 0x0>; |
| 143 |
interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; |
| 144 |
interrupt-parent = <&pic>; |
| 145 |
}; |
| 146 |
|
| 147 |
sata@8,2 { |
| 148 |
compatible = "pci0014,7a08.0", |
| 149 |
"pci0014,7a08", |
| 150 |
"pciclass010601", |
| 151 |
"pciclass0106"; |
| 152 |
|
| 153 |
reg = <0x4200 0x0 0x0 0x0 0x0>; |
| 154 |
interrupts = <18 IRQ_TYPE_LEVEL_HIGH>; |
| 155 |
interrupt-parent = <&pic>; |
| 156 |
}; |
| 157 |
|
| 158 |
gpu@6,0 { |
| 159 |
compatible = "pci0014,7a15.0", |
| 160 |
"pci0014,7a15", |
| 161 |
"pciclass030200", |
| 162 |
"pciclass0302"; |
| 163 |
|
| 164 |
reg = <0x3000 0x0 0x0 0x0 0x0>; |
| 165 |
interrupts = <29 IRQ_TYPE_LEVEL_HIGH>; |
| 166 |
interrupt-parent = <&pic>; |
| 167 |
}; |
| 168 |
|
| 169 |
dc@6,1 { |
| 170 |
compatible = "pci0014,7a06.0", |
| 171 |
"pci0014,7a06", |
| 172 |
"pciclass030000", |
| 173 |
"pciclass0300"; |
| 174 |
|
| 175 |
reg = <0x3100 0x0 0x0 0x0 0x0>; |
| 176 |
interrupts = <28 IRQ_TYPE_LEVEL_HIGH>; |
| 177 |
interrupt-parent = <&pic>; |
| 178 |
}; |
| 179 |
|
| 180 |
hda@7,0 { |
| 181 |
compatible = "pci0014,7a07.0", |
| 182 |
"pci0014,7a07", |
| 183 |
"pciclass040300", |
| 184 |
"pciclass0403"; |
| 185 |
|
| 186 |
reg = <0x3800 0x0 0x0 0x0 0x0>; |
| 187 |
interrupts = <58 IRQ_TYPE_LEVEL_HIGH>; |
| 188 |
interrupt-parent = <&pic>; |
| 189 |
}; |
| 190 |
|
| 191 |
gmac@3,0 { |
| 192 |
compatible = "pci0014,7a03.0", |
| 193 |
"pci0014,7a03", |
| 194 |
"pciclass020000", |
| 195 |
"pciclass0200"; |
| 196 |
|
| 197 |
reg = <0x1800 0x0 0x0 0x0 0x0>; |
| 198 |
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>, |
| 199 |
<13 IRQ_TYPE_LEVEL_HIGH>; |
| 200 |
interrupt-names = "macirq", "eth_lpi"; |
| 201 |
interrupt-parent = <&pic>; |
| 202 |
phy-mode = "rgmii-id"; |
| 203 |
phy-handle = <&phy0>; |
| 204 |
mdio { |
| 205 |
#address-cells = <1>; |
| 206 |
#size-cells = <0>; |
| 207 |
compatible = "snps,dwmac-mdio"; |
| 208 |
phy0: ethernet-phy@0 { |
| 209 |
reg = <0>; |
| 210 |
}; |
| 211 |
}; |
| 212 |
}; |
| 213 |
|
| 214 |
gmac@3,1 { |
| 215 |
compatible = "pci0014,7a03.0", |
| 216 |
"pci0014,7a03", |
| 217 |
"pciclass020000", |
| 218 |
"pciclass0200", |
| 219 |
"loongson, pci-gmac"; |
| 220 |
|
| 221 |
reg = <0x1900 0x0 0x0 0x0 0x0>; |
| 222 |
interrupts = <14 IRQ_TYPE_LEVEL_HIGH>, |
| 223 |
<15 IRQ_TYPE_LEVEL_HIGH>; |
| 224 |
interrupt-names = "macirq", "eth_lpi"; |
| 225 |
interrupt-parent = <&pic>; |
| 226 |
phy-mode = "rgmii-id"; |
| 227 |
phy-handle = <&phy1>; |
| 228 |
mdio { |
| 229 |
#address-cells = <1>; |
| 230 |
#size-cells = <0>; |
| 231 |
compatible = "snps,dwmac-mdio"; |
| 232 |
phy1: ethernet-phy@1 { |
| 233 |
reg = <0>; |
| 234 |
}; |
| 235 |
}; |
| 236 |
}; |
| 237 |
|
| 238 |
pcie@9,0 { |
| 239 |
compatible = "pci0014,7a19.1", |
| 240 |
"pci0014,7a19", |
| 241 |
"pciclass060400", |
| 242 |
"pciclass0604"; |
| 243 |
|
| 244 |
reg = <0x4800 0x0 0x0 0x0 0x0>; |
| 245 |
interrupts = <32 IRQ_TYPE_LEVEL_HIGH>; |
| 246 |
interrupt-parent = <&pic>; |
| 247 |
|
| 248 |
#address-cells = <3>; |
| 249 |
#size-cells = <2>; |
| 250 |
device_type = "pci"; |
| 251 |
#interrupt-cells = <1>; |
| 252 |
interrupt-map-mask = <0 0 0 0>; |
| 253 |
interrupt-map = <0 0 0 0 &pic 32 IRQ_TYPE_LEVEL_HIGH>; |
| 254 |
ranges; |
| 255 |
}; |
| 256 |
|
| 257 |
pcie@a,0 { |
| 258 |
compatible = "pci0014,7a09.1", |
| 259 |
"pci0014,7a09", |
| 260 |
"pciclass060400", |
| 261 |
"pciclass0604"; |
| 262 |
|
| 263 |
reg = <0x5000 0x0 0x0 0x0 0x0>; |
| 264 |
interrupts = <33 IRQ_TYPE_LEVEL_HIGH>; |
| 265 |
interrupt-parent = <&pic>; |
| 266 |
|
| 267 |
#address-cells = <3>; |
| 268 |
#size-cells = <2>; |
| 269 |
device_type = "pci"; |
| 270 |
#interrupt-cells = <1>; |
| 271 |
interrupt-map-mask = <0 0 0 0>; |
| 272 |
interrupt-map = <0 0 0 0 &pic 33 IRQ_TYPE_LEVEL_HIGH>; |
| 273 |
ranges; |
| 274 |
}; |
| 275 |
|
| 276 |
pcie@b,0 { |
| 277 |
compatible = "pci0014,7a09.1", |
| 278 |
"pci0014,7a09", |
| 279 |
"pciclass060400", |
| 280 |
"pciclass0604"; |
| 281 |
|
| 282 |
reg = <0x5800 0x0 0x0 0x0 0x0>; |
| 283 |
interrupts = <34 IRQ_TYPE_LEVEL_HIGH>; |
| 284 |
interrupt-parent = <&pic>; |
| 285 |
|
| 286 |
#address-cells = <3>; |
| 287 |
#size-cells = <2>; |
| 288 |
device_type = "pci"; |
| 289 |
#interrupt-cells = <1>; |
| 290 |
interrupt-map-mask = <0 0 0 0>; |
| 291 |
interrupt-map = <0 0 0 0 &pic 34 IRQ_TYPE_LEVEL_HIGH>; |
| 292 |
ranges; |
| 293 |
}; |
| 294 |
|
| 295 |
pcie@c,0 { |
| 296 |
compatible = "pci0014,7a09.1", |
| 297 |
"pci0014,7a09", |
| 298 |
"pciclass060400", |
| 299 |
"pciclass0604"; |
| 300 |
|
| 301 |
reg = <0x6000 0x0 0x0 0x0 0x0>; |
| 302 |
interrupts = <35 IRQ_TYPE_LEVEL_HIGH>; |
| 303 |
interrupt-parent = <&pic>; |
| 304 |
|
| 305 |
#address-cells = <3>; |
| 306 |
#size-cells = <2>; |
| 307 |
device_type = "pci"; |
| 308 |
#interrupt-cells = <1>; |
| 309 |
interrupt-map-mask = <0 0 0 0>; |
| 310 |
interrupt-map = <0 0 0 0 &pic 35 IRQ_TYPE_LEVEL_HIGH>; |
| 311 |
ranges; |
| 312 |
}; |
| 313 |
|
| 314 |
pcie@d,0 { |
| 315 |
compatible = "pci0014,7a19.1", |
| 316 |
"pci0014,7a19", |
| 317 |
"pciclass060400", |
| 318 |
"pciclass0604"; |
| 319 |
|
| 320 |
reg = <0x6800 0x0 0x0 0x0 0x0>; |
| 321 |
interrupts = <36 IRQ_TYPE_LEVEL_HIGH>; |
| 322 |
interrupt-parent = <&pic>; |
| 323 |
|
| 324 |
#address-cells = <3>; |
| 325 |
#size-cells = <2>; |
| 326 |
device_type = "pci"; |
| 327 |
#interrupt-cells = <1>; |
| 328 |
interrupt-map-mask = <0 0 0 0>; |
| 329 |
interrupt-map = <0 0 0 0 &pic 36 IRQ_TYPE_LEVEL_HIGH>; |
| 330 |
ranges; |
| 331 |
}; |
| 332 |
|
| 333 |
pcie@e,0 { |
| 334 |
compatible = "pci0014,7a09.1", |
| 335 |
"pci0014,7a09", |
| 336 |
"pciclass060400", |
| 337 |
"pciclass0604"; |
| 338 |
|
| 339 |
reg = <0x7000 0x0 0x0 0x0 0x0>; |
| 340 |
interrupts = <37 IRQ_TYPE_LEVEL_HIGH>; |
| 341 |
interrupt-parent = <&pic>; |
| 342 |
|
| 343 |
#address-cells = <3>; |
| 344 |
#size-cells = <2>; |
| 345 |
device_type = "pci"; |
| 346 |
#interrupt-cells = <1>; |
| 347 |
interrupt-map-mask = <0 0 0 0>; |
| 348 |
interrupt-map = <0 0 0 0 &pic 37 IRQ_TYPE_LEVEL_HIGH>; |
| 349 |
ranges; |
| 350 |
}; |
| 351 |
|
| 352 |
pcie@f,0 { |
| 353 |
compatible = "pci0014,7a29.1", |
| 354 |
"pci0014,7a29", |
| 355 |
"pciclass060400", |
| 356 |
"pciclass0604"; |
| 357 |
|
| 358 |
reg = <0x7800 0x0 0x0 0x0 0x0>; |
| 359 |
interrupts = <40 IRQ_TYPE_LEVEL_HIGH>; |
| 360 |
interrupt-parent = <&pic>; |
| 361 |
|
| 362 |
#address-cells = <3>; |
| 363 |
#size-cells = <2>; |
| 364 |
device_type = "pci"; |
| 365 |
#interrupt-cells = <1>; |
| 366 |
interrupt-map-mask = <0 0 0 0>; |
| 367 |
interrupt-map = <0 0 0 0 &pic 40 IRQ_TYPE_LEVEL_HIGH>; |
| 368 |
ranges; |
| 369 |
}; |
| 370 |
|
| 371 |
pcie@10,0 { |
| 372 |
compatible = "pci0014,7a19.1", |
| 373 |
"pci0014,7a19", |
| 374 |
"pciclass060400", |
| 375 |
"pciclass0604"; |
| 376 |
|
| 377 |
reg = <0x8000 0x0 0x0 0x0 0x0>; |
| 378 |
interrupts = <41 IRQ_TYPE_LEVEL_HIGH>; |
| 379 |
interrupt-parent = <&pic>; |
| 380 |
|
| 381 |
#address-cells = <3>; |
| 382 |
#size-cells = <2>; |
| 383 |
device_type = "pci"; |
| 384 |
#interrupt-cells = <1>; |
| 385 |
interrupt-map-mask = <0 0 0 0>; |
| 386 |
interrupt-map = <0 0 0 0 &pic 41 IRQ_TYPE_LEVEL_HIGH>; |
| 387 |
ranges; |
| 388 |
}; |
| 389 |
|
| 390 |
pcie@11,0 { |
| 391 |
compatible = "pci0014,7a29.1", |
| 392 |
"pci0014,7a29", |
| 393 |
"pciclass060400", |
| 394 |
"pciclass0604"; |
| 395 |
|
| 396 |
reg = <0x8800 0x0 0x0 0x0 0x0>; |
| 397 |
interrupts = <42 IRQ_TYPE_LEVEL_HIGH>; |
| 398 |
interrupt-parent = <&pic>; |
| 399 |
|
| 400 |
#address-cells = <3>; |
| 401 |
#size-cells = <2>; |
| 402 |
device_type = "pci"; |
| 403 |
#interrupt-cells = <1>; |
| 404 |
interrupt-map-mask = <0 0 0 0>; |
| 405 |
interrupt-map = <0 0 0 0 &pic 42 IRQ_TYPE_LEVEL_HIGH>; |
| 406 |
ranges; |
| 407 |
}; |
| 408 |
|
| 409 |
pcie@12,0 { |
| 410 |
compatible = "pci0014,7a19.1", |
| 411 |
"pci0014,7a19", |
| 412 |
"pciclass060400", |
| 413 |
"pciclass0604"; |
| 414 |
|
| 415 |
reg = <0x9000 0x0 0x0 0x0 0x0>; |
| 416 |
interrupts = <43 IRQ_TYPE_LEVEL_HIGH>; |
| 417 |
interrupt-parent = <&pic>; |
| 418 |
|
| 419 |
#address-cells = <3>; |
| 420 |
#size-cells = <2>; |
| 421 |
device_type = "pci"; |
| 422 |
#interrupt-cells = <1>; |
| 423 |
interrupt-map-mask = <0 0 0 0>; |
| 424 |
interrupt-map = <0 0 0 0 &pic 43 IRQ_TYPE_LEVEL_HIGH>; |
| 425 |
ranges; |
| 426 |
}; |
| 427 |
|
| 428 |
pcie@13,0 { |
| 429 |
compatible = "pci0014,7a29.1", |
| 430 |
"pci0014,7a29", |
| 431 |
"pciclass060400", |
| 432 |
"pciclass0604"; |
| 433 |
|
| 434 |
reg = <0x9800 0x0 0x0 0x0 0x0>; |
| 435 |
interrupts = <38 IRQ_TYPE_LEVEL_HIGH>; |
| 436 |
interrupt-parent = <&pic>; |
| 437 |
|
| 438 |
#address-cells = <3>; |
| 439 |
#size-cells = <2>; |
| 440 |
device_type = "pci"; |
| 441 |
#interrupt-cells = <1>; |
| 442 |
interrupt-map-mask = <0 0 0 0>; |
| 443 |
interrupt-map = <0 0 0 0 &pic 38 IRQ_TYPE_LEVEL_HIGH>; |
| 444 |
ranges; |
| 445 |
}; |
| 446 |
|
| 447 |
pcie@14,0 { |
| 448 |
compatible = "pci0014,7a19.1", |
| 449 |
"pci0014,7a19", |
| 450 |
"pciclass060400", |
| 451 |
"pciclass0604"; |
| 452 |
|
| 453 |
reg = <0xa000 0x0 0x0 0x0 0x0>; |
| 454 |
interrupts = <39 IRQ_TYPE_LEVEL_HIGH>; |
| 455 |
interrupt-parent = <&pic>; |
| 456 |
|
| 457 |
#address-cells = <3>; |
| 458 |
#size-cells = <2>; |
| 459 |
device_type = "pci"; |
| 460 |
#interrupt-cells = <1>; |
| 461 |
interrupt-map-mask = <0 0 0 0>; |
| 462 |
interrupt-map = <0 0 0 0 &pic 39 IRQ_TYPE_LEVEL_HIGH>; |
| 463 |
ranges; |
| 464 |
}; |
| 465 |
}; |
| 466 |
|
| 467 |
isa@18000000 { |
| 468 |
compatible = "isa"; |
| 469 |
#address-cells = <2>; |
| 470 |
#size-cells = <1>; |
| 471 |
ranges = <1 0 0 0x18000000 0x20000>; |
| 472 |
}; |
| 473 |
}; |
| 474 |
}; |