arm64: dts: qcom: Fix wake-gpios polarity
v2 cover arm64: dts: qcom: Fix wake-gpios polarity
PCIe wake is active low signal as per the PCIe base spec, Several Qualcomm platform devicetrees incorrectly describe wake-gpios as GPIO_ACTIVE_HIGH.
This series fixes the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
Tested on Talos Ride & lemans evk platform.
No Fixes tag is added as no functional issue has been observed.
---
Changes in v2:
- Seperate out the wake patches (Mani)
- there is messup in previous versions instead of sending as v3, I sent
it as v1, to avoid confusion I tried to carry version from the previous version.
- Link to v1: https://patch.msgid.link/[email protected]
Changes in v3:
- Rebased the code
- keep phy property in between bus-range and address-cells (Konrad)
- Link to v2: https://lore.kernel.org/all/[email protected]/
Changes in v2:
- Move phy, perst & wake properties to the root port node.
- Rebased the code
- Link to v1: https://patch.msgid.link/[email protected]
To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
Krishna Chaitanya Chundru (18):
ARM: dts: qcom: sdx55: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: msm8996: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sdm845: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sc8180x: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sm8150: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sm8250: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sm8350: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sm8450: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sm8550: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sm8650: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sm8750: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: kaanapali: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sar2130p: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: monaco: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: lemans: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: talos: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: sa8540p-ride: Fix PCIe WAKE# GPIO polarity
arm64: dts: qcom: kodiak: Fix PCIe WAKE# GPIO polarity
arch/arm/boot/dts/qcom/qcom-sdx55-t55.dts | 2 +- arch/arm64/boot/dts/qcom/kaanapali-mtp.dts | 2 +- arch/arm64/boot/dts/qcom/lemans-evk.dts | 4 ++-- arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/monaco-evk.dts | 4 ++-- arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi | 2 +- arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi | 2 +- arch/arm64/boot/dts/qcom/qcm6490-particle-tachyon.dts | 3 ++- arch/arm64/boot/dts/qcom/qcs615-ride.dts | 2 +- arch/arm64/boot/dts/qcom/qcs6490-radxa-dragon-q6a.dts | 4 ++-- arch/arm64/boot/dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts | 4 ++-- arch/arm64/boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts | 2 +- arch/arm64/boot/dts/qcom/qcs6490-vicharak-axon-mini.dts | 4 ++-- arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 4 ++-- arch/arm64/boot/dts/qcom/qcs8550-aim300.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts | 4 ++-- arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 4 ++-- arch/arm64/boot/dts/qcom/sar2130p-qar2130p.dts | 2 +- arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 2 +- arch/arm64/boot/dts/qcom/sc8180x-primus.dts | 2 +- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 2 +- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- arch/arm64/boot/dts/qcom/sm8250.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8450.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/sm8550-hdk.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 2 +- arch/arm64/boot/dts/qcom/sm8550-samsung-q5q.dts | 2 +- arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts | 2 +- arch/arm64/boot/dts/qcom/sm8650-ayaneo-pocket-s2.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8650-hdk.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 2 +- arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 2 +- arch/arm64/boot/dts/qcom/talos-evk-som.dtsi | 2 +- 36 files changed, 56 insertions(+), 55 deletions(-)
---
base-commit: 50d05c7c76c96b90462f24debacca971d2e86713
change-id: 20260910-root_port-8237b5931fcc
Best regards,
Signature · 1 line
Krishna Chaitanya Chundru <[email protected]>
PATCH v2 1/18 ARM: dts: qcom: sdx55: Fix PCIe WAKE# GPIO polarity
The PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm/boot/dts/qcom/qcom-sdx55-t55.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom/qcom-sdx55-t55.dts +1 -1
@@ -249,7 +249,7 @@ &pcie_phy { &pcie_rc { perst-gpios = <&tlmm 57 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 53 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie_default>; pinctrl-names = "default";
Signature · 1 line
2.34.1
PATCH v2 2/18 arm64: dts: qcom: msm8996: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi | 2 +- arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/msm8996-sony-xperia-tone.dtsi +1 -1
@@ -192,7 +192,7 @@ &mmcc { &pcie0 { perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; vddpe-3v3-supply = <&wlan_en>; vdda-supply = <&pm8994_l28>; status = "okay";
arch/arm64/boot/dts/qcom/msm8996-xiaomi-common.dtsi +1 -1
@@ -280,7 +280,7 @@ &pcie0 { vdda-supply = <&vreg_l28a_0p925>; perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; }; &pcie_phy {
Signature · 1 line
2.34.1
PATCH v2 3/18 arm64: dts: qcom: sdm845: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845-db845c.dts +1 -1
@@ -619,7 +619,7 @@ &mss_pil { &pcie0 { status = "okay"; perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 134 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 134 GPIO_ACTIVE_LOW>; vddpe-3v3-supply = <&pcie0_3p3v_dual>;
Signature · 1 line
2.34.1
PATCH v2 4/18 arm64: dts: qcom: sc8180x: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts | 2 +- arch/arm64/boot/dts/qcom/sc8180x-primus.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sc8180x-lenovo-flex-5g.dts +1 -1
@@ -492,7 +492,7 @@ &mdss_edp_out { &pcie3 { perst-gpios = <&tlmm 178 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 180 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 180 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie3_default_state>; pinctrl-names = "default";
arch/arm64/boot/dts/qcom/sc8180x-primus.dts +1 -1
@@ -593,7 +593,7 @@ &mdss_edp_out { &pcie1 { perst-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 177 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 177 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie2_default_state>;
Signature · 1 line
2.34.1
PATCH v2 5/18 arm64: dts: qcom: sm8150: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8150.dtsi +1 -1
@@ -1905,7 +1905,7 @@ pcie0: pcie@1c00000 { phy-names = "pciephy"; perst-gpios = <&tlmm 35 GPIO_ACTIVE_HIGH>; - wake-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie0_default_state>;
Signature · 1 line
2.34.1
PATCH v2 6/18 arm64: dts: qcom: sm8250: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sm8250.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/qcom/sm8250.dtsi +3 -3
@@ -2211,7 +2211,7 @@ pcie0: pcie@1c00000 { phy-names = "pciephy"; perst-gpios = <&tlmm 79 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 81 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie0_default_state>;
@@ -2338,7 +2338,7 @@ pcie1: pcie@1c08000 { phy-names = "pciephy"; perst-gpios = <&tlmm 82 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 84 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 84 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie1_default_state>;
@@ -2465,7 +2465,7 @@ pcie2: pcie@1c10000 { phy-names = "pciephy"; perst-gpios = <&tlmm 85 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 87 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 87 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie2_default_state>;
Signature · 1 line
2.34.1
PATCH v2 7/18 arm64: dts: qcom: sm8350: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sm8350-hdk.dts +2 -2
@@ -500,7 +500,7 @@ &pcie0 { pinctrl-0 = <&pcie0_default_state>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; status = "okay"; };
@@ -514,7 +514,7 @@ &pcie0_phy { &pcie1 { perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie1_default_state>;
Signature · 1 line
2.34.1
PATCH v2 8/18 arm64: dts: qcom: sm8450: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sm8450.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sm8450.dtsi +2 -2
@@ -2021,7 +2021,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, phy-names = "pciephy"; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie0_default_state>;
@@ -2186,7 +2186,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, phy-names = "pciephy"; perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie1_default_state>;
Signature · 1 line
2.34.1
PATCH v2 9/18 arm64: dts: qcom: sm8550: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/qcs8550-aim300.dtsi | 4 ++-- arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8550-hdk.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 2 +- arch/arm64/boot/dts/qcom/sm8550-samsung-q5q.dts | 2 +- arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-)
arch/arm64/boot/dts/qcom/qcs8550-aim300.dtsi +2 -2
@@ -336,7 +336,7 @@ &mdss_dsi0_phy { &pcie0 { perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>; pinctrl-names = "default";
@@ -349,7 +349,7 @@ &pcie0_phy { &pcie1 { perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie1_default_state>; pinctrl-names = "default";
arch/arm64/boot/dts/qcom/qcs8550-rb5gen2.dts +2 -2
@@ -1045,7 +1045,7 @@ &mdss_dp0 { &pcie0 { vddpe-3v3-supply = <&pcie_upd_3p3>; - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>;
@@ -1146,7 +1146,7 @@ pci@0,1 { }; &pcie1 { - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie1_default_state>;
arch/arm64/boot/dts/qcom/sm8550-hdk.dts +2 -2
@@ -1087,7 +1087,7 @@ &mdss_dp0 { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>;
@@ -1121,7 +1121,7 @@ &pcie0_phy { }; &pcie1 { - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie1_default_state>;
arch/arm64/boot/dts/qcom/sm8550-mtp.dts +2 -2
@@ -739,7 +739,7 @@ &mdss_dp0 { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-names = "default";
@@ -756,7 +756,7 @@ &pcie0_phy { }; &pcie1 { - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; pinctrl-names = "default";
arch/arm64/boot/dts/qcom/sm8550-qrd.dts +1 -1
@@ -987,7 +987,7 @@ &mdss_dp0 { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>;
arch/arm64/boot/dts/qcom/sm8550-samsung-q5q.dts +1 -1
@@ -510,7 +510,7 @@ &i2c_master_hub_0 { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>; pinctrl-names = "default";
arch/arm64/boot/dts/qcom/sm8550-sony-xperia-yodo-pdx234.dts +1 -1
@@ -584,7 +584,7 @@ cirrus,gpio-ctrl2 { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>;
Signature · 1 line
2.34.1
PATCH v2 10/18 arm64: dts: qcom: sm8650: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sm8650-ayaneo-pocket-s2.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8650-hdk.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-)
arch/arm64/boot/dts/qcom/sm8650-ayaneo-pocket-s2.dts +2 -2
@@ -1074,7 +1074,7 @@ &mdss_dp0_out { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>;
@@ -1108,7 +1108,7 @@ &pcie0_phy { }; &pcie1 { - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie1_default_state>;
arch/arm64/boot/dts/qcom/sm8650-hdk.dts +2 -2
@@ -1027,7 +1027,7 @@ &mdss_dp0 { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>;
@@ -1061,7 +1061,7 @@ &pcie0_phy { }; &pcie1 { - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie1_default_state>;
arch/arm64/boot/dts/qcom/sm8650-mtp.dts +2 -2
@@ -642,7 +642,7 @@ &mdss_dsi0_phy { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>;
@@ -659,7 +659,7 @@ &pcie0_phy { }; &pcie1 { - wake-gpios = <&tlmm 99 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie1_default_state>;
arch/arm64/boot/dts/qcom/sm8650-qrd.dts +1 -1
@@ -1021,7 +1021,7 @@ &mdss_dp0 { }; &pcie0 { - wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 96 GPIO_ACTIVE_LOW>; perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>;
Signature · 1 line
2.34.1
PATCH v2 11/18 arm64: dts: qcom: sm8750: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sm8750-mtp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8750-mtp.dts +1 -1
@@ -1119,7 +1119,7 @@ &pcie0_phy { }; &pcieport0 { - wake-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 104 GPIO_ACTIVE_LOW>; reset-gpios = <&tlmm 102 GPIO_ACTIVE_LOW>; wifi@0 {
Signature · 1 line
2.34.1
PATCH v2 12/18 arm64: dts: qcom: kaanapali: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/kaanapali-mtp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/kaanapali-mtp.dts +1 -1
@@ -976,7 +976,7 @@ &pcie0_phy { }; &pcie_port0 { - wake-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 104 GPIO_ACTIVE_LOW>; reset-gpios = <&tlmm 102 GPIO_ACTIVE_LOW>; wifi@0 {
Signature · 1 line
2.34.1
PATCH v2 13/18 arm64: dts: qcom: sar2130p: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sar2130p-qar2130p.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sar2130p-qar2130p.dts +1 -1
@@ -358,7 +358,7 @@ &i2c10 { &pcie0 { perst-gpios = <&tlmm 55 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 57 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>; pinctrl-names = "default";
Signature · 1 line
2.34.1
PATCH v2 14/18 arm64: dts: qcom: monaco: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/monaco-evk.dts | 4 ++-- arch/arm64/boot/dts/qcom/qcs8300-ride.dts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/qcom/monaco-evk.dts +2 -2
@@ -643,12 +643,12 @@ &pcie1_phy { &pcieport0 { reset-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 0 GPIO_ACTIVE_LOW>; }; &pcieport1 { reset-gpios = <&tlmm 23 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 21 GPIO_ACTIVE_LOW>; }; &pmm8620au_0_gpios {
arch/arm64/boot/dts/qcom/qcs8300-ride.dts +2 -2
@@ -615,7 +615,7 @@ &pcie0 { &pcieport0 { reset-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 0 GPIO_ACTIVE_LOW>; wifi@0 { compatible = "pci17cb,1103";
@@ -651,7 +651,7 @@ &pcie1 { &pcieport1 { reset-gpios = <&tlmm 23 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 21 GPIO_ACTIVE_LOW>; }; &pcie1_phy {
Signature · 1 line
2.34.1
PATCH v2 15/18 arm64: dts: qcom: lemans: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/lemans-evk.dts | 4 ++-- arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/qcom/lemans-evk.dts +2 -2
@@ -840,7 +840,7 @@ &mdss0_dp1_phy { &pcie0 { perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 0 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_default_state>; pinctrl-names = "default";
@@ -857,7 +857,7 @@ &pcie0_phy { &pcie1 { perst-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 5 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie1_default_state>; pinctrl-names = "default";
arch/arm64/boot/dts/qcom/lemans-ride-common.dtsi +2 -2
@@ -962,7 +962,7 @@ wake-pins { &pcie0 { perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 0 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie0_default_state>;
@@ -972,7 +972,7 @@ &pcie0 { &pcie1 { perst-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 5 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&pcie1_default_state>;
Signature · 1 line
2.34.1
PATCH v2 16/18 arm64: dts: qcom: talos: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/qcs615-ride.dts | 2 +- arch/arm64/boot/dts/qcom/talos-evk-som.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/qcs615-ride.dts +1 -1
@@ -445,7 +445,7 @@ &mdss_dsi0_phy { &pcie { perst-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 100 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie_default_state>; pinctrl-names = "default";
arch/arm64/boot/dts/qcom/talos-evk-som.dtsi +1 -1
@@ -367,7 +367,7 @@ &mdss_dsi0_phy { &pcie { perst-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 100 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie_default_state>; pinctrl-names = "default";
Signature · 1 line
2.34.1
PATCH v2 17/18 arm64: dts: qcom: sa8540p-ride: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/qcom/sa8540p-ride.dts +2 -2
@@ -374,7 +374,7 @@ &pcie2a { &pcie2a_port0 { reset-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 145 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>; }; &pcie2a_phy {
@@ -397,7 +397,7 @@ &pcie3a { &pcie3a_port0 { reset-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 56 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 56 GPIO_ACTIVE_LOW>; }; &pcie3a_phy {
Signature · 1 line
2.34.1
PATCH v2 18/18 arm64: dts: qcom: kodiak: Fix PCIe WAKE# GPIO polarity
In reply to Krishna Chaitanya ChundruThe PCIe WAKE# signal is active-low as defined in the PCIe Base Specification. Fix the wake-gpios polarity by using GPIO_ACTIVE_LOW instead of GPIO_ACTIVE_HIGH.
--- arch/arm64/boot/dts/qcom/qcm6490-particle-tachyon.dts | 3 ++- arch/arm64/boot/dts/qcom/qcs6490-radxa-dragon-q6a.dts | 4 ++-- arch/arm64/boot/dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts | 4 ++-- arch/arm64/boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts | 2 +- arch/arm64/boot/dts/qcom/qcs6490-vicharak-axon-mini.dts | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/qcom/qcm6490-particle-tachyon.dts +2 -1
@@ -558,7 +558,7 @@ &pcie0_phy { &pcie0_port { reset-gpios = <&tlmm 87 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; }; &pcie1 {
@@ -579,6 +579,7 @@ &pcie1_phy { &pcie1_port0 { reset-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; }; &pmk8350_adc_tm {
arch/arm64/boot/dts/qcom/qcs6490-radxa-dragon-q6a.dts +2 -2
@@ -541,7 +541,7 @@ &pcie0_phy { &pcie0_port { reset-gpios = <&tlmm 87 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; }; &pcie1 {
@@ -571,7 +571,7 @@ &pcie1_phy { &pcie1_port0 { reset-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; }; &pm7325_gpios {
arch/arm64/boot/dts/qcom/qcs6490-thundercomm-minipc-g1iot.dts +2 -2
@@ -705,7 +705,7 @@ &pcie0_phy { &pcie0_port { reset-gpios = <&tlmm 87 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; }; &pcie1 {
@@ -736,7 +736,7 @@ &pcie1_phy { &pcie1_port0 { reset-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; pcie@0,0 { compatible = "pci1179,0623";
arch/arm64/boot/dts/qcom/qcs6490-thundercomm-rubikpi3.dts +1 -1
@@ -833,7 +833,7 @@ &pcie0_phy { &pcie0_port { reset-gpios = <&tlmm 87 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; }; &pcie1 {
arch/arm64/boot/dts/qcom/qcs6490-vicharak-axon-mini.dts +2 -2
@@ -653,7 +653,7 @@ &ice { &pcie0 { perst-gpios = <&tlmm 87 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 89 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 89 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie0_clkreq_n>, <&pcie0_reset_n>, <&pcie0_wake_n>; pinctrl-names = "default";
@@ -670,7 +670,7 @@ &pcie0_phy { &pcie1 { perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; - wake-gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; + wake-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; pinctrl-0 = <&pcie1_reset_n>, <&pcie1_wake_n>, <&pcie1_clkreq_n>; pinctrl-names = "default";
Signature · 1 line
2.34.1
[email protected]
AI reviewRe: [PATCH v2 18/18] arm64: dts: qcom: kodiak: Fix PCIe WAKE# GPIO polarity
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] dts: undocumented addition of wake-gpios property to pcie1_port0 --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: undocumented addition of wake-gpios property to pcie1_port0 --
commit 6e97f1471613f8cea666aa46eb12ba3627dc0138
Author: Krishna Chaitanya Chundru <[email protected]>
arm64: dts: qcom: kodiak: Fix PCIe WAKE# GPIO polarity
This commit updates the polarity of the PCIe WAKE# GPIO across several Qualcomm device trees to match the active-low requirement defined in the PCIe Base Specification.
Quoted 4 lines
arch/arm64/boot/dts/qcom/qcm6490-particle-tachyon.dts +0
-0
[ ... ]
arch/arm64/boot/dts/qcom/qcm6490-particle-tachyon.dts &pcie1_phy { · line 583
Quoted 6 lines
arch/arm64/boot/dts/qcom/qcm6490-particle-tachyon.dts +1
-0@@ -579,6 +579,7 @@ &pcie1_phy { &pcie1_port0 { reset-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; };
[Severity: Medium]
The commit message states the intent is to fix the polarity of existing wake-gpios properties by changing GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW. However, for &pcie1_port0 in this file, the wake-gpios property did not exist previously and is being newly added.
Is this an accidental inclusion, or should the commit message be updated to clarify that wake functionality is also being added for pcie1_port0 on this board?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=18
Re: (subset) [PATCH v2 00/18] arm64: dts: qcom: Fix wake-gpios polarity
In reply to Krishna Chaitanya ChundruQuoted 9 lines · Krishna Chaitanya Chundru
PCIe wake is active low signal as per the PCIe base spec, Several Qualcomm platform devicetrees incorrectly describe wake-gpios as
GPIO_ACTIVE_HIGH.This series fixes the wake-gpios polarity by using
GPIO_ACTIVE_LOWinstead ofGPIO_ACTIVE_HIGH.Tested on Talos Ride & lemans evk platform.
[...]
Applied, thanks!
[15/18] arm64: dts: qcom: lemans: Fix PCIe WAKE# GPIO polarity
commit: cd8d4803bba672a4d03ce508fc9d2c459eb85c55
[16/18] arm64: dts: qcom: talos: Fix PCIe WAKE# GPIO polarity
commit: e622c5d6553b8a83af04115c87f006406baf2675
[17/18] arm64: dts: qcom: sa8540p-ride: Fix PCIe WAKE# GPIO polarity
commit: 450a0bfdb1b66da50ef98eefe1ff45b7be21e9a7
[18/18] arm64: dts: qcom: kodiak: Fix PCIe WAKE# GPIO polarity
commit: b2b980536b5a4a5420175dfbef7f481408761b7bBest regards,
Signature · 1 line
Bjorn Andersson <[email protected]>