Add missing wakeup-parent to TLMM
cover Add missing wakeup-parent to TLMM
Some TLMM pins are wakeup-capable, but not all platforms described that.
While MPM is not yet hooked up, PDC platforms can and should utilize this functionality. This series attempts to do so. As part of it, I had to add PDC support to SDM670, as it apparently hasn't been introduced yet.
---
Konrad Dybcio (6):
dt-bindings: interrupt-controller: qcom,pdc: Add SDM670 [RFT] arm64: dts: qcom: sdm670: Add PDC
arm64: dts: qcom: sc8280xp: Hook up PDC as wakeup-parent of TLMM
arm64: dts: qcom: sa8775p: Hook up PDC as wakeup-parent of TLMM
arm64: dts: qcom: sdm670: Hook up PDC as wakeup-parent of TLMM
arm64: dts: qcom: sm6350: Hook up PDC as wakeup-parent of TLMM
.../devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 + arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 + arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 1 + arch/arm64/boot/dts/qcom/sdm670.dtsi | 11 +++++++++++ arch/arm64/boot/dts/qcom/sm6350.dtsi | 1 + 5 files changed, 15 insertions(+)
---
base-commit: 21ef7b1e17d039053edaeaf41142423810572741
change-id: 20230811-topic-tlmm_wakeup-e7536d56007b
Best regards,
Signature · 1 line
Konrad Dybcio <[email protected]>
PATCH 1/6 dt-bindings: interrupt-controller: qcom,pdc: Add SDM670
Like all other RPMh-enabled SoCs, SDM670 includes a PDC. Document it.
--- Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml +1 -0
@@ -31,6 +31,7 @@ properties: - qcom,sc7180-pdc - qcom,sc7280-pdc - qcom,sc8280xp-pdc + - qcom,sdm670-pdc - qcom,sdm845-pdc - qcom,sdx55-pdc - qcom,sdx65-pdc
Signature · 1 line
2.41.0
Re: [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670
Quoted 3 lines · Konrad Dybcio
Like all other RPMh-enabled SoCs, SDM670 includes a PDC. Document it.
Signed-off-by Konrad Dybcio <[email protected]>
Best regards,
Krzysztof
Re: [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670
In reply to Konrad DybcioQuoted 7 lines · Konrad Dybcio
Like all other RPMh-enabled SoCs, SDM670 includes a PDC. Document it.
Signed-off-by Konrad Dybcio <[email protected]>--- Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 + 1 file changed, 1 insertion(+)
Applied, thanks!
PATCH 2/6 arm64: dts: qcom: sdm670: Add PDC
In reply to Konrad DybcioAdd support for the PDC to enable deep sleep wakeup from external sources.
--- arch/arm64/boot/dts/qcom/sdm670.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm64/boot/dts/qcom/sdm670.dtsi +10 -0
@@ -1169,6 +1169,16 @@ usb_1_dwc3: usb@a600000 { }; }; + pdc: interrupt-controller@b220000 { + compatible = "qcom,sdm670-pdc", "qcom,pdc"; + reg = <0 0x0b220000 0 0x30000>; + qcom,pdc-ranges = <0 480 40>, <41 521 7>, <49 529 4>, + <54 534 24>, <79 559 30>, <115 630 7>; + #interrupt-cells = <2>; + interrupt-parent = <&intc>; + interrupt-controller; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0 0x0c440000 0 0x1100>,
Signature · 1 line
2.41.0
Re: [PATCH RFT 2/6] arm64: dts: qcom: sdm670: Add PDC
Quoted 4 lines · Konrad Dybcio
Add support for the PDC to enable deep sleep wakeup from external sources.
Signed-off-by Konrad Dybcio <[email protected]>---
Apologies for not testing this. I am not subscribed to the mailing list and just found this patch. You may CC me or ping me on #linux-msm if you want anything tested on SDM670 hardware.
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm670.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)arch/arm64/boot/dts/qcom/sdm670.dtsi +0
-0
arch/arm64/boot/dts/qcom/sdm670.dtsi usb_1_dwc3: usb@a600000 { · line 1176
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm670.dtsi +5
-0@@ -1169,6 +1169,16 @@ usb_1_dwc3: usb@a600000 { }; }; + pdc: interrupt-controller@b220000 { + compatible = "qcom,sdm670-pdc", "qcom,pdc"; + reg = <0 0x0b220000 0 0x30000>; + qcom,pdc-ranges = <0 480 40>, <41 521 7>, <49 529 4>, + <54 534 24>, <79 559 30>, <115 630 7>;
The <79 559 30> range is not continuous, just like on SDM845. While PDC interrupt 93 is on hwirq 573, PDC interrupt 94 is on hwirq 609.
Another patch is needed to fix this because this was already applied. This does not cause a regression, though, because the pinctrl driver has no wakeirq map yet.
Quoted 12 lines
arch/arm64/boot/dts/qcom/sdm670.dtsi +5
-0+ #interrupt-cells = <2>; + interrupt-parent = <&intc>; + interrupt-controller; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0 0x0c440000 0 0x1100>,Signature · 2 lines
-- 2.41.0
PATCH 3/6 arm64: dts: qcom: sc8280xp: Hook up PDC as wakeup-parent of TLMM
In reply to Konrad DybcioSome TLMM pins are wakeup-capable. Describe the relationship between these two peripherals to enable this functionality.
--- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sc8280xp.dtsi +1 -0
@@ -4059,6 +4059,7 @@ tlmm: pinctrl@f100000 { interrupt-controller; #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 230>; + wakeup-parent = <&pdc>; }; apps_smmu: iommu@15000000 {
Signature · 1 line
2.41.0
PATCH 4/6 arm64: dts: qcom: sa8775p: Hook up PDC as wakeup-parent of TLMM
In reply to Konrad DybcioSome TLMM pins are wakeup-capable. Describe the relationship between these two peripherals to enable this functionality.
--- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sa8775p.dtsi +1 -0
@@ -1934,6 +1934,7 @@ tlmm: pinctrl@f000000 { interrupt-controller; #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 149>; + wakeup-parent = <&pdc>; }; apps_smmu: iommu@15000000 {
Signature · 1 line
2.41.0
PATCH 5/6 arm64: dts: qcom: sdm670: Hook up PDC as wakeup-parent of TLMM
In reply to Konrad DybcioSome TLMM pins are wakeup-capable. Describe the relationship between these two peripherals to enable this functionality.
--- arch/arm64/boot/dts/qcom/sdm670.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sdm670.dtsi +1 -0
@@ -969,6 +969,7 @@ tlmm: pinctrl@3400000 { interrupt-controller; #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 151>; + wakeup-parent = <&pdc>; qup_i2c0_default: qup-i2c0-default-state { pins = "gpio0", "gpio1";
Signature · 1 line
2.41.0
PATCH 6/6 arm64: dts: qcom: sm6350: Hook up PDC as wakeup-parent of TLMM
In reply to Konrad DybcioSome TLMM pins are wakeup-capable. Describe the relationship between these two peripherals to enable this functionality.
--- arch/arm64/boot/dts/qcom/sm6350.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/sm6350.dtsi +1 -0
@@ -2261,6 +2261,7 @@ tlmm: pinctrl@f100000 { interrupt-controller; #interrupt-cells = <2>; gpio-ranges = <&tlmm 0 0 157>; + wakeup-parent = <&pdc>; cci0_default: cci0-default-state { pins = "gpio39", "gpio40";
Signature · 1 line
2.41.0
Re: (subset) [PATCH 0/6] Add missing wakeup-parent to TLMM
In reply to Konrad DybcioQuoted 8 lines · Konrad Dybcio
Some TLMM pins are wakeup-capable, but not all platforms described that.
While MPM is not yet hooked up, PDC platforms can and should utilize this functionality. This series attempts to do so. As part of it, I had to add PDC support to SDM670, as it apparently hasn't been introduced yet.
[...]
Applied, thanks!
[2/6] arm64: dts: qcom: sdm670: Add PDC
commit: b51ee205dc4f21ca26dd8ca6e17a1580e14f57c5
[3/6] arm64: dts: qcom: sc8280xp: Hook up PDC as wakeup-parent of TLMM
commit: 57ff519a644cb5be33b28b7848ddde648a60d262
[4/6] arm64: dts: qcom: sa8775p: Hook up PDC as wakeup-parent of TLMM
commit: a74883a0de4ecee0c5a07ec732dd75acedb57723
[5/6] arm64: dts: qcom: sdm670: Hook up PDC as wakeup-parent of TLMM
commit: 71f080633d1ee1233759484d790e86847d2434a5
[6/6] arm64: dts: qcom: sm6350: Hook up PDC as wakeup-parent of TLMM
commit: 902824035fa5f2d2e9d20937cec331cbe52a1ab4Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>