LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 0/4] Add MSM8953 RPM support
@ 2021-08-25 16:52 Sireesh Kodali
  2021-08-25 16:59 ` [PATCH 1/4] dt-bindings: soc: qcom: smd-rpm: Add compatible for MSM8953 SoC Sireesh Kodali
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Sireesh Kodali @ 2021-08-25 16:52 UTC (permalink / raw)
  To: bjorn.andersson, agross, robh+dt, rnayak
  Cc: devicetree, linux-arm-msm, linux-kernel, phone-devel,
	~postmarketos/upstreaming, Sireesh Kodali

This patch series adds support for the RPM SMD regulators and power domains
 as found on the MSM8953 platform (SMD450, SDA450, SDM625, SDM632, APQ8053)

Vladimir Lypak (4):
  dt-bindings: soc: qcom: smd-rpm: Add compatible for MSM8953 SoC
  soc: qcom: smd-rpm: Add compatible for MSM8953 SoC
  dt-bindings: power: rpmpd: Add MSM8953 to rpmpd binding
  soc: qcom: rpmpd: Add power domains for MSM8953

 .../devicetree/bindings/power/qcom,rpmpd.yaml |  1 +
 .../bindings/soc/qcom/qcom,smd-rpm.yaml       |  2 ++
 drivers/soc/qcom/rpmpd.c                      | 24 +++++++++++++++++++
 drivers/soc/qcom/smd-rpm.c                    |  1 +
 include/dt-bindings/power/qcom-rpmpd.h        |  9 +++++++
 5 files changed, 37 insertions(+)

-- 
2.33.0


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

* [PATCH 1/4] dt-bindings: soc: qcom: smd-rpm: Add compatible for MSM8953 SoC
  2021-08-25 16:52 [PATCH 0/4] Add MSM8953 RPM support Sireesh Kodali
@ 2021-08-25 16:59 ` Sireesh Kodali
  2021-08-31 20:03   ` Rob Herring
  2021-08-25 17:01 ` [PATCH 2/4] " Sireesh Kodali
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Sireesh Kodali @ 2021-08-25 16:59 UTC (permalink / raw)
  Cc: phone-devel, ~postmarketos/upstreaming, Vladimir Lypak,
	Adam Skladowski, Sireesh Kodali, Andy Gross, Bjorn Andersson,
	Rob Herring, Kathiravan T, open list:ARM/QUALCOMM SUPPORT,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

From: Vladimir Lypak <vladimir.lypak@gmail.com>

Document compatible for MSM8953 SoC.

Signed-off-by: Vladimir Lypak <vladimir.lypak@gmail.com>
Signed-off-by: Adam Skladowski <a_skl39@protonmail.com>
Signed-off-by: Sireesh Kodali <sireeshkodali1@gmail.com>
---
 Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml
index cc3fe5ed7421..77963b86b714 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml
@@ -34,6 +34,7 @@ properties:
       - qcom,rpm-ipq6018
       - qcom,rpm-msm8226
       - qcom,rpm-msm8916
+      - qcom,rpm-msm8953
       - qcom,rpm-msm8974
       - qcom,rpm-msm8976
       - qcom,rpm-msm8996
@@ -57,6 +58,7 @@ if:
           - qcom,rpm-apq8084
           - qcom,rpm-msm8916
           - qcom,rpm-msm8974
+          - qcom,rpm-msm8953
 then:
   required:
     - qcom,smd-channels
-- 
2.33.0


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

* [PATCH 2/4] soc: qcom: smd-rpm: Add compatible for MSM8953 SoC
  2021-08-25 16:52 [PATCH 0/4] Add MSM8953 RPM support Sireesh Kodali
  2021-08-25 16:59 ` [PATCH 1/4] dt-bindings: soc: qcom: smd-rpm: Add compatible for MSM8953 SoC Sireesh Kodali
@ 2021-08-25 17:01 ` Sireesh Kodali
  2021-08-25 17:02 ` [PATCH 3/4] dt-bindings: power: rpmpd: Add MSM8953 to rpmpd binding Sireesh Kodali
  2021-08-25 17:02 ` [PATCH 4/4] soc: qcom: rpmpd: Add power domains for MSM8953 Sireesh Kodali
  3 siblings, 0 replies; 7+ messages in thread
From: Sireesh Kodali @ 2021-08-25 17:01 UTC (permalink / raw)
  To: sireeshkodali1
  Cc: phone-devel, ~postmarketos/upstreaming, Vladimir Lypak,
	Adam Skladowski, Andy Gross, Bjorn Andersson,
	open list:ARM/QUALCOMM SUPPORT, open list

From: Vladimir Lypak <vladimir.lypak@gmail.com>

Add a compatible for MSM8953

Signed-off-by: Vladimir Lypak <vladimir.lypak@gmail.com>
Signed-off-by: Adam Skladowski <a_skl39@protonmail.com>
Signed-off-by: Sireesh Kodali <sireeshkodali1@gmail.com>
---
 drivers/soc/qcom/smd-rpm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c
index dfdd4f20f5fd..fb4896d7a9a7 100644
--- a/drivers/soc/qcom/smd-rpm.c
+++ b/drivers/soc/qcom/smd-rpm.c
@@ -236,6 +236,7 @@ static const struct of_device_id qcom_smd_rpm_of_match[] = {
 	{ .compatible = "qcom,rpm-msm8226" },
 	{ .compatible = "qcom,rpm-msm8916" },
 	{ .compatible = "qcom,rpm-msm8936" },
+	{ .compatible = "qcom,rpm-msm8953" },
 	{ .compatible = "qcom,rpm-msm8974" },
 	{ .compatible = "qcom,rpm-msm8976" },
 	{ .compatible = "qcom,rpm-msm8994" },
-- 
2.33.0


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

* [PATCH 3/4] dt-bindings: power: rpmpd: Add MSM8953 to rpmpd binding
  2021-08-25 16:52 [PATCH 0/4] Add MSM8953 RPM support Sireesh Kodali
  2021-08-25 16:59 ` [PATCH 1/4] dt-bindings: soc: qcom: smd-rpm: Add compatible for MSM8953 SoC Sireesh Kodali
  2021-08-25 17:01 ` [PATCH 2/4] " Sireesh Kodali
@ 2021-08-25 17:02 ` Sireesh Kodali
  2021-08-31 20:03   ` Rob Herring
  2021-08-25 17:02 ` [PATCH 4/4] soc: qcom: rpmpd: Add power domains for MSM8953 Sireesh Kodali
  3 siblings, 1 reply; 7+ messages in thread
From: Sireesh Kodali @ 2021-08-25 17:02 UTC (permalink / raw)
  To: sireeshkodali1
  Cc: phone-devel, ~postmarketos/upstreaming, Vladimir Lypak,
	Adam Skladowski, Andy Gross, Bjorn Andersson, Rob Herring,
	Rajendra Nayak, open list:ARM/QUALCOMM SUPPORT,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

From: Vladimir Lypak <vladimir.lypak@gmail.com>

Add compatible and constants for the power domains exposed by the RPM
in the Qualcomm MSM8953 platform.

Signed-off-by: Vladimir Lypak <vladimir.lypak@gmail.com>
Signed-off-by: Adam Skladowski <a_skl39@protonmail.com>
Signed-off-by: Sireesh Kodali <sireeshkodali1@gmail.com>
---
 Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
 include/dt-bindings/power/qcom-rpmpd.h                  | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index 239f37881cae..996ddd360de9 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -19,6 +19,7 @@ properties:
       - qcom,mdm9607-rpmpd
       - qcom,msm8916-rpmpd
       - qcom,msm8939-rpmpd
+      - qcom,msm8953-rpmpd
       - qcom,msm8976-rpmpd
       - qcom,msm8994-rpmpd
       - qcom,msm8996-rpmpd
diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
index 4533dbbf9937..f367cf6fedf3 100644
--- a/include/dt-bindings/power/qcom-rpmpd.h
+++ b/include/dt-bindings/power/qcom-rpmpd.h
@@ -133,6 +133,15 @@
 #define MSM8916_VDDMX		3
 #define MSM8916_VDDMX_AO	4
 
+/* MSM8953 Power Domain Indexes */
+#define MSM8953_VDDMD		0
+#define MSM8953_VDDMD_AO	1
+#define MSM8953_VDDCX		2
+#define MSM8953_VDDCX_AO	3
+#define MSM8953_VDDCX_VFL	4
+#define MSM8953_VDDMX		5
+#define MSM8953_VDDMX_AO	6
+
 /* MSM8976 Power Domain Indexes */
 #define MSM8976_VDDCX		0
 #define MSM8976_VDDCX_AO	1
-- 
2.33.0


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

* [PATCH 4/4] soc: qcom: rpmpd: Add power domains for MSM8953
  2021-08-25 16:52 [PATCH 0/4] Add MSM8953 RPM support Sireesh Kodali
                   ` (2 preceding siblings ...)
  2021-08-25 17:02 ` [PATCH 3/4] dt-bindings: power: rpmpd: Add MSM8953 to rpmpd binding Sireesh Kodali
@ 2021-08-25 17:02 ` Sireesh Kodali
  3 siblings, 0 replies; 7+ messages in thread
From: Sireesh Kodali @ 2021-08-25 17:02 UTC (permalink / raw)
  To: sireeshkodali1
  Cc: phone-devel, ~postmarketos/upstreaming, Vladimir Lypak,
	Adam Skladowski, Andy Gross, Bjorn Andersson,
	open list:ARM/QUALCOMM SUPPORT, open list

From: Vladimir Lypak <vladimir.lypak@gmail.com>

Add support for MSM8953 power domains.

Signed-off-by: Vladimir Lypak <vladimir.lypak@gmail.com>
Signed-off-by: Adam Skladowski <a_skl39@protonmail.com>
Signed-off-by: Sireesh Kodali <sireeshkodali1@gmail.com>
---
 drivers/soc/qcom/rpmpd.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c
index dbf494e92574..4f69fb9b2e0e 100644
--- a/drivers/soc/qcom/rpmpd.c
+++ b/drivers/soc/qcom/rpmpd.c
@@ -185,6 +185,29 @@ static const struct rpmpd_desc msm8916_desc = {
 	.max_state = MAX_CORNER_RPMPD_STATE,
 };
 
+/* msm8953 RPM Power Domains */
+DEFINE_RPMPD_PAIR(msm8953, vddmd, vddmd_ao, SMPA, LEVEL, 1);
+DEFINE_RPMPD_PAIR(msm8953, vddcx, vddcx_ao, SMPA, LEVEL, 2);
+DEFINE_RPMPD_PAIR(msm8953, vddmx, vddmx_ao, SMPA, LEVEL, 7);
+
+DEFINE_RPMPD_VFL(msm8953, vddcx_vfl, SMPA, 2);
+
+static struct rpmpd *msm8953_rpmpds[] = {
+	[MSM8953_VDDMD] =	&msm8953_vddmd,
+	[MSM8953_VDDMD_AO] =	&msm8953_vddmd_ao,
+	[MSM8953_VDDCX] =	&msm8953_vddcx,
+	[MSM8953_VDDCX_AO] =	&msm8953_vddcx_ao,
+	[MSM8953_VDDCX_VFL] =	&msm8953_vddcx_vfl,
+	[MSM8953_VDDMX] =	&msm8953_vddmx,
+	[MSM8953_VDDMX_AO] =	&msm8953_vddmx_ao,
+};
+
+static const struct rpmpd_desc msm8953_desc = {
+	.rpmpds = msm8953_rpmpds,
+	.num_pds = ARRAY_SIZE(msm8953_rpmpds),
+	.max_state = RPM_SMD_LEVEL_TURBO,
+};
+
 /* msm8976 RPM Power Domains */
 DEFINE_RPMPD_PAIR(msm8976, vddcx, vddcx_ao, SMPA, LEVEL, 2);
 DEFINE_RPMPD_PAIR(msm8976, vddmx, vddmx_ao, SMPA, LEVEL, 6);
@@ -377,6 +400,7 @@ static const struct of_device_id rpmpd_match_table[] = {
 	{ .compatible = "qcom,mdm9607-rpmpd", .data = &mdm9607_desc },
 	{ .compatible = "qcom,msm8916-rpmpd", .data = &msm8916_desc },
 	{ .compatible = "qcom,msm8939-rpmpd", .data = &msm8939_desc },
+	{ .compatible = "qcom,msm8953-rpmpd", .data = &msm8953_desc },
 	{ .compatible = "qcom,msm8976-rpmpd", .data = &msm8976_desc },
 	{ .compatible = "qcom,msm8994-rpmpd", .data = &msm8994_desc },
 	{ .compatible = "qcom,msm8996-rpmpd", .data = &msm8996_desc },
-- 
2.33.0


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

* Re: [PATCH 1/4] dt-bindings: soc: qcom: smd-rpm: Add compatible for MSM8953 SoC
  2021-08-25 16:59 ` [PATCH 1/4] dt-bindings: soc: qcom: smd-rpm: Add compatible for MSM8953 SoC Sireesh Kodali
@ 2021-08-31 20:03   ` Rob Herring
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Herring @ 2021-08-31 20:03 UTC (permalink / raw)
  To: Sireesh Kodali
  Cc: linux-kernel, Andy Gross, Bjorn Andersson, devicetree,
	linux-arm-msm, Rob Herring, ~postmarketos/upstreaming,
	Vladimir Lypak, Adam Skladowski, Kathiravan T, phone-devel

On Wed, 25 Aug 2021 22:29:42 +0530, Sireesh Kodali wrote:
> From: Vladimir Lypak <vladimir.lypak@gmail.com>
> 
> Document compatible for MSM8953 SoC.
> 
> Signed-off-by: Vladimir Lypak <vladimir.lypak@gmail.com>
> Signed-off-by: Adam Skladowski <a_skl39@protonmail.com>
> Signed-off-by: Sireesh Kodali <sireeshkodali1@gmail.com>
> ---
>  Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 

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

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

* Re: [PATCH 3/4] dt-bindings: power: rpmpd: Add MSM8953 to rpmpd binding
  2021-08-25 17:02 ` [PATCH 3/4] dt-bindings: power: rpmpd: Add MSM8953 to rpmpd binding Sireesh Kodali
@ 2021-08-31 20:03   ` Rob Herring
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Herring @ 2021-08-31 20:03 UTC (permalink / raw)
  To: Sireesh Kodali
  Cc: phone-devel, linux-kernel, Rajendra Nayak, Andy Gross,
	devicetree, Vladimir Lypak, Rob Herring, Bjorn Andersson,
	~postmarketos/upstreaming, Adam Skladowski, linux-arm-msm

On Wed, 25 Aug 2021 22:32:32 +0530, Sireesh Kodali wrote:
> From: Vladimir Lypak <vladimir.lypak@gmail.com>
> 
> Add compatible and constants for the power domains exposed by the RPM
> in the Qualcomm MSM8953 platform.
> 
> Signed-off-by: Vladimir Lypak <vladimir.lypak@gmail.com>
> Signed-off-by: Adam Skladowski <a_skl39@protonmail.com>
> Signed-off-by: Sireesh Kodali <sireeshkodali1@gmail.com>
> ---
>  Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
>  include/dt-bindings/power/qcom-rpmpd.h                  | 9 +++++++++
>  2 files changed, 10 insertions(+)
> 

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

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

end of thread, other threads:[~2021-08-31 20:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 16:52 [PATCH 0/4] Add MSM8953 RPM support Sireesh Kodali
2021-08-25 16:59 ` [PATCH 1/4] dt-bindings: soc: qcom: smd-rpm: Add compatible for MSM8953 SoC Sireesh Kodali
2021-08-31 20:03   ` Rob Herring
2021-08-25 17:01 ` [PATCH 2/4] " Sireesh Kodali
2021-08-25 17:02 ` [PATCH 3/4] dt-bindings: power: rpmpd: Add MSM8953 to rpmpd binding Sireesh Kodali
2021-08-31 20:03   ` Rob Herring
2021-08-25 17:02 ` [PATCH 4/4] soc: qcom: rpmpd: Add power domains for MSM8953 Sireesh Kodali

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