From 6fbd43ca569540198fde248799541d771a7fc42a Mon Sep 17 00:00:00 2001 From: Paras Sharma Date: Mon, 20 Feb 2023 16:54:25 +0530 Subject: [PATCH] ARM: dts: msm: Add a flag to support card presence pin Some endpoints like SDExpress cards have the GPIO to notify the host when card is removed. Introducing this flag for such endpoints. When this flag is present, PCIe driver will use this flag while dumping registers at the time of linkdown. If card removal causes linkdown, PCIe driver will not dump the PCIe registers else it will. Change-Id: I4e5870dbf2190501d96e7d7ed6feb0c1f72b7ded --- bindings/pci/pci-msm.txt | 1 + qcom/anorak-pcie.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/bindings/pci/pci-msm.txt b/bindings/pci/pci-msm.txt index ae499a68..28dbdcb3 100644 --- a/bindings/pci/pci-msm.txt +++ b/bindings/pci/pci-msm.txt @@ -102,6 +102,7 @@ Main node - "perst-gpio" PCIe reset signal line - "wake-gpio" PCIe wake signal line - "qcom,ep-gpio" (opt) PCIe endpoint specific signal line + - "card-presence-pin" Device presence detect signal line - pinctrl-names: Usage: required diff --git a/qcom/anorak-pcie.dtsi b/qcom/anorak-pcie.dtsi index 6def54bf..02065c03 100644 --- a/qcom/anorak-pcie.dtsi +++ b/qcom/anorak-pcie.dtsi @@ -571,6 +571,7 @@ msi-parent = <&pcie2_msi>; perst-gpio = <&tlmm 170 GPIO_ACTIVE_HIGH>; + card-presence-pin = <&tlmm 172 GPIO_ACTIVE_HIGH>; pinctrl-names = "default", "sleep"; pinctrl-0 = <&pcie2_perst_default>; pinctrl-1 = <&pcie2_perst_default>;