* [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670
2023-08-11 20:48 [PATCH 0/6] Add missing wakeup-parent to TLMM Konrad Dybcio
@ 2023-08-11 20:48 ` Konrad Dybcio
2023-08-14 19:27 ` Krzysztof Kozlowski
2023-08-17 18:04 ` Rob Herring
2023-08-11 20:48 ` [PATCH RFT 2/6] arm64: dts: qcom: sdm670: Add PDC Konrad Dybcio
` (5 subsequent siblings)
6 siblings, 2 replies; 11+ messages in thread
From: Konrad Dybcio @ 2023-08-11 20:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Thomas Gleixner, Marc Zyngier
Cc: Marijn Suijten, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio
Like all other RPMh-enabled SoCs, SDM670 includes a PDC. Document it.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml
index a106ba6e810b..4847b04be1a1 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml
@@ -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
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670
2023-08-11 20:48 ` [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670 Konrad Dybcio
@ 2023-08-14 19:27 ` Krzysztof Kozlowski
2023-08-17 18:04 ` Rob Herring
1 sibling, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2023-08-14 19:27 UTC (permalink / raw)
To: Konrad Dybcio, Andy Gross, Bjorn Andersson, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Thomas Gleixner, Marc Zyngier
Cc: Marijn Suijten, linux-arm-msm, devicetree, linux-kernel
On 11/08/2023 22:48, Konrad Dybcio wrote:
> Like all other RPMh-enabled SoCs, SDM670 includes a PDC. Document it.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670
2023-08-11 20:48 ` [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670 Konrad Dybcio
2023-08-14 19:27 ` Krzysztof Kozlowski
@ 2023-08-17 18:04 ` Rob Herring
1 sibling, 0 replies; 11+ messages in thread
From: Rob Herring @ 2023-08-17 18:04 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Marc Zyngier, Krzysztof Kozlowski, devicetree, Rob Herring,
linux-arm-msm, Bjorn Andersson, Andy Gross, Conor Dooley,
Marijn Suijten, linux-kernel, Thomas Gleixner
On Fri, 11 Aug 2023 22:48:34 +0200, Konrad Dybcio wrote:
> Like all other RPMh-enabled SoCs, SDM670 includes a PDC. Document it.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---
> Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml | 1 +
> 1 file changed, 1 insertion(+)
>
Applied, thanks!
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH RFT 2/6] arm64: dts: qcom: sdm670: Add PDC
2023-08-11 20:48 [PATCH 0/6] Add missing wakeup-parent to TLMM Konrad Dybcio
2023-08-11 20:48 ` [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670 Konrad Dybcio
@ 2023-08-11 20:48 ` Konrad Dybcio
2023-08-16 1:31 ` Richard Acayan
2023-08-11 20:48 ` [PATCH 3/6] arm64: dts: qcom: sc8280xp: Hook up PDC as wakeup-parent of TLMM Konrad Dybcio
` (4 subsequent siblings)
6 siblings, 1 reply; 11+ messages in thread
From: Konrad Dybcio @ 2023-08-11 20:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Thomas Gleixner, Marc Zyngier
Cc: Marijn Suijten, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio
Add support for the PDC to enable deep sleep wakeup from external sources.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/sdm670.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
index a1c207c0266d..da10f0a6d92e 100644
--- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
@@ -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>,
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH RFT 2/6] arm64: dts: qcom: sdm670: Add PDC
2023-08-11 20:48 ` [PATCH RFT 2/6] arm64: dts: qcom: sdm670: Add PDC Konrad Dybcio
@ 2023-08-16 1:31 ` Richard Acayan
0 siblings, 0 replies; 11+ messages in thread
From: Richard Acayan @ 2023-08-16 1:31 UTC (permalink / raw)
To: Konrad Dybcio
Cc: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Thomas Gleixner, Marc Zyngier, Marijn Suijten,
linux-arm-msm, devicetree, linux-kernel
On Fri, Aug 11, 2023 at 10:48:35PM +0200, Konrad Dybcio wrote:
> Add support for the PDC to enable deep sleep wakeup from external sources.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---
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.
> arch/arm64/boot/dts/qcom/sdm670.dtsi | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
> index a1c207c0266d..da10f0a6d92e 100644
> --- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
> @@ -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.
https://android.googlesource.com/kernel/msm/+/d8e93ac1450a783fc095f082b0e5324cedee2e75/drivers/irqchip/qcom/pdc-sdm670.c#108
> + #interrupt-cells = <2>;
> + interrupt-parent = <&intc>;
> + interrupt-controller;
> + };
> +
> spmi_bus: spmi@c440000 {
> compatible = "qcom,spmi-pmic-arb";
> reg = <0 0x0c440000 0 0x1100>,
>
> --
> 2.41.0
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 3/6] arm64: dts: qcom: sc8280xp: Hook up PDC as wakeup-parent of TLMM
2023-08-11 20:48 [PATCH 0/6] Add missing wakeup-parent to TLMM Konrad Dybcio
2023-08-11 20:48 ` [PATCH 1/6] dt-bindings: interrupt-controller: qcom,pdc: Add SDM670 Konrad Dybcio
2023-08-11 20:48 ` [PATCH RFT 2/6] arm64: dts: qcom: sdm670: Add PDC Konrad Dybcio
@ 2023-08-11 20:48 ` Konrad Dybcio
2023-08-11 20:48 ` [PATCH 4/6] arm64: dts: qcom: sa8775p: " Konrad Dybcio
` (3 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Konrad Dybcio @ 2023-08-11 20:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Thomas Gleixner, Marc Zyngier
Cc: Marijn Suijten, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio
Some TLMM pins are wakeup-capable. Describe the relationship between
these two peripherals to enable this functionality.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
index 0756b7c141ff..cad59af7ccef 100644
--- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi
@@ -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 {
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/6] arm64: dts: qcom: sa8775p: Hook up PDC as wakeup-parent of TLMM
2023-08-11 20:48 [PATCH 0/6] Add missing wakeup-parent to TLMM Konrad Dybcio
` (2 preceding siblings ...)
2023-08-11 20:48 ` [PATCH 3/6] arm64: dts: qcom: sc8280xp: Hook up PDC as wakeup-parent of TLMM Konrad Dybcio
@ 2023-08-11 20:48 ` Konrad Dybcio
2023-08-11 20:48 ` [PATCH 5/6] arm64: dts: qcom: sdm670: " Konrad Dybcio
` (2 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Konrad Dybcio @ 2023-08-11 20:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Thomas Gleixner, Marc Zyngier
Cc: Marijn Suijten, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio
Some TLMM pins are wakeup-capable. Describe the relationship between
these two peripherals to enable this functionality.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/sa8775p.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
index 7b55cb701472..830730c020ba 100644
--- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi
+++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi
@@ -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 {
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/6] arm64: dts: qcom: sdm670: Hook up PDC as wakeup-parent of TLMM
2023-08-11 20:48 [PATCH 0/6] Add missing wakeup-parent to TLMM Konrad Dybcio
` (3 preceding siblings ...)
2023-08-11 20:48 ` [PATCH 4/6] arm64: dts: qcom: sa8775p: " Konrad Dybcio
@ 2023-08-11 20:48 ` Konrad Dybcio
2023-08-11 20:48 ` [PATCH 6/6] arm64: dts: qcom: sm6350: " Konrad Dybcio
2023-08-15 18:49 ` (subset) [PATCH 0/6] Add missing wakeup-parent to TLMM Bjorn Andersson
6 siblings, 0 replies; 11+ messages in thread
From: Konrad Dybcio @ 2023-08-11 20:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Thomas Gleixner, Marc Zyngier
Cc: Marijn Suijten, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio
Some TLMM pins are wakeup-capable. Describe the relationship between
these two peripherals to enable this functionality.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/sdm670.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/qcom/sdm670.dtsi b/arch/arm64/boot/dts/qcom/sdm670.dtsi
index da10f0a6d92e..a2354fe94d98 100644
--- a/arch/arm64/boot/dts/qcom/sdm670.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm670.dtsi
@@ -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";
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 6/6] arm64: dts: qcom: sm6350: Hook up PDC as wakeup-parent of TLMM
2023-08-11 20:48 [PATCH 0/6] Add missing wakeup-parent to TLMM Konrad Dybcio
` (4 preceding siblings ...)
2023-08-11 20:48 ` [PATCH 5/6] arm64: dts: qcom: sdm670: " Konrad Dybcio
@ 2023-08-11 20:48 ` Konrad Dybcio
2023-08-15 18:49 ` (subset) [PATCH 0/6] Add missing wakeup-parent to TLMM Bjorn Andersson
6 siblings, 0 replies; 11+ messages in thread
From: Konrad Dybcio @ 2023-08-11 20:48 UTC (permalink / raw)
To: Andy Gross, Bjorn Andersson, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Thomas Gleixner, Marc Zyngier
Cc: Marijn Suijten, linux-arm-msm, devicetree, linux-kernel,
Konrad Dybcio
Some TLMM pins are wakeup-capable. Describe the relationship between
these two peripherals to enable this functionality.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
arch/arm64/boot/dts/qcom/sm6350.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi
index 8f66306d1de3..8fd6f4d03490 100644
--- a/arch/arm64/boot/dts/qcom/sm6350.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi
@@ -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";
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: (subset) [PATCH 0/6] Add missing wakeup-parent to TLMM
2023-08-11 20:48 [PATCH 0/6] Add missing wakeup-parent to TLMM Konrad Dybcio
` (5 preceding siblings ...)
2023-08-11 20:48 ` [PATCH 6/6] arm64: dts: qcom: sm6350: " Konrad Dybcio
@ 2023-08-15 18:49 ` Bjorn Andersson
6 siblings, 0 replies; 11+ messages in thread
From: Bjorn Andersson @ 2023-08-15 18:49 UTC (permalink / raw)
To: Andy Gross, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Thomas Gleixner, Marc Zyngier, Konrad Dybcio
Cc: Marijn Suijten, linux-arm-msm, devicetree, linux-kernel
On Fri, 11 Aug 2023 22:48:33 +0200, Konrad Dybcio wrote:
> 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: 902824035fa5f2d2e9d20937cec331cbe52a1ab4
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 11+ messages in thread