Skip to contentSkip to conversation

dt-bindings: power: Add rpm power domain bindings for sdx55

PATCH In review Vinod Koul 2 participants 4 messages Nov 26, 2020

Subsystems (3)
lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

PATCH 1/2 dt-bindings: power: Add rpm power domain bindings for sdx55

Add RPM power domain bindings for the SDX55 SoC

---
 Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
 include/dt-bindings/power/qcom-rpmpd.h                  | 5 +++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +1 -0
index 8058955fb3b9..fe20a73f47ca 100644
@@ -22,6 +22,7 @@ properties:
       - qcom,qcs404-rpmpd
       - qcom,sc7180-rpmhpd
       - qcom,sdm845-rpmhpd
+      - qcom,sdx55-rpmhpd
       - qcom,sm8150-rpmhpd
       - qcom,sm8250-rpmhpd
 
include/dt-bindings/power/qcom-rpmpd.h +5 -0
index 5e61eaf73bdd..9fa2d66fca4a 100644
@@ -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
Signature · 1 line
2.26.2
author
#1 lore raw

PATCH 2/2 soc: qcom: rpmhpd: Add SDX55 power domains

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

---
 drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/soc/qcom/rpmhpd.c +13 -0
index e72426221a69..4cb5d4ab82e2 100644
@@ -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 },
 	{ }
Signature · 1 line
2.26.2
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] soc: qcom: rpmhpd: Add SDX55 power domains

Quoted 4 lines · Vinod Koul

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

Thanks,
Mani

Quoted 38 lines
---
 drivers/soc/qcom/rpmhpd.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/soc/qcom/rpmhpd.c +13 -0
index e72426221a69..4cb5d4ab82e2 100644
@@ -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 },
 	{ }
Signature · 1 line
2.26.2
Acked-by on v1 1/2
#3 lore raw
In reply to Vinod Koul
Quoted 3 lines · Vinod Koul

Add RPM power domain bindings for the SDX55 SoC

Thanks,
Mani

Quoted 36 lines
---
 Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
 include/dt-bindings/power/qcom-rpmpd.h                  | 5 +++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/power/qcom,rpmpd.yaml +1 -0
index 8058955fb3b9..fe20a73f47ca 100644
@@ -22,6 +22,7 @@ properties:
       - qcom,qcs404-rpmpd
       - qcom,sc7180-rpmhpd
       - qcom,sdm845-rpmhpd
+      - qcom,sdx55-rpmhpd
       - qcom,sm8150-rpmhpd
       - qcom,sm8250-rpmhpd
 
include/dt-bindings/power/qcom-rpmpd.h +5 -0
index 5e61eaf73bdd..9fa2d66fca4a 100644
@@ -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
Signature · 1 line
2.26.2