mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] pmdomain: qcom: Introduce power domains for SM8750
@ 2024-11-12  0:24 Melody Olvera
  2024-11-12  0:24 ` [PATCH v2 1/2] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains Melody Olvera
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Melody Olvera @ 2024-11-12  0:24 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Dmitry Baryshkov, Konrad Dybcio, Bjorn Andersson, 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

Changes in V2:
- squashed bindings into one patch

Jishnu Prakash (1):
  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: 6d59cab07b8d74d0f0422b750038123334f6ecc2
-- 
2.46.1


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

* [PATCH v2 1/2] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains
  2024-11-12  0:24 [PATCH v2 0/2] pmdomain: qcom: Introduce power domains for SM8750 Melody Olvera
@ 2024-11-12  0:24 ` Melody Olvera
  2024-11-12  0:24 ` [PATCH v2 2/2] pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750 Melody Olvera
  2024-11-12 15:56 ` [PATCH v2 0/2] pmdomain: qcom: Introduce power domains " Ulf Hansson
  2 siblings, 0 replies; 4+ messages in thread
From: Melody Olvera @ 2024-11-12  0:24 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Dmitry Baryshkov, Konrad Dybcio, Bjorn Andersson, 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: Jishnu Prakash <quic_jprakash@quicinc.com>
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
---
 Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
 include/dt-bindings/power/qcom-rpmpd.h                  | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index 31c2ac93f804..655687369a23 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -61,6 +61,7 @@ properties:
           - qcom,sm8450-rpmhpd
           - qcom,sm8550-rpmhpd
           - qcom,sm8650-rpmhpd
+          - qcom,sm8750-rpmhpd
           - qcom,x1e80100-rpmhpd
       - items:
           - enum:
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	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750
  2024-11-12  0:24 [PATCH v2 0/2] pmdomain: qcom: Introduce power domains for SM8750 Melody Olvera
  2024-11-12  0:24 ` [PATCH v2 1/2] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains Melody Olvera
@ 2024-11-12  0:24 ` Melody Olvera
  2024-11-12 15:56 ` [PATCH v2 0/2] pmdomain: qcom: Introduce power domains " Ulf Hansson
  2 siblings, 0 replies; 4+ messages in thread
From: Melody Olvera @ 2024-11-12  0:24 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Ulf Hansson,
	Sibi Sankar, Tingguo Cheng, Taniya Das, Luca Weiss,
	Dmitry Baryshkov, Konrad Dybcio, Bjorn Andersson, 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 5c5f9542c392..dfd0f80154e4 100644
--- a/drivers/pmdomain/qcom/rpmhpd.c
+++ b/drivers/pmdomain/qcom/rpmhpd.c
@@ -537,6 +537,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,
@@ -707,6 +732,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	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 0/2] pmdomain: qcom: Introduce power domains for SM8750
  2024-11-12  0:24 [PATCH v2 0/2] pmdomain: qcom: Introduce power domains for SM8750 Melody Olvera
  2024-11-12  0:24 ` [PATCH v2 1/2] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains Melody Olvera
  2024-11-12  0:24 ` [PATCH v2 2/2] pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750 Melody Olvera
@ 2024-11-12 15:56 ` Ulf Hansson
  2 siblings, 0 replies; 4+ messages in thread
From: Ulf Hansson @ 2024-11-12 15:56 UTC (permalink / raw)
  To: Melody Olvera
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sibi Sankar,
	Tingguo Cheng, Taniya Das, Luca Weiss, Dmitry Baryshkov,
	Konrad Dybcio, Bjorn Andersson, Jishnu Prakash, Trilok Soni,
	Satya Durga Srinivasu Prabhala, linux-arm-msm, devicetree,
	linux-kernel, linux-pm

On Tue, 12 Nov 2024 at 01:25, Melody Olvera <quic_molvera@quicinc.com> wrote:
>
> 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
>
> Changes in V2:
> - squashed bindings into one patch
>
> Jishnu Prakash (1):
>   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(+)

Applied for next, thanks!

Kind regards
Uffe

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

end of thread, other threads:[~2024-11-12 15:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-12  0:24 [PATCH v2 0/2] pmdomain: qcom: Introduce power domains for SM8750 Melody Olvera
2024-11-12  0:24 ` [PATCH v2 1/2] dt-bindings: power: qcom,rpmpd: document the SM8750 RPMh Power Domains Melody Olvera
2024-11-12  0:24 ` [PATCH v2 2/2] pmdomain: qcom: rpmhpd: Add rpmhpd support for SM8750 Melody Olvera
2024-11-12 15:56 ` [PATCH v2 0/2] pmdomain: qcom: Introduce power domains " Ulf Hansson

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

all inboxes | Powered by JetHome®