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