All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 1/2] dt-bindings: pci: tegra: Update for per-lane PHYs
@ 2016-04-08 16:13 Thierry Reding
       [not found] ` <1460131994-24493-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 21+ messages in thread
From: Thierry Reding @ 2016-04-08 16:13 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Stephen Warren, Alexandre Courbot, linux-tegra, linux-pci, devicetree

From: Thierry Reding <treding@nvidia.com>

Changes to the pad controller device tree binding have required that
each lane be associated with a separate PHY. Update the PCI host bridge
device tree binding to allow each root port to define the list of PHYs
required to drive the lanes associated with it.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Changes in v4:
- add additional lanes subnode when dereferencing PHYs from the XUSB pad
  controller to reflect changes in its binding

 .../devicetree/bindings/pci/nvidia,tegra20-pcie.txt    | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt b/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt
index 75321ae23c08..f5364084b494 100644
--- a/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt
+++ b/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt
@@ -60,11 +60,14 @@ Required properties:
   - afi
   - pcie_x
 
-Required properties on Tegra124 and later:
+Required properties on Tegra124 and later (deprecated):
 - phys: Must contain an entry for each entry in phy-names.
 - phy-names: Must include the following entries:
   - pcie
 
+These properties are deprecated in favour of per-lane PHYs define in each of
+the root ports (see below).
+
 Power supplies for Tegra20:
 - avdd-pex-supply: Power supply for analog PCIe logic. Must supply 1.05 V.
 - vdd-pex-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
@@ -122,6 +125,13 @@ Required properties:
   - Root port 0 uses 4 lanes, root port 1 is unused.
   - Both root ports use 2 lanes.
 
+Required properties for Tegra124 and later:
+- phys: Must contain an phandle to a PHY for each entry in phy-names.
+- phy-names: Must include an entry for each active lane. Note that the number
+  of entries does not have to (though usually will) be equal to the specified
+  number of lanes in the nvidia,num-lanes property. Entries are of the form
+  "pcie-N": where N ranges from 0 to the value specified in nvidia,num-lanes.
+
 Example:
 
 SoC DTSI:
@@ -169,6 +179,9 @@ SoC DTSI:
 			ranges;
 
 			nvidia,num-lanes = <2>;
+
+			phys = <&{/padctl@0,7009f000/pads/pcie/lanes/pcie-4}>;
+			phy-names = "pcie-0";
 		};
 
 		pci@2,0 {
@@ -183,6 +196,9 @@ SoC DTSI:
 			ranges;
 
 			nvidia,num-lanes = <2>;
+
+			phys = <&{/padctl@0,7009f000/pads/pcie/lanes/pcie-2}>;
+			phy-names = "pcie-0";
 		};
 	};
 
-- 
2.8.0

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2016-04-13 16:23 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-08 16:13 [PATCH v4 1/2] dt-bindings: pci: tegra: Update for per-lane PHYs Thierry Reding
     [not found] ` <1460131994-24493-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-08 16:13   ` [PATCH v4 2/2] PCI: tegra: Support " Thierry Reding
2016-04-08 16:13     ` Thierry Reding
     [not found]     ` <1460131994-24493-2-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-04-08 18:05       ` Bjorn Helgaas
2016-04-08 18:05         ` Bjorn Helgaas
2016-04-11 11:11         ` Thierry Reding
2016-04-11 17:41     ` Stephen Warren
2016-04-08 16:48   ` [PATCH v4 1/2] dt-bindings: pci: tegra: Update for " Bjorn Helgaas
2016-04-08 16:48     ` Bjorn Helgaas
2016-04-11 10:23     ` Thierry Reding
2016-04-11 10:23       ` Thierry Reding
2016-04-08 19:11   ` Bjorn Helgaas
2016-04-08 19:11     ` Bjorn Helgaas
2016-04-11 11:26     ` Thierry Reding
2016-04-11 11:26       ` Thierry Reding
     [not found]       ` <20160411112654.GC17743-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-04-11 16:55         ` Stephen Warren
2016-04-11 16:55           ` Stephen Warren
2016-04-11 17:38   ` Stephen Warren
2016-04-11 17:38     ` Stephen Warren
     [not found]     ` <570BE129.40907-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2016-04-13 16:23       ` Thierry Reding
2016-04-13 16:23         ` Thierry Reding

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.