]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: PCI: cadence: Add DT bindings for optional PHYs
authorAlan Douglas <adouglas@cadence.com>
Mon, 25 Jun 2018 08:30:51 +0000 (09:30 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 11 Jul 2018 09:39:40 +0000 (10:39 +0100)
Update DT documentation to include optional PHYs for cadence PCIe
host and endpoint controllers.

Signed-off-by: Alan Douglas <adouglas@cadence.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.txt
Documentation/devicetree/bindings/pci/cdns,cdns-pcie-host.txt

index 9a305237fa6e37623f7722307c28ecd70692ea08..4a0475e2ba7ec1c86b2290323329b4dea86cacb8 100644 (file)
@@ -9,6 +9,9 @@ Required properties:
 
 Optional properties:
 - max-functions: Maximum number of functions that can be configured (default 1).
+- phys: From PHY bindings: List of Generic PHY phandles. One per lane if more
+  than one in the list.  If only one PHY listed it must manage all lanes. 
+- phy-names:  List of names to identify the PHY.
 
 Example:
 
@@ -19,4 +22,6 @@ pcie@fc000000 {
        reg-names = "reg", "mem";
        cdns,max-outbound-regions = <16>;
        max-functions = /bits/ 8 <8>;
+       phys = <&ep_phy0 &ep_phy1>;
+       phy-names = "pcie-lane0","pcie-lane1";
 };
index 20a33f38f69da389cb8ac81766babe901708dc18..91de69c713a940badd081d11133c063d9b22309d 100644 (file)
@@ -24,6 +24,9 @@ Optional properties:
   translations (default 32)
 - vendor-id: The PCI vendor ID (16 bits, default is design dependent)
 - device-id: The PCI device ID (16 bits, default is design dependent)
+- phys: From PHY bindings: List of Generic PHY phandles. One per lane if more
+  than one in the list.  If only one PHY listed it must manage all lanes. 
+- phy-names:  List of names to identify the PHY.
 
 Example:
 
@@ -57,4 +60,7 @@ pcie@fb000000 {
        interrupt-map-mask = <0x0 0x0 0x0  0x7>;
 
        msi-parent = <&its_pci>;
+
+       phys = <&pcie_phy0>;
+       phy-names = "pcie-phy";
 };