linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding
@ 2021-01-20 22:50 Bjorn Andersson
  2021-01-20 22:50 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SC8180X Bjorn Andersson
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Bjorn Andersson @ 2021-01-20 22:50 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rob Herring, Rajendra Nayak
  Cc: linux-arm-msm, devicetree, linux-kernel

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

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 .../devicetree/bindings/power/qcom,rpmpd.yaml       |  1 +
 include/dt-bindings/power/qcom-rpmpd.h              | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index 64825128ee97..bdf454712b10 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -24,6 +24,7 @@ properties:
       - qcom,qcs404-rpmpd
       - qcom,sdm660-rpmpd
       - qcom,sc7180-rpmhpd
+      - qcom,sc8180x-rpmhpd
       - qcom,sdm845-rpmhpd
       - qcom,sdx55-rpmhpd
       - qcom,sm8150-rpmhpd
diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
index 7714487ac76b..5f07dc16f863 100644
--- a/include/dt-bindings/power/qcom-rpmpd.h
+++ b/include/dt-bindings/power/qcom-rpmpd.h
@@ -55,6 +55,19 @@
 #define SC7180_LCX	6
 #define SC7180_MSS	7
 
+/* SC8180X Power Domain Indexes */
+#define SC8180X_CX	0
+#define SC8180X_CX_AO	1
+#define SC8180X_EBI	2
+#define SC8180X_GFX	3
+#define SC8180X_LCX	4
+#define SC8180X_LMX	5
+#define SC8180X_MMCX	6
+#define SC8180X_MMCX_AO	7
+#define SC8180X_MSS	8
+#define SC8180X_MX	9
+#define SC8180X_MX_AO	10
+
 /* SDM845 Power Domain performance levels */
 #define RPMH_REGULATOR_LEVEL_RETENTION	16
 #define RPMH_REGULATOR_LEVEL_MIN_SVS	48
-- 
2.29.2


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

* [PATCH 2/2] soc: qcom: rpmhpd: Add SC8180X
  2021-01-20 22:50 [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Bjorn Andersson
@ 2021-01-20 22:50 ` Bjorn Andersson
  2021-05-11  9:12   ` Vinod Koul
  2021-02-09  2:34 ` [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Rob Herring
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Bjorn Andersson @ 2021-01-20 22:50 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Rajendra Nayak
  Cc: Rob Herring, linux-arm-msm, devicetree, linux-kernel

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

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 drivers/soc/qcom/rpmhpd.c | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
index 7ce06356d24c..18d5180c0ca0 100644
--- a/drivers/soc/qcom/rpmhpd.c
+++ b/drivers/soc/qcom/rpmhpd.c
@@ -217,8 +217,29 @@ static const struct rpmhpd_desc sc7180_desc = {
 	.num_pds = ARRAY_SIZE(sc7180_rpmhpds),
 };
 
+/* SC8180x RPMH powerdomains */
+static struct rpmhpd *sc8180x_rpmhpds[] = {
+	[SC8180X_CX] = &sdm845_cx,
+	[SC8180X_CX_AO] = &sdm845_cx_ao,
+	[SC8180X_EBI] = &sdm845_ebi,
+	[SC8180X_GFX] = &sdm845_gfx,
+	[SC8180X_LCX] = &sdm845_lcx,
+	[SC8180X_LMX] = &sdm845_lmx,
+	[SC8180X_MMCX] = &sm8150_mmcx,
+	[SC8180X_MMCX_AO] = &sm8150_mmcx_ao,
+	[SC8180X_MSS] = &sdm845_mss,
+	[SC8180X_MX] = &sdm845_mx,
+	[SC8180X_MX_AO] = &sdm845_mx_ao,
+};
+
+static const struct rpmhpd_desc sc8180x_desc = {
+	.rpmhpds = sc8180x_rpmhpds,
+	.num_pds = ARRAY_SIZE(sc8180x_rpmhpds),
+};
+
 static const struct of_device_id rpmhpd_match_table[] = {
 	{ .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },
+	{ .compatible = "qcom,sc8180x-rpmhpd", .data = &sc8180x_desc },
 	{ .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
 	{ .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc},
 	{ .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
-- 
2.29.2


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

* Re: [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding
  2021-01-20 22:50 [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Bjorn Andersson
  2021-01-20 22:50 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SC8180X Bjorn Andersson
@ 2021-02-09  2:34 ` Rob Herring
  2021-05-11  5:00 ` Shawn Guo
  2021-05-11  9:11 ` Vinod Koul
  3 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2021-02-09  2:34 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: devicetree, linux-kernel, Andy Gross, linux-arm-msm,
	Rajendra Nayak, Rob Herring

On Wed, 20 Jan 2021 14:50:36 -0800, Bjorn Andersson wrote:
> Add compatible and constants for the power domains exposed by the RPMH
> in the Qualcomm SC8180X platform.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> ---
>  .../devicetree/bindings/power/qcom,rpmpd.yaml       |  1 +
>  include/dt-bindings/power/qcom-rpmpd.h              | 13 +++++++++++++
>  2 files changed, 14 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

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

* Re: [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding
  2021-01-20 22:50 [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Bjorn Andersson
  2021-01-20 22:50 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SC8180X Bjorn Andersson
  2021-02-09  2:34 ` [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Rob Herring
@ 2021-05-11  5:00 ` Shawn Guo
  2021-05-11  9:11 ` Vinod Koul
  3 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2021-05-11  5:00 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Rob Herring, Rajendra Nayak, linux-arm-msm,
	devicetree, linux-kernel

On Wed, Jan 20, 2021 at 02:50:36PM -0800, Bjorn Andersson wrote:
> Add compatible and constants for the power domains exposed by the RPMH
> in the Qualcomm SC8180X platform.
> 
> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Looks good to me.  For both patches:

Reviewed-by: Shawn Guo <shawn.guo@linaro.org>

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

* Re: [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding
  2021-01-20 22:50 [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Bjorn Andersson
                   ` (2 preceding siblings ...)
  2021-05-11  5:00 ` Shawn Guo
@ 2021-05-11  9:11 ` Vinod Koul
  3 siblings, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2021-05-11  9:11 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Rob Herring, Rajendra Nayak, linux-arm-msm,
	devicetree, linux-kernel

On 20-01-21, 14:50, Bjorn Andersson wrote:
> Add compatible and constants for the power domains exposed by the RPMH
> in the Qualcomm SC8180X platform.

Reviewed-by: Vinod Koul <vkoul@kernel.org>

-- 
~Vinod

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

* Re: [PATCH 2/2] soc: qcom: rpmhpd: Add SC8180X
  2021-01-20 22:50 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SC8180X Bjorn Andersson
@ 2021-05-11  9:12   ` Vinod Koul
  0 siblings, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2021-05-11  9:12 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: Andy Gross, Rajendra Nayak, Rob Herring, linux-arm-msm,
	devicetree, linux-kernel

On 20-01-21, 14:50, Bjorn Andersson wrote:
> Add the power domains exposed by RPMH in the Qualcomm SC8180X platform.

Reviewed-by: Vinod Koul <vkoul@kernel.org>

-- 
~Vinod

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

end of thread, other threads:[~2021-05-11  9:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 22:50 [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Bjorn Andersson
2021-01-20 22:50 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SC8180X Bjorn Andersson
2021-05-11  9:12   ` Vinod Koul
2021-02-09  2:34 ` [PATCH 1/2] dt-bindings: power: rpmpd: Add SC8180X to rpmpd binding Rob Herring
2021-05-11  5:00 ` Shawn Guo
2021-05-11  9:11 ` Vinod Koul

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).