From dc2e5b85a104f74563596bbc988faae05c31d5e4 Mon Sep 17 00:00:00 2001 From: Krishna Chaitanya Chundru Date: Fri, 7 Oct 2022 14:56:02 +0530 Subject: [PATCH] ARM: dts: msm: Add flag to know if APSS based l1ss-sleep is supported or not Some endpoints like NVMe D3cold transition is prohibited as it decreases the life time of the device (D3 cold is treated as power cycle). So turning off the link during S3 can reduce life span of the NVMe. For those endpoints adding a flag to inform the driver that APSS based l1ss-sleep is supported. The PCIe driver will keep the link in L1ss and turn off PCIe resources if this flag is set. Change-Id: I3682bda297181eb9f5b63cf817b05e37b160b3ce --- bindings/pci/pci-msm.txt | 5 +++++ qcom/kalamap-hdk.dtsi | 1 + qcom/kalamap-sg-hhg.dtsi | 1 + 3 files changed, 7 insertions(+) diff --git a/bindings/pci/pci-msm.txt b/bindings/pci/pci-msm.txt index 464a61b8..cdf1976c 100644 --- a/bindings/pci/pci-msm.txt +++ b/bindings/pci/pci-msm.txt @@ -265,6 +265,11 @@ interconnects: Value type: Definition: L1 sub-state (L1ss) is not supported +- qcom,apss-based-l1ss-sleep: + Usage: optional + Value type: + Definition: Apss based L1ss sleep is supported + - qcom,no-aux-clk-sync: Usage: optional Value type: diff --git a/qcom/kalamap-hdk.dtsi b/qcom/kalamap-hdk.dtsi index 56db337e..a2342d72 100644 --- a/qcom/kalamap-hdk.dtsi +++ b/qcom/kalamap-hdk.dtsi @@ -35,4 +35,5 @@ &pcie1 { qcom,boot-option = <0x2>; + qcom,apss-based-l1ss-sleep; }; diff --git a/qcom/kalamap-sg-hhg.dtsi b/qcom/kalamap-sg-hhg.dtsi index 8db68a41..1c231a2b 100644 --- a/qcom/kalamap-sg-hhg.dtsi +++ b/qcom/kalamap-sg-hhg.dtsi @@ -14,6 +14,7 @@ &pcie1 { vreg-3p3-supply = <&nvme_vreg>; qcom,boot-option = <0x2>; + qcom,apss-based-l1ss-sleep; }; ®ulator_ocp_notifier {