linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55
@ 2020-11-26  9:27 Vinod Koul
  2020-11-26  9:27 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SDX55 power domains Vinod Koul
  2020-11-26 11:29 ` [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55 Manivannan Sadhasivam
  0 siblings, 2 replies; 4+ messages in thread
From: Vinod Koul @ 2020-11-26  9:27 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: linux-arm-msm, Vinod Koul, Andy Gross, Rob Herring,
	Rajendra Nayak, Manivannan Sadhasivam, devicetree, linux-kernel

Add RPM power domain bindings for the SDX55 SoC

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
 include/dt-bindings/power/qcom-rpmpd.h                  | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index 8058955fb3b9..fe20a73f47ca 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -22,6 +22,7 @@ properties:
       - qcom,qcs404-rpmpd
       - qcom,sc7180-rpmhpd
       - qcom,sdm845-rpmhpd
+      - qcom,sdx55-rpmhpd
       - qcom,sm8150-rpmhpd
       - qcom,sm8250-rpmhpd
 
diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
index 5e61eaf73bdd..9fa2d66fca4a 100644
--- a/include/dt-bindings/power/qcom-rpmpd.h
+++ b/include/dt-bindings/power/qcom-rpmpd.h
@@ -15,6 +15,11 @@
 #define SDM845_GFX	7
 #define SDM845_MSS	8
 
+/* SDX55 Power Domain Indexes */
+#define SDX55_MSS	0
+#define SDX55_MX	1
+#define SDX55_CX	2
+
 /* SM8150 Power Domain Indexes */
 #define SM8150_MSS	0
 #define SM8150_EBI	1
-- 
2.26.2


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

* [PATCH 2/2] soc: qcom: rpmhpd: Add SDX55 power domains
  2020-11-26  9:27 [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55 Vinod Koul
@ 2020-11-26  9:27 ` Vinod Koul
  2020-11-26 11:28   ` Manivannan Sadhasivam
  2020-11-26 11:29 ` [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55 Manivannan Sadhasivam
  1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2020-11-26  9:27 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: linux-arm-msm, Vinod Koul, Andy Gross, Rob Herring,
	Rajendra Nayak, Manivannan Sadhasivam, devicetree, linux-kernel

This adds the power domains found in SDX55 SoC. Downstream code tells me
that we have 3 power domains so add them

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
index e72426221a69..4cb5d4ab82e2 100644
--- a/drivers/soc/qcom/rpmhpd.c
+++ b/drivers/soc/qcom/rpmhpd.c
@@ -132,6 +132,18 @@ static const struct rpmhpd_desc sdm845_desc = {
 	.num_pds = ARRAY_SIZE(sdm845_rpmhpds),
 };
 
+/* SDX55 RPMH powerdomains */
+static struct rpmhpd *sdx55_rpmhpds[] = {
+	[SDX55_MSS] = &sdm845_mss,
+	[SDX55_MX] = &sdm845_mx,
+	[SDX55_CX] = &sdm845_cx,
+};
+
+static const struct rpmhpd_desc sdx55_desc = {
+	.rpmhpds = sdx55_rpmhpds,
+	.num_pds = ARRAY_SIZE(sdx55_rpmhpds),
+};
+
 /* SM8150 RPMH powerdomains */
 
 static struct rpmhpd sm8150_mmcx_ao;
@@ -205,6 +217,7 @@ static const struct rpmhpd_desc sc7180_desc = {
 static const struct of_device_id rpmhpd_match_table[] = {
 	{ .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },
 	{ .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
+	{ .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc},
 	{ .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
 	{ .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
 	{ }
-- 
2.26.2


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

* Re: [PATCH 2/2] soc: qcom: rpmhpd: Add SDX55 power domains
  2020-11-26  9:27 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SDX55 power domains Vinod Koul
@ 2020-11-26 11:28   ` Manivannan Sadhasivam
  0 siblings, 0 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2020-11-26 11:28 UTC (permalink / raw)
  To: Vinod Koul
  Cc: Bjorn Andersson, linux-arm-msm, Andy Gross, Rob Herring,
	Rajendra Nayak, devicetree, linux-kernel

On Thu, Nov 26, 2020 at 02:57:11PM +0530, Vinod Koul wrote:
> This adds the power domains found in SDX55 SoC. Downstream code tells me
> that we have 3 power domains so add them
> 
> Signed-off-by: Vinod Koul <vkoul@kernel.org>

Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

Thanks,
Mani

> ---
>  drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c
> index e72426221a69..4cb5d4ab82e2 100644
> --- a/drivers/soc/qcom/rpmhpd.c
> +++ b/drivers/soc/qcom/rpmhpd.c
> @@ -132,6 +132,18 @@ static const struct rpmhpd_desc sdm845_desc = {
>  	.num_pds = ARRAY_SIZE(sdm845_rpmhpds),
>  };
>  
> +/* SDX55 RPMH powerdomains */
> +static struct rpmhpd *sdx55_rpmhpds[] = {
> +	[SDX55_MSS] = &sdm845_mss,
> +	[SDX55_MX] = &sdm845_mx,
> +	[SDX55_CX] = &sdm845_cx,
> +};
> +
> +static const struct rpmhpd_desc sdx55_desc = {
> +	.rpmhpds = sdx55_rpmhpds,
> +	.num_pds = ARRAY_SIZE(sdx55_rpmhpds),
> +};
> +
>  /* SM8150 RPMH powerdomains */
>  
>  static struct rpmhpd sm8150_mmcx_ao;
> @@ -205,6 +217,7 @@ static const struct rpmhpd_desc sc7180_desc = {
>  static const struct of_device_id rpmhpd_match_table[] = {
>  	{ .compatible = "qcom,sc7180-rpmhpd", .data = &sc7180_desc },
>  	{ .compatible = "qcom,sdm845-rpmhpd", .data = &sdm845_desc },
> +	{ .compatible = "qcom,sdx55-rpmhpd", .data = &sdx55_desc},
>  	{ .compatible = "qcom,sm8150-rpmhpd", .data = &sm8150_desc },
>  	{ .compatible = "qcom,sm8250-rpmhpd", .data = &sm8250_desc },
>  	{ }
> -- 
> 2.26.2
> 

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

* Re: [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55
  2020-11-26  9:27 [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55 Vinod Koul
  2020-11-26  9:27 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SDX55 power domains Vinod Koul
@ 2020-11-26 11:29 ` Manivannan Sadhasivam
  1 sibling, 0 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2020-11-26 11:29 UTC (permalink / raw)
  To: Vinod Koul
  Cc: Bjorn Andersson, linux-arm-msm, Andy Gross, Rob Herring,
	Rajendra Nayak, devicetree, linux-kernel

On Thu, Nov 26, 2020 at 02:57:10PM +0530, Vinod Koul wrote:
> Add RPM power domain bindings for the SDX55 SoC
> 
> Signed-off-by: Vinod Koul <vkoul@kernel.org>

Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

Thanks,
Mani

> ---
>  Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
>  include/dt-bindings/power/qcom-rpmpd.h                  | 5 +++++
>  2 files changed, 6 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
> index 8058955fb3b9..fe20a73f47ca 100644
> --- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
> +++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
> @@ -22,6 +22,7 @@ properties:
>        - qcom,qcs404-rpmpd
>        - qcom,sc7180-rpmhpd
>        - qcom,sdm845-rpmhpd
> +      - qcom,sdx55-rpmhpd
>        - qcom,sm8150-rpmhpd
>        - qcom,sm8250-rpmhpd
>  
> diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
> index 5e61eaf73bdd..9fa2d66fca4a 100644
> --- a/include/dt-bindings/power/qcom-rpmpd.h
> +++ b/include/dt-bindings/power/qcom-rpmpd.h
> @@ -15,6 +15,11 @@
>  #define SDM845_GFX	7
>  #define SDM845_MSS	8
>  
> +/* SDX55 Power Domain Indexes */
> +#define SDX55_MSS	0
> +#define SDX55_MX	1
> +#define SDX55_CX	2
> +
>  /* SM8150 Power Domain Indexes */
>  #define SM8150_MSS	0
>  #define SM8150_EBI	1
> -- 
> 2.26.2
> 

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

end of thread, other threads:[~2020-11-26 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26  9:27 [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55 Vinod Koul
2020-11-26  9:27 ` [PATCH 2/2] soc: qcom: rpmhpd: Add SDX55 power domains Vinod Koul
2020-11-26 11:28   ` Manivannan Sadhasivam
2020-11-26 11:29 ` [PATCH 1/2] dt-bindings: power: Add rpm power domain bindings for sdx55 Manivannan Sadhasivam

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