Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH 0/3] pmdomain: qcom: Introduce power domains for SM8750
@ 2024-10-21 23:03 Melody Olvera
  2024-10-21 23:03 ` [PATCH 1/3] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains Melody Olvera
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Melody Olvera @ 2024-10-21 23:03 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Otto Pflüger, Dmitry Baryshkov, Konrad Dybcio,
	Bjorn Andersson, Neil Armstrong, Abel Vesa, Jishnu Prakash,
	Trilok Soni, Satya Durga Srinivasu Prabhala
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-pm, Melody Olvera

Add power domains needed for the SM8750 SoC.

The Qualcomm Technologies, Inc. SM8750 SoC is the latest in the line of
consumer mobile device SoCs. See more at:
https://www.qualcomm.com/content/dam/qcomm-martech/dm-assets/images/company/news-media/media-center/press-kits/snapdragon-summit-2024/day-1/documents/Snapdragon8EliteProductBrief.pdf

Jishnu Prakash (2):
  dt-bindings: power: Add additional RPMh levels
  pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750

Taniya Das (1):
  dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains

 .../devicetree/bindings/power/qcom,rpmpd.yaml |  1 +
 drivers/pmdomain/qcom/rpmhpd.c                | 26 +++++++++++++++++++
 include/dt-bindings/power/qcom-rpmpd.h        |  2 ++
 3 files changed, 29 insertions(+)


base-commit: 63b3ff03d91ae8f875fe8747c781a521f78cde17
-- 
2.46.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/3] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains
  2024-10-21 23:03 [PATCH 0/3] pmdomain: qcom: Introduce power domains for SM8750 Melody Olvera
@ 2024-10-21 23:03 ` Melody Olvera
  2024-10-21 23:03 ` [PATCH 2/3] dt-bindings: power: Add additional RPMh levels Melody Olvera
  2024-10-21 23:03 ` [PATCH 3/3] pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750 Melody Olvera
  2 siblings, 0 replies; 6+ messages in thread
From: Melody Olvera @ 2024-10-21 23:03 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Otto Pflüger, Dmitry Baryshkov, Konrad Dybcio,
	Bjorn Andersson, Neil Armstrong, Abel Vesa, Jishnu Prakash,
	Trilok Soni, Satya Durga Srinivasu Prabhala
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-pm, Melody Olvera

From: Taniya Das <quic_tdas@quicinc.com>

Document the RPMh Power Domains on the SM8750 Platform.

Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Signed-off-by: Melody Olvera <quic_molvera@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 17ad46e55529..baa1f52c206e 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -60,6 +60,7 @@ properties:
           - qcom,sm8450-rpmhpd
           - qcom,sm8550-rpmhpd
           - qcom,sm8650-rpmhpd
+          - qcom,sm8750-rpmhpd
           - qcom,x1e80100-rpmhpd
       - items:
           - enum:
-- 
2.46.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] dt-bindings: power: Add additional RPMh levels
  2024-10-21 23:03 [PATCH 0/3] pmdomain: qcom: Introduce power domains for SM8750 Melody Olvera
  2024-10-21 23:03 ` [PATCH 1/3] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains Melody Olvera
@ 2024-10-21 23:03 ` Melody Olvera
  2024-10-22  6:13   ` Krzysztof Kozlowski
  2024-10-21 23:03 ` [PATCH 3/3] pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750 Melody Olvera
  2 siblings, 1 reply; 6+ messages in thread
From: Melody Olvera @ 2024-10-21 23:03 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Otto Pflüger, Dmitry Baryshkov, Konrad Dybcio,
	Bjorn Andersson, Neil Armstrong, Abel Vesa, Jishnu Prakash,
	Trilok Soni, Satya Durga Srinivasu Prabhala
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-pm, Melody Olvera

From: Jishnu Prakash <quic_jprakash@quicinc.com>

Add RPMH_REGULATOR_LEVEL_LOW_SVS_D3 and RPMH_REGULATOR_LEVEL_TURBO_L4,
used by SM8750.

Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
---
 include/dt-bindings/power/qcom-rpmpd.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
index 608087fb9a3d..df599bf46220 100644
--- a/include/dt-bindings/power/qcom-rpmpd.h
+++ b/include/dt-bindings/power/qcom-rpmpd.h
@@ -218,6 +218,7 @@
 /* SDM845 Power Domain performance levels */
 #define RPMH_REGULATOR_LEVEL_RETENTION		16
 #define RPMH_REGULATOR_LEVEL_MIN_SVS		48
+#define RPMH_REGULATOR_LEVEL_LOW_SVS_D3		50
 #define RPMH_REGULATOR_LEVEL_LOW_SVS_D2		52
 #define RPMH_REGULATOR_LEVEL_LOW_SVS_D1		56
 #define RPMH_REGULATOR_LEVEL_LOW_SVS_D0		60
@@ -238,6 +239,7 @@
 #define RPMH_REGULATOR_LEVEL_TURBO_L1		416
 #define RPMH_REGULATOR_LEVEL_TURBO_L2		432
 #define RPMH_REGULATOR_LEVEL_TURBO_L3		448
+#define RPMH_REGULATOR_LEVEL_TURBO_L4		452
 #define RPMH_REGULATOR_LEVEL_SUPER_TURBO 	464
 #define RPMH_REGULATOR_LEVEL_SUPER_TURBO_NO_CPR	480
 
-- 
2.46.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750
  2024-10-21 23:03 [PATCH 0/3] pmdomain: qcom: Introduce power domains for SM8750 Melody Olvera
  2024-10-21 23:03 ` [PATCH 1/3] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains Melody Olvera
  2024-10-21 23:03 ` [PATCH 2/3] dt-bindings: power: Add additional RPMh levels Melody Olvera
@ 2024-10-21 23:03 ` Melody Olvera
  2 siblings, 0 replies; 6+ messages in thread
From: Melody Olvera @ 2024-10-21 23:03 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Otto Pflüger, Dmitry Baryshkov, Konrad Dybcio,
	Bjorn Andersson, Neil Armstrong, Abel Vesa, Jishnu Prakash,
	Trilok Soni, Satya Durga Srinivasu Prabhala
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-pm, Melody Olvera

From: Jishnu Prakash <quic_jprakash@quicinc.com>

This adds the RPMHPD present in SM8750 SoCs.

Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
---
 drivers/pmdomain/qcom/rpmhpd.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c
index 731feab9f17d..28f4b3d0cbde 100644
--- a/drivers/pmdomain/qcom/rpmhpd.c
+++ b/drivers/pmdomain/qcom/rpmhpd.c
@@ -513,6 +513,31 @@ static const struct rpmhpd_desc sm8650_desc = {
 	.num_pds = ARRAY_SIZE(sm8650_rpmhpds),
 };
 
+/* SM8750 RPMH powerdomains */
+static struct rpmhpd *sm8750_rpmhpds[] = {
+	[RPMHPD_CX] = &cx,
+	[RPMHPD_CX_AO] = &cx_ao,
+	[RPMHPD_EBI] = &ebi,
+	[RPMHPD_GFX] = &gfx,
+	[RPMHPD_GMXC] = &gmxc,
+	[RPMHPD_LCX] = &lcx,
+	[RPMHPD_LMX] = &lmx,
+	[RPMHPD_MX] = &mx,
+	[RPMHPD_MX_AO] = &mx_ao,
+	[RPMHPD_MMCX] = &mmcx_w_cx_parent,
+	[RPMHPD_MMCX_AO] = &mmcx_ao_w_cx_parent,
+	[RPMHPD_MSS] = &mss,
+	[RPMHPD_MXC] = &mxc,
+	[RPMHPD_MXC_AO] = &mxc_ao,
+	[RPMHPD_NSP] = &nsp,
+	[RPMHPD_NSP2] = &nsp2,
+};
+
+static const struct rpmhpd_desc sm8750_desc = {
+	.rpmhpds = sm8750_rpmhpds,
+	.num_pds = ARRAY_SIZE(sm8750_rpmhpds),
+};
+
 /* QDU1000/QRU1000 RPMH powerdomains */
 static struct rpmhpd *qdu1000_rpmhpds[] = {
 	[QDU1000_CX] = &cx,
@@ -682,6 +707,7 @@ static const struct of_device_id rpmhpd_match_table[] = {
 	{ .compatible = "qcom,sm8450-rpmhpd", .data = &sm8450_desc },
 	{ .compatible = "qcom,sm8550-rpmhpd", .data = &sm8550_desc },
 	{ .compatible = "qcom,sm8650-rpmhpd", .data = &sm8650_desc },
+	{ .compatible = "qcom,sm8750-rpmhpd", .data = &sm8750_desc },
 	{ .compatible = "qcom,x1e80100-rpmhpd", .data = &x1e80100_desc },
 	{ }
 };
-- 
2.46.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] dt-bindings: power: Add additional RPMh levels
  2024-10-21 23:03 ` [PATCH 2/3] dt-bindings: power: Add additional RPMh levels Melody Olvera
@ 2024-10-22  6:13   ` Krzysztof Kozlowski
  2024-10-23 18:11     ` Melody Olvera
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-22  6:13 UTC (permalink / raw)
  To: Melody Olvera
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Otto Pflüger, Dmitry Baryshkov, Konrad Dybcio,
	Bjorn Andersson, Neil Armstrong, Abel Vesa, Jishnu Prakash,
	Trilok Soni, Satya Durga Srinivasu Prabhala, linux-arm-msm,
	devicetree, linux-kernel, linux-pm

On Mon, Oct 21, 2024 at 04:03:32PM -0700, Melody Olvera wrote:
> From: Jishnu Prakash <quic_jprakash@quicinc.com>
> 
> Add RPMH_REGULATOR_LEVEL_LOW_SVS_D3 and RPMH_REGULATOR_LEVEL_TURBO_L4,
> used by SM8750.
> 
> Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>

This is not an independent patch, but part of SM8750 binding. Squash it.


> ---
>  include/dt-bindings/power/qcom-rpmpd.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
> index 608087fb9a3d..df599bf46220 100644
> --- a/include/dt-bindings/power/qcom-rpmpd.h

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] dt-bindings: power: Add additional RPMh levels
  2024-10-22  6:13   ` Krzysztof Kozlowski
@ 2024-10-23 18:11     ` Melody Olvera
  0 siblings, 0 replies; 6+ messages in thread
From: Melody Olvera @ 2024-10-23 18:11 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Otto Pflüger, Dmitry Baryshkov, Konrad Dybcio,
	Bjorn Andersson, Neil Armstrong, Abel Vesa, Jishnu Prakash,
	Trilok Soni, Satya Durga Srinivasu Prabhala, linux-arm-msm,
	devicetree, linux-kernel, linux-pm



On 10/21/2024 11:13 PM, Krzysztof Kozlowski wrote:
> On Mon, Oct 21, 2024 at 04:03:32PM -0700, Melody Olvera wrote:
>> From: Jishnu Prakash <quic_jprakash@quicinc.com>
>>
>> Add RPMH_REGULATOR_LEVEL_LOW_SVS_D3 and RPMH_REGULATOR_LEVEL_TURBO_L4,
>> used by SM8750.
>>
>> Signed-off-by: Jishnu Prakash <quic_jprakash@quicinc.com>
>> Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
> This is not an independent patch, but part of SM8750 binding. Squash it.
>

Ack.

>> ---
>>   include/dt-bindings/power/qcom-rpmpd.h | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
>> index 608087fb9a3d..df599bf46220 100644
>> --- a/include/dt-bindings/power/qcom-rpmpd.h
> Best regards,
> Krzysztof
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-23 18:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21 23:03 [PATCH 0/3] pmdomain: qcom: Introduce power domains for SM8750 Melody Olvera
2024-10-21 23:03 ` [PATCH 1/3] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains Melody Olvera
2024-10-21 23:03 ` [PATCH 2/3] dt-bindings: power: Add additional RPMh levels Melody Olvera
2024-10-22  6:13   ` Krzysztof Kozlowski
2024-10-23 18:11     ` Melody Olvera
2024-10-21 23:03 ` [PATCH 3/3] pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750 Melody Olvera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox