ARM: dts: artpec: add disabled node for PCIe endpoint mode
authorNiklas Cassel <niklas.cassel@axis.com>
Wed, 21 Feb 2018 08:59:59 +0000 (09:59 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 6 Mar 2018 16:41:34 +0000 (17:41 +0100)
The PCIe controller in the artpec6 SoC supports both root complex and
endpoint mode, however, the controller can only be used in one of the
modes.

Both pci nodes are disabled by default. A DTS file can enable one of
them, depending on what mode it wants to run.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/artpec6.dtsi

index 1c46df0..b7720be 100644 (file)
                interrupt-affinity = <&cpu0>, <&cpu1>;
        };
 
+       /*
+        * Both pci nodes cannot be enabled at the same time,
+        * leave the unwanted node as disabled.
+        */
        pcie: pcie@f8050000 {
                compatible = "axis,artpec6-pcie", "snps,dw-pcie";
                reg = <0xf8050000 0x2000
                status = "disabled";
        };
 
+       pcie_ep: pcie_ep@f8050000 {
+               compatible = "axis,artpec6-pcie-ep", "snps,dw-pcie";
+               reg = <0xf8050000 0x2000
+                      0xf8051000 0x2000
+                      0xf8040000 0x1000
+                      0xc0000000 0x20000000>;
+               reg-names = "dbi", "dbi2", "phy", "addr_space";
+               num-ib-windows = <6>;
+               num-ob-windows = <2>;
+               num-lanes = <2>;
+               axis,syscon-pcie = <&syscon>;
+               status = "disabled";
+       };
+
        pinctrl: pinctrl@f801d000 {
                compatible = "axis,artpec6-pinctrl";
                reg = <0xf801d000 0x400>;