devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP
@ 2023-10-25 13:59 Sibi Sankar
  2023-10-25 13:59 ` [PATCH 1/3] dt-bindings: power: qcom,rpmhpd: Add GMXC PD index Sibi Sankar
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Sibi Sankar @ 2023-10-25 13:59 UTC (permalink / raw)
  To: andersson, konrad.dybcio, ulf.hansson, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, linux-pm, quic_tsoni, neil.armstrong,
	Sibi Sankar

This series adds power domain support for the Qualcomm SC8380XP platform, aka Snapdragon X Elite.

Dependencies: None
Release Link: https://www.qualcomm.com/news/releases/2023/10/qualcomm-unleashes-snapdragon-x-elite--the-ai-super-charged-plat

Abel Vesa (2):
  dt-bindings: power: rpmpd: Add SC8380XP support
  pmdomain: qcom: rpmhpd: Add SC8380XP power domains

Sibi Sankar (1):
  dt-bindings: power: qcom,rpmhpd: Add GMXC PD index

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

-- 
2.17.1


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

* [PATCH 1/3] dt-bindings: power: qcom,rpmhpd: Add GMXC PD index
  2023-10-25 13:59 [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP Sibi Sankar
@ 2023-10-25 13:59 ` Sibi Sankar
  2023-10-25 13:59 ` [PATCH 2/3] dt-bindings: power: rpmpd: Add SC8380XP support Sibi Sankar
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: Sibi Sankar @ 2023-10-25 13:59 UTC (permalink / raw)
  To: andersson, konrad.dybcio, ulf.hansson, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, linux-pm, quic_tsoni, neil.armstrong,
	Sibi Sankar

Document GMXC (Graphics MXC) power domain index which will be used on
SC8380XP SoCs.

Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
---
 include/dt-bindings/power/qcom,rpmhpd.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/dt-bindings/power/qcom,rpmhpd.h b/include/dt-bindings/power/qcom,rpmhpd.h
index 7c201a66bc69..9a47b92decd9 100644
--- a/include/dt-bindings/power/qcom,rpmhpd.h
+++ b/include/dt-bindings/power/qcom,rpmhpd.h
@@ -26,5 +26,6 @@
 #define RPMHPD_QPHY             16
 #define RPMHPD_DDR              17
 #define RPMHPD_XO               18
+#define RPMHPD_GMXC		19
 
 #endif
-- 
2.17.1


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

* [PATCH 2/3] dt-bindings: power: rpmpd: Add SC8380XP support
  2023-10-25 13:59 [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP Sibi Sankar
  2023-10-25 13:59 ` [PATCH 1/3] dt-bindings: power: qcom,rpmhpd: Add GMXC PD index Sibi Sankar
@ 2023-10-25 13:59 ` Sibi Sankar
  2023-10-27  8:19   ` Krzysztof Kozlowski
  2023-10-25 13:59 ` [PATCH 3/3] pmdomain: qcom: rpmhpd: Add SC8380XP power domains Sibi Sankar
  2023-10-26 14:27 ` [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP Ulf Hansson
  3 siblings, 1 reply; 8+ messages in thread
From: Sibi Sankar @ 2023-10-25 13:59 UTC (permalink / raw)
  To: andersson, konrad.dybcio, ulf.hansson, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, linux-pm, quic_tsoni, neil.armstrong,
	Sibi Sankar

From: Abel Vesa <abel.vesa@linaro.org>

Add compatible and constants for the power domains exposed by the RPMH
in the Qualcomm SC8380XP platform.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com>
Signed-off-by: Sibi Sankar <quic_sibis@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 d38c762e1280..6bca9c6c377f 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -39,6 +39,7 @@ properties:
           - qcom,sc7280-rpmhpd
           - qcom,sc8180x-rpmhpd
           - qcom,sc8280xp-rpmhpd
+          - qcom,sc8380xp-rpmhpd
           - qcom,sdm660-rpmpd
           - qcom,sdm670-rpmhpd
           - qcom,sdm845-rpmhpd
-- 
2.17.1


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

* [PATCH 3/3] pmdomain: qcom: rpmhpd: Add SC8380XP power domains
  2023-10-25 13:59 [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP Sibi Sankar
  2023-10-25 13:59 ` [PATCH 1/3] dt-bindings: power: qcom,rpmhpd: Add GMXC PD index Sibi Sankar
  2023-10-25 13:59 ` [PATCH 2/3] dt-bindings: power: rpmpd: Add SC8380XP support Sibi Sankar
@ 2023-10-25 13:59 ` Sibi Sankar
  2023-10-25 17:32   ` Dmitry Baryshkov
  2023-10-26 11:03   ` Konrad Dybcio
  2023-10-26 14:27 ` [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP Ulf Hansson
  3 siblings, 2 replies; 8+ messages in thread
From: Sibi Sankar @ 2023-10-25 13:59 UTC (permalink / raw)
  To: andersson, konrad.dybcio, ulf.hansson, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, linux-pm, quic_tsoni, neil.armstrong,
	Sibi Sankar

From: Abel Vesa <abel.vesa@linaro.org>

Add the power domains exposed by RPMH in the Qualcomm SC8380XP platform.

Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com>
Co-developed-by: Sibi Sankar <quic_sibis@quicinc.com>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
---
 drivers/pmdomain/qcom/rpmhpd.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/drivers/pmdomain/qcom/rpmhpd.c b/drivers/pmdomain/qcom/rpmhpd.c
index a631fe1f9a06..28b7f5fcea7e 100644
--- a/drivers/pmdomain/qcom/rpmhpd.c
+++ b/drivers/pmdomain/qcom/rpmhpd.c
@@ -202,6 +202,11 @@ static struct rpmhpd qphy = {
 	.res_name = "qphy.lvl",
 };
 
+static struct rpmhpd gmxc = {
+	.pd = { .name = "gmxc", },
+	.res_name = "gmxc.lvl",
+};
+
 /* SA8540P RPMH powerdomains */
 static struct rpmhpd *sa8540p_rpmhpds[] = {
 	[SC8280XP_CX] = &cx,
@@ -564,6 +569,28 @@ static const struct rpmhpd_desc sc8280xp_desc = {
 	.num_pds = ARRAY_SIZE(sc8280xp_rpmhpds),
 };
 
+/* SC8380xp RPMH powerdomains */
+static struct rpmhpd *sc8380xp_rpmhpds[] = {
+	[RPMHPD_CX] = &cx,
+	[RPMHPD_CX_AO] = &cx_ao,
+	[RPMHPD_EBI] = &ebi,
+	[RPMHPD_GFX] = &gfx,
+	[RPMHPD_LCX] = &lcx,
+	[RPMHPD_LMX] = &lmx,
+	[RPMHPD_MMCX] = &mmcx,
+	[RPMHPD_MMCX_AO] = &mmcx_ao,
+	[RPMHPD_MX] = &mx,
+	[RPMHPD_MX_AO] = &mx_ao,
+	[RPMHPD_NSP] = &nsp,
+	[RPMHPD_MXC] = &mxc,
+	[RPMHPD_GMXC] = &gmxc,
+};
+
+static const struct rpmhpd_desc sc8380xp_desc = {
+	.rpmhpds = sc8380xp_rpmhpds,
+	.num_pds = ARRAY_SIZE(sc8380xp_rpmhpds),
+};
+
 static const struct of_device_id rpmhpd_match_table[] = {
 	{ .compatible = "qcom,qdu1000-rpmhpd", .data = &qdu1000_desc },
 	{ .compatible = "qcom,sa8155p-rpmhpd", .data = &sa8155p_desc },
@@ -573,6 +600,7 @@ static const struct of_device_id rpmhpd_match_table[] = {
 	{ .compatible = "qcom,sc7280-rpmhpd", .data = &sc7280_desc },
 	{ .compatible = "qcom,sc8180x-rpmhpd", .data = &sc8180x_desc },
 	{ .compatible = "qcom,sc8280xp-rpmhpd", .data = &sc8280xp_desc },
+	{ .compatible = "qcom,sc8380xp-rpmhpd", .data = &sc8380xp_desc },
 	{ .compatible = "qcom,sdm670-rpmhpd", .data = &sdm670_desc },
 	{ .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
 	{ .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc},
-- 
2.17.1


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

* Re: [PATCH 3/3] pmdomain: qcom: rpmhpd: Add SC8380XP power domains
  2023-10-25 13:59 ` [PATCH 3/3] pmdomain: qcom: rpmhpd: Add SC8380XP power domains Sibi Sankar
@ 2023-10-25 17:32   ` Dmitry Baryshkov
  2023-10-26 11:03   ` Konrad Dybcio
  1 sibling, 0 replies; 8+ messages in thread
From: Dmitry Baryshkov @ 2023-10-25 17:32 UTC (permalink / raw)
  To: Sibi Sankar
  Cc: andersson, konrad.dybcio, ulf.hansson, robh+dt,
	krzysztof.kozlowski+dt, agross, conor+dt, quic_rjendra, abel.vesa,
	linux-arm-msm, devicetree, linux-kernel, linux-pm, quic_tsoni,
	neil.armstrong

On Wed, 25 Oct 2023 at 17:01, Sibi Sankar <quic_sibis@quicinc.com> wrote:
>
> From: Abel Vesa <abel.vesa@linaro.org>
>
> Add the power domains exposed by RPMH in the Qualcomm SC8380XP platform.
>
> Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
> Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com>
> Co-developed-by: Sibi Sankar <quic_sibis@quicinc.com>
> Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>

> ---
>  drivers/pmdomain/qcom/rpmhpd.c | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)

-- 
With best wishes
Dmitry

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

* Re: [PATCH 3/3] pmdomain: qcom: rpmhpd: Add SC8380XP power domains
  2023-10-25 13:59 ` [PATCH 3/3] pmdomain: qcom: rpmhpd: Add SC8380XP power domains Sibi Sankar
  2023-10-25 17:32   ` Dmitry Baryshkov
@ 2023-10-26 11:03   ` Konrad Dybcio
  1 sibling, 0 replies; 8+ messages in thread
From: Konrad Dybcio @ 2023-10-26 11:03 UTC (permalink / raw)
  To: Sibi Sankar, andersson, ulf.hansson, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, linux-pm, quic_tsoni, neil.armstrong



On 10/25/23 15:59, Sibi Sankar wrote:
> From: Abel Vesa <abel.vesa@linaro.org>
> 
> Add the power domains exposed by RPMH in the Qualcomm SC8380XP platform.
> 
> Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
> Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com>
> Co-developed-by: Sibi Sankar <quic_sibis@quicinc.com>
> Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

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

* Re: [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP
  2023-10-25 13:59 [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP Sibi Sankar
                   ` (2 preceding siblings ...)
  2023-10-25 13:59 ` [PATCH 3/3] pmdomain: qcom: rpmhpd: Add SC8380XP power domains Sibi Sankar
@ 2023-10-26 14:27 ` Ulf Hansson
  3 siblings, 0 replies; 8+ messages in thread
From: Ulf Hansson @ 2023-10-26 14:27 UTC (permalink / raw)
  To: Sibi Sankar
  Cc: andersson, konrad.dybcio, robh+dt, krzysztof.kozlowski+dt, agross,
	conor+dt, quic_rjendra, abel.vesa, linux-arm-msm, devicetree,
	linux-kernel, linux-pm, quic_tsoni, neil.armstrong

On Wed, 25 Oct 2023 at 16:00, Sibi Sankar <quic_sibis@quicinc.com> wrote:
>
> This series adds power domain support for the Qualcomm SC8380XP platform, aka Snapdragon X Elite.
>
> Dependencies: None
> Release Link: https://www.qualcomm.com/news/releases/2023/10/qualcomm-unleashes-snapdragon-x-elite--the-ai-super-charged-plat
>
> Abel Vesa (2):
>   dt-bindings: power: rpmpd: Add SC8380XP support
>   pmdomain: qcom: rpmhpd: Add SC8380XP power domains
>
> Sibi Sankar (1):
>   dt-bindings: power: qcom,rpmhpd: Add GMXC PD index
>
>  .../devicetree/bindings/power/qcom,rpmpd.yaml |  1 +
>  drivers/pmdomain/qcom/rpmhpd.c                | 28 +++++++++++++++++++
>  include/dt-bindings/power/qcom,rpmhpd.h       |  1 +
>  3 files changed, 30 insertions(+)
>

Applied for next, thanks!

Kind regards
Uffe

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

* Re: [PATCH 2/3] dt-bindings: power: rpmpd: Add SC8380XP support
  2023-10-25 13:59 ` [PATCH 2/3] dt-bindings: power: rpmpd: Add SC8380XP support Sibi Sankar
@ 2023-10-27  8:19   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2023-10-27  8:19 UTC (permalink / raw)
  To: Sibi Sankar, andersson, konrad.dybcio, ulf.hansson, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, linux-pm, quic_tsoni, neil.armstrong

On 25/10/2023 15:59, Sibi Sankar wrote:
> From: Abel Vesa <abel.vesa@linaro.org>
> 
> Add compatible and constants for the power domains exposed by the RPMH
> in the Qualcomm SC8380XP platform.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

end of thread, other threads:[~2023-10-27  8:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 13:59 [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP Sibi Sankar
2023-10-25 13:59 ` [PATCH 1/3] dt-bindings: power: qcom,rpmhpd: Add GMXC PD index Sibi Sankar
2023-10-25 13:59 ` [PATCH 2/3] dt-bindings: power: rpmpd: Add SC8380XP support Sibi Sankar
2023-10-27  8:19   ` Krzysztof Kozlowski
2023-10-25 13:59 ` [PATCH 3/3] pmdomain: qcom: rpmhpd: Add SC8380XP power domains Sibi Sankar
2023-10-25 17:32   ` Dmitry Baryshkov
2023-10-26 11:03   ` Konrad Dybcio
2023-10-26 14:27 ` [PATCH 0/3] pmdomain: qcom: Add power domain support for SC8380XP Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).