* [PATCH 0/2] Add rpmhpd power domains for QCS8300
@ 2024-09-20 3:39 Tingguo Cheng
2024-09-20 3:39 ` [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains Tingguo Cheng
2024-09-20 3:39 ` [PATCH 2/2] pmdomain: qcom: rpmhpd: Add qcs8300 " Tingguo Cheng
0 siblings, 2 replies; 5+ messages in thread
From: Tingguo Cheng @ 2024-09-20 3:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Ulf Hansson
Cc: kernel, linux-arm-msm, devicetree, linux-kernel, linux-pm,
quic_fenglinw, quic_tingweiz, Tingguo Cheng, Shazad Hussain
Document the qcom,qcs8300-rpmhpd compatible and add power domains in
rpmhpd driver to support QCS8300.
Signed-off-by: Tingguo Cheng <quic_tingguoc@quicinc.com>
---
Tingguo Cheng (2):
dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains
pmdomain: qcom: rpmhpd: Add qcs8300 power domains
.../devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
drivers/pmdomain/qcom/rpmhpd.c | 24 ++++++++++++++++++++++
2 files changed, 25 insertions(+)
---
base-commit: 3621a2c9142bd490af0666c0c02d52d60ce0d2a5
change-id: 20240920-add_qcs8300_powerdomains_driver_support-64ee80cd85c5
Best regards,
--
Tingguo Cheng <quic_tingguoc@quicinc.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains
2024-09-20 3:39 [PATCH 0/2] Add rpmhpd power domains for QCS8300 Tingguo Cheng
@ 2024-09-20 3:39 ` Tingguo Cheng
2024-09-20 13:12 ` Krzysztof Kozlowski
2024-09-20 3:39 ` [PATCH 2/2] pmdomain: qcom: rpmhpd: Add qcs8300 " Tingguo Cheng
1 sibling, 1 reply; 5+ messages in thread
From: Tingguo Cheng @ 2024-09-20 3:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Ulf Hansson
Cc: kernel, linux-arm-msm, devicetree, linux-kernel, linux-pm,
quic_fenglinw, quic_tingweiz, Tingguo Cheng
Add compatible string for the RPMh power domains on qcs8300 platform.
Signed-off-by: Tingguo Cheng <quic_tingguoc@quicinc.com>
---
Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index 929b7ef9c1bcdae8194adfdfd6114573ab4d59cd..be1a9cb71a9babf007bc43f230a04401cd26a6b6 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -32,6 +32,7 @@ properties:
- qcom,msm8998-rpmpd
- qcom,qcm2290-rpmpd
- qcom,qcs404-rpmpd
+ - qcom,qcs8300-rpmhpd
- qcom,qdu1000-rpmhpd
- qcom,qm215-rpmpd
- qcom,sa8155p-rpmhpd
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] pmdomain: qcom: rpmhpd: Add qcs8300 power domains
2024-09-20 3:39 [PATCH 0/2] Add rpmhpd power domains for QCS8300 Tingguo Cheng
2024-09-20 3:39 ` [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains Tingguo Cheng
@ 2024-09-20 3:39 ` Tingguo Cheng
1 sibling, 0 replies; 5+ messages in thread
From: Tingguo Cheng @ 2024-09-20 3:39 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson,
Ulf Hansson
Cc: kernel, linux-arm-msm, devicetree, linux-kernel, linux-pm,
quic_fenglinw, quic_tingweiz, Tingguo Cheng, Shazad Hussain
Add support for the power domains exposed by RPMh on the qcs8300
platform. MMCX depends on CX, so mark CX as the parent of MMCX.
Co-developed-by: Shazad Hussain <quic_shazhuss@quicinc.com>
Signed-off-by: Shazad Hussain <quic_shazhuss@quicinc.com>
Signed-off-by: Tingguo Cheng <quic_tingguoc@quicinc.com>
---
drivers/pmdomain/qcom/rpmhpd.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c
index 65505e1e221986ad20751b658374dd0e74719703..d256110225dc517187b2ac1bbbb781eae78b7d59 100644
--- a/drivers/pmdomain/qcom/rpmhpd.c
+++ b/drivers/pmdomain/qcom/rpmhpd.c
@@ -624,7 +624,31 @@ static const struct rpmhpd_desc x1e80100_desc = {
.num_pds = ARRAY_SIZE(x1e80100_rpmhpds),
};
+/* QCS8300 RPMH power domains */
+static struct rpmhpd *qcs8300_rpmhpds[] = {
+ [RPMHPD_CX] = &cx,
+ [RPMHPD_CX_AO] = &cx_ao,
+ [RPMHPD_EBI] = &ebi,
+ [RPMHPD_GFX] = &gfx,
+ [RPMHPD_LCX] = &lcx,
+ [RPMHPD_LMX] = &lmx,
+ [RPMHPD_MMCX] = &mmcx_w_cx_parent,
+ [RPMHPD_MMCX_AO] = &mmcx_ao_w_cx_parent,
+ [RPMHPD_MXC] = &mxc,
+ [RPMHPD_MXC_AO] = &mxc_ao,
+ [RPMHPD_MX] = &mx,
+ [RPMHPD_MX_AO] = &mx_ao,
+ [RPMHPD_NSP0] = &nsp0,
+ [RPMHPD_NSP1] = &nsp1,
+};
+
+static const struct rpmhpd_desc qcs8300_desc = {
+ .rpmhpds = qcs8300_rpmhpds,
+ .num_pds = ARRAY_SIZE(qcs8300_rpmhpds),
+};
+
static const struct of_device_id rpmhpd_match_table[] = {
+ { .compatible = "qcom,qcs8300-rpmhpd", .data = &qcs8300_desc },
{ .compatible = "qcom,qdu1000-rpmhpd", .data = &qdu1000_desc },
{ .compatible = "qcom,sa8155p-rpmhpd", .data = &sa8155p_desc },
{ .compatible = "qcom,sa8540p-rpmhpd", .data = &sa8540p_desc },
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains
2024-09-20 3:39 ` [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains Tingguo Cheng
@ 2024-09-20 13:12 ` Krzysztof Kozlowski
2024-09-27 12:25 ` Tingguo Cheng
0 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-09-20 13:12 UTC (permalink / raw)
To: Tingguo Cheng, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Bjorn Andersson, Ulf Hansson
Cc: kernel, linux-arm-msm, devicetree, linux-kernel, linux-pm,
quic_fenglinw, quic_tingweiz
On 20/09/2024 05:39, Tingguo Cheng wrote:
> Add compatible string for the RPMh power domains on qcs8300 platform.
>
> Signed-off-by: Tingguo Cheng <quic_tingguoc@quicinc.com>
> ---
> Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains
2024-09-20 13:12 ` Krzysztof Kozlowski
@ 2024-09-27 12:25 ` Tingguo Cheng
0 siblings, 0 replies; 5+ messages in thread
From: Tingguo Cheng @ 2024-09-27 12:25 UTC (permalink / raw)
To: Krzysztof Kozlowski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson, Ulf Hansson
Cc: kernel, linux-arm-msm, devicetree, linux-kernel, linux-pm,
quic_fenglinw, quic_tingweiz
On 9/20/2024 9:12 PM, Krzysztof Kozlowski wrote:
> On 20/09/2024 05:39, Tingguo Cheng wrote:
>> Add compatible string for the RPMh power domains on qcs8300 platform.
>>
>> Signed-off-by: Tingguo Cheng <quic_tingguoc@quicinc.com>
>> ---
>> Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
>> 1 file changed, 1 insertion(+)
>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
As comments in
"https://lore.kernel.org/all/30458916-90f4-4126-b5b4-a52f580c4fa7@kernel.org/",
I created a new patchset by combining the two patchsets into one to
resolve the conflicts.
20240927-add_qcs615_qcs8300_powerdomains_driver_support-v2-0-18c030ad7b68@quicinc.com
|
|<--Patchset
1:https://lore.kernel.org/r/20240920-add_qcs615_powerdomains_driver_support-v1-0-8846efaf9454@quicinc.com
|<--Patchset 2:Current patchset.
> Best regards,
> Krzysztof
>
--
Thank you & BRs
Tingguo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-09-27 12:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20 3:39 [PATCH 0/2] Add rpmhpd power domains for QCS8300 Tingguo Cheng
2024-09-20 3:39 ` [PATCH 1/2] dt-bindings: power: qcom,rpmpd: document qcs8300 RPMh power domains Tingguo Cheng
2024-09-20 13:12 ` Krzysztof Kozlowski
2024-09-27 12:25 ` Tingguo Cheng
2024-09-20 3:39 ` [PATCH 2/2] pmdomain: qcom: rpmhpd: Add qcs8300 " Tingguo Cheng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox