powerpc/fsl: Add PCI node in device tree of bsc9132qds
authorHarninder Rai <harninder.rai@freescale.com>
Thu, 5 Nov 2015 03:15:59 +0000 (11:15 +0800)
committerScott Wood <scottwood@freescale.com>
Wed, 23 Dec 2015 00:17:14 +0000 (18:17 -0600)
Signed-off-by: Harninder Rai <harninder.rai@freescale.com>
Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
Signed-off-by: Hou Zhiqiang <B48286@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/boot/dts/fsl/bsc9132qds.dts
arch/powerpc/boot/dts/fsl/bsc9132si-post.dtsi
arch/powerpc/boot/dts/fsl/bsc9132si-pre.dtsi

index 70882ade606d42d711b0116b92cedcbc8933192b..56e6f1337e96325d71e588d69c1a8133baf6d6f4 100644 (file)
        soc: soc@ff700000 {
                ranges = <0x0 0x0 0xff700000 0x100000>;
        };
+
+       pci0: pcie@ff70a000 {
+               reg = <0 0xff70a000 0 0x1000>;
+               ranges = <0x2000000 0x0 0x90000000 0 0x90000000 0x0 0x20000000
+                         0x1000000 0x0 0x00000000 0 0xc0010000 0x0 0x10000>;
+               pcie@0 {
+                       ranges = <0x2000000 0x0 0x90000000
+                                 0x2000000 0x0 0x90000000
+                                 0x0 0x20000000
+
+                                 0x1000000 0x0 0x0
+                                 0x1000000 0x0 0x0
+                                 0x0 0x100000>;
+               };
+       };
 };
 
 /include/ "bsc9132qds.dtsi"
index c72307198140564034a6348a170fad62878c95d4..b5f071574e831afb112b48ca973ce6b37f11812b 100644 (file)
        interrupts = <16 2 0 0 20 2 0 0>;
 };
 
+/* controller at 0xa000 */
+&pci0 {
+       compatible = "fsl,bsc9132-pcie", "fsl,qoriq-pcie-v2.2";
+       device_type = "pci";
+       #size-cells = <2>;
+       #address-cells = <3>;
+       bus-range = <0 255>;
+       interrupts = <16 2 0 0>;
+
+       pcie@0 {
+               reg = <0 0 0 0 0>;
+               #interrupt-cells = <1>;
+               #size-cells = <2>;
+               #address-cells = <3>;
+               device_type = "pci";
+               interrupts = <16 2 0 0>;
+               interrupt-map-mask = <0xf800 0 0 7>;
+
+               interrupt-map = <
+                       /* IDSEL 0x0 */
+                       0000 0x0 0x0 0x1 &mpic 0x0 0x2 0x0 0x0
+                       0000 0x0 0x0 0x2 &mpic 0x1 0x2 0x0 0x0
+                       0000 0x0 0x0 0x3 &mpic 0x2 0x2 0x0 0x0
+                       0000 0x0 0x0 0x4 &mpic 0x3 0x2 0x0 0x0
+                       >;
+       };
+};
+
 &soc {
        #address-cells = <1>;
        #size-cells = <1>;
index 301a9dba579067370b9d4217860cf1dbc1d0e4c9..90f7949fe31285f365045635ed155a9f4d476154 100644 (file)
@@ -45,6 +45,7 @@
                serial0 = &serial0;
                ethernet0 = &enet0;
                ethernet1 = &enet1;
+               pci0 = &pci0;
        };
 
        cpus {