MIPS: DTS: Loongson64: Add PCI Controller Node
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Tue, 26 May 2020 09:21:15 +0000 (17:21 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 27 May 2020 10:53:44 +0000 (12:53 +0200)
Add PCI Host controller node for Loongson64 with RS780E PCH dts.
Note that PCI interrupts are probed via legacy way, as different
machine have different interrupt arrangement, we can't cover all
of them in dt.

Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/boot/dts/loongson/rs780e-pch.dtsi

index 8687c4f7370ad8c8c76cc52d3a97b3b9973f37cf..d0d5d60a8697f426fd466e4c00355f3f5f8b076e 100644 (file)
@@ -9,6 +9,18 @@
                                0 0x40000000 0 0x40000000 0 0x40000000
                                0xfd 0xfe000000 0xfd 0xfe000000  0 0x2000000 /* PCI Config Space */>;
 
+               pci@1a000000 {
+                       compatible = "loongson,rs780e-pci";
+                       device_type = "pci";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+
+                       reg = <0 0x1a000000 0 0x02000000>;
+
+                       ranges = <0x01000000 0 0x00004000 0 0x18004000 0 0x00004000>,
+                                <0x02000000 0 0x40000000 0 0x40000000 0 0x40000000>;
+               };
+
                isa {
                        compatible = "isa";
                        #address-cells = <2>;