]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: hisi: add PCIe host controller node for hip07 SoC
authorZhou Wang <wangzhou1@hisilicon.com>
Mon, 14 Aug 2017 09:23:48 +0000 (17:23 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Mon, 14 Aug 2017 14:25:39 +0000 (15:25 +0100)
Add one PCIe host controller node for HiSilicon Hip07 SoC and enable it in
D05 board.

Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
arch/arm64/boot/dts/hisilicon/hip07-d05.dts
arch/arm64/boot/dts/hisilicon/hip07.dtsi

index f5d7f0889b41db47ad784f668845b3e5218c6b84..fe7c16c3602593a9b572fef58bba730dbd1a9c73 100644 (file)
@@ -84,3 +84,7 @@ &eth3 {
 &sas1 {
        status = "ok";
 };
+
+&p0_pcie2_a {
+       status = "ok";
+};
index 283d7b532e161742c3d1be58e5e6621f21bae51a..2c01a21c36656f9e55f110ec31ee4060724879c1 100644 (file)
@@ -1534,5 +1534,27 @@ sas2: sas@a3000000 {
                                     <637 1>,<638 1>,<639 1>;
                        status = "disabled";
                };
+
+               p0_pcie2_a: pcie@a00a0000 {
+                       compatible = "hisilicon,hip07-pcie-ecam";
+                       reg = <0 0xaf800000 0 0x800000>,
+                             <0 0xa00a0000 0 0x10000>;
+                       bus-range = <0xf8 0xff>;
+                       msi-map = <0xf800 &p0_its_dsa_a 0xf800 0x800>;
+                       msi-map-mask = <0xffff>;
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       device_type = "pci";
+                       dma-coherent;
+                       ranges = <0x02000000 0 0xa8000000 0 0xa8000000 0 0x77f0000
+                                 0x01000000 0 0 0 0xaf7f0000 0 0x10000>;
+                       #interrupt-cells = <1>;
+                       interrupt-map-mask = <0xf800 0 0 7>;
+                       interrupt-map = <0x0 0 0 1 &mbigen_pcie2_a 671 4
+                                        0x0 0 0 2 &mbigen_pcie2_a 671 4
+                                        0x0 0 0 3 &mbigen_pcie2_a 671 4
+                                        0x0 0 0 4 &mbigen_pcie2_a 671 4>;
+                       status = "disabled";
+               };
        };
 };