On Thu, Apr 11, 2019 at 10:33:48PM +0530, Manikanta Maddireddy wrote: > Document PCIe DPD pinctrl optional property to put PEX clk & BIAS pads > in low power mode. > > Signed-off-by: Manikanta Maddireddy <mmaddireddy@xxxxxxxxxx> > --- > .../devicetree/bindings/pci/nvidia,tegra20-pcie.txt | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt b/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt > index 145a4f04194f..fbbd3bcb3435 100644 > --- a/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt > +++ b/Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt > @@ -65,6 +65,15 @@ Required properties: > - afi > - pcie_x > > +Optional properties: > +- pinctrl-names : The pin control state names. > +- pinctrl-0: PCIe IO(bias & REFCLK) deep power down(DPD) disable state. > + In Tegra210 PCIe clamps are not controlling IO signals, so there > + is leakagae power even after PCIe power partition is off. Pass leakage > + pinctrl phandle to allow driver to explicitly put PCIe IO in DPD state. > +- pinctrl-1: PCIe IO(bias & REFCLK) deep power down(DPD) enable state. > + Pass pinctrl phandle to allow driver bring PCIe IO out of DPD state. This is confusingly documented. Your pinctrl-names should list exactly what states are supported. The generic pinctrl bindings already specify how to define pinctrl states, so I don't think you need to describe all of the pinctrl-{0,1,...} states again. Also, looking at the driver you seem to use custom names for the pinctrl states, but those states are really just the "active" and the "idle" states, for which there are standard names. Something like this perhaps: - pinctrl-names: A list of pinctrl state names. Must contain the following entries: - "default": active state, puts PCIe I/O out of deep power down state - "idle": puts PCIe I/O into deep power down state It then goes without saying that the phandle pointed to by pinctrl-0 corresponds to the pinctrl state named by the first entry in pinctrl-names. If you use those default names for the states, I don't think you even need extra code, the pinctrl subsystem should be able to take of that for you. Thierry > + > 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: > -- > 2.17.1 >
Attachment:
signature.asc
Description: PGP signature