arm64: tegra: Add PEX DPD states as pinctrl properties
authorManikanta Maddireddy <mmaddireddy@nvidia.com>
Tue, 18 Jun 2019 18:02:02 +0000 (23:32 +0530)
committerThierry Reding <treding@nvidia.com>
Fri, 21 Jun 2019 14:04:52 +0000 (16:04 +0200)
Add PEX deep power down states as pinctrl properties to set in PCIe driver.
In Tegra210, BIAS pads are not in power down mode when clamps are applied.
To set the pads in DPD, pass the PEX DPD states as pinctrl properties to
PCIe driver.

Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210.dtsi

index ec762b3455b4dd9b3e1b186885d84e4b720dbe29..659753118e96f33f46ba20ea8d9424bbe1d00c6c 100644 (file)
                         <&tegra_car 72>,
                         <&tegra_car 74>;
                reset-names = "pex", "afi", "pcie_x";
+
+               pinctrl-names = "default", "idle";
+               pinctrl-0 = <&pex_dpd_disable>;
+               pinctrl-1 = <&pex_dpd_enable>;
+
                status = "disabled";
 
                pci@1,0 {
                        pins = "sdmmc3";
                        power-source = <TEGRA_IO_PAD_VOLTAGE_1V8>;
                };
+
+               pex_dpd_disable: pex_en {
+                       pex-dpd-disable {
+                               pins = "pex-bias", "pex-clk1", "pex-clk2";
+                               low-power-disable;
+                       };
+               };
+
+               pex_dpd_enable: pex_dis {
+                       pex-dpd-enable {
+                               pins = "pex-bias", "pex-clk1", "pex-clk2";
+                               low-power-enable;
+                       };
+               };
        };
 
        fuse@7000f800 {