]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: dts: artpec: add pcie support
authorNiklas Cassel <niklas.cassel@axis.com>
Fri, 14 Oct 2016 13:09:13 +0000 (15:09 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 25 Nov 2016 23:11:30 +0000 (00:11 +0100)
Add PCIe support to the ARTPEC-6 SoC. This uses the existing
pcie-artpec6 driver.
So, all that is needed is device tree entries in the DTS.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
arch/arm/boot/dts/artpec6-devboard.dts
arch/arm/boot/dts/artpec6.dtsi

index f823ed382ac7cf5585e96ce09b35b8b6c6734705..9dfe845694cff443ffba59cf252eb7c0233f5404 100644 (file)
        status = "okay";
 };
 
+&pcie {
+       status = "okay";
+};
+
 &ethernet {
        status = "okay";
 
index 3489019cc0dc1d2154923636bb145f75315fe97f..767cbe8d8557a1d111443c0c0e119b578d591b9a 100644 (file)
@@ -67,7 +67,7 @@
                };
        };
 
-       syscon {
+       syscon: syscon@f8000000 {
                compatible = "axis,artpec6-syscon", "syscon";
                reg = <0xf8000000 0x48>;
        };
                interrupt-parent = <&intc>;
        };
 
+       pcie: pcie@f8050000 {
+               compatible = "axis,artpec6-pcie", "snps,dw-pcie";
+               reg = <0xf8050000 0x2000
+                      0xf8040000 0x1000
+                      0xc0000000 0x2000>;
+               reg-names = "dbi", "phy", "config";
+               #address-cells = <3>;
+               #size-cells = <2>;
+               device_type = "pci";
+                         /* downstream I/O */
+               ranges = <0x81000000 0 0 0xc0002000 0 0x00010000
+                         /* non-prefetchable memory */
+                         0x82000000 0 0xc0012000 0xc0012000 0 0x1ffee000>;
+               num-lanes = <2>;
+               bus-range = <0x00 0xff>;
+               interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-names = "msi";
+               #interrupt-cells = <1>;
+               interrupt-map-mask = <0 0 0 0x7>;
+               interrupt-map = <0 0 0 1 &intc GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>,
+                               <0 0 0 2 &intc GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>,
+                               <0 0 0 3 &intc GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
+                               <0 0 0 4 &intc GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
+               axis,syscon-pcie = <&syscon>;
+               status = "disabled";
+       };
+
        amba@0 {
                compatible = "simple-bus";
                #address-cells = <0x1>;