linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450
@ 2021-12-01  7:25 Vinod Koul
  2021-12-01  7:25 ` [PATCH 1/2] regulator: qcom,rpmh: Add compatible " Vinod Koul
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Vinod Koul @ 2021-12-01  7:25 UTC (permalink / raw)
  To: Mark Brown, Rob Herring
  Cc: linux-arm-msm, Bjorn Andersson, Vinod Koul, Andy Gross,
	Liam Girdwood, David Collins, linux-kernel, devicetree

This add the binding and driver update to support the PM8450 which is found
in SM8450 platform

Vinod Koul (2):
  regulator: qcom,rpmh: Add compatible for PM8450
  regulator: qcom-rpmh: Add support for PM8450 regulators

 .../regulator/qcom,rpmh-regulator.yaml         |  2 ++
 drivers/regulator/qcom-rpmh-regulator.c        | 18 ++++++++++++++++++
 2 files changed, 20 insertions(+)

-- 
2.31.1


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

* [PATCH 1/2] regulator: qcom,rpmh: Add compatible for PM8450
  2021-12-01  7:25 [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450 Vinod Koul
@ 2021-12-01  7:25 ` Vinod Koul
  2021-12-01  7:25 ` [PATCH 2/2] regulator: qcom-rpmh: Add support for PM8450 regulators Vinod Koul
  2021-12-01 18:32 ` [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450 Mark Brown
  2 siblings, 0 replies; 5+ messages in thread
From: Vinod Koul @ 2021-12-01  7:25 UTC (permalink / raw)
  To: Mark Brown, Rob Herring
  Cc: linux-arm-msm, Bjorn Andersson, Vinod Koul, Andy Gross,
	Liam Girdwood, David Collins, linux-kernel, devicetree

Add compatible string for PM8450 used in SM8450 boards.

Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
 .../devicetree/bindings/regulator/qcom,rpmh-regulator.yaml      | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
index b959504e0ea4..6c04f256d497 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
@@ -43,6 +43,7 @@ description: |
       For PM8150L, smps1 - smps8, ldo1 - ldo11, bob, flash, rgb
       For PM8350, smps1 - smps12, ldo1 - ldo10
       For PM8350C, smps1 - smps10, ldo1 - ldo13, bob
+      For PM8450, smps1 - smps6, ldo1 - ldo4
       For PM8998, smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2
       For PMI8998, bob
       For PMR735A, smps1 - smps3, ldo1 - ldo7
@@ -62,6 +63,7 @@ properties:
       - qcom,pm8150l-rpmh-regulators
       - qcom,pm8350-rpmh-regulators
       - qcom,pm8350c-rpmh-regulators
+      - qcom,pm8450-rpmh-regulators
       - qcom,pm8998-rpmh-regulators
       - qcom,pmi8998-rpmh-regulators
       - qcom,pmm8155au-rpmh-regulators
-- 
2.31.1


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

* [PATCH 2/2] regulator: qcom-rpmh: Add support for PM8450 regulators
  2021-12-01  7:25 [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450 Vinod Koul
  2021-12-01  7:25 ` [PATCH 1/2] regulator: qcom,rpmh: Add compatible " Vinod Koul
@ 2021-12-01  7:25 ` Vinod Koul
  2021-12-01 12:11   ` Dmitry Baryshkov
  2021-12-01 18:32 ` [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450 Mark Brown
  2 siblings, 1 reply; 5+ messages in thread
From: Vinod Koul @ 2021-12-01  7:25 UTC (permalink / raw)
  To: Mark Brown, Rob Herring
  Cc: linux-arm-msm, Bjorn Andersson, Vinod Koul, Andy Gross,
	Liam Girdwood, David Collins, linux-kernel, devicetree

Add the rpmh regulators found in PM8450 PMIC

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

diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
index 12425f667c00..cea6d7413864 100644
--- a/drivers/regulator/qcom-rpmh-regulator.c
+++ b/drivers/regulator/qcom-rpmh-regulator.c
@@ -969,6 +969,20 @@ static const struct rpmh_vreg_init_data pm8350c_vreg_data[] = {
 	{}
 };
 
+static const struct rpmh_vreg_init_data pm8450_vreg_data[] = {
+	RPMH_VREG("smps1",  "smp%s1",  &pmic5_ftsmps520, "vdd-s1"),
+	RPMH_VREG("smps2",  "smp%s2",  &pmic5_ftsmps520, "vdd-s2"),
+	RPMH_VREG("smps3",  "smp%s3",  &pmic5_ftsmps520, "vdd-s3"),
+	RPMH_VREG("smps4",  "smp%s4",  &pmic5_ftsmps520, "vdd-s4"),
+	RPMH_VREG("smps5",  "smp%s5",  &pmic5_ftsmps520, "vdd-s5"),
+	RPMH_VREG("smps6",  "smp%s6",  &pmic5_ftsmps520, "vdd-s6"),
+	RPMH_VREG("ldo1",   "ldo%s1",  &pmic5_nldo,      "vdd-l1"),
+	RPMH_VREG("ldo2",   "ldo%s2",  &pmic5_nldo,      "vdd-l2"),
+	RPMH_VREG("ldo3",   "ldo%s3",  &pmic5_nldo,      "vdd-l3"),
+	RPMH_VREG("ldo4",   "ldo%s4",  &pmic5_pldo_lv,   "vdd-l4"),
+	{}
+};
+
 static const struct rpmh_vreg_init_data pm8009_vreg_data[] = {
 	RPMH_VREG("smps1",  "smp%s1",  &pmic5_hfsmps510, "vdd-s1"),
 	RPMH_VREG("smps2",  "smp%s2",  &pmic5_hfsmps515, "vdd-s2"),
@@ -1213,6 +1227,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
 		.compatible = "qcom,pm8350c-rpmh-regulators",
 		.data = pm8350c_vreg_data,
 	},
+	{
+		.compatible = "qcom,pm8450-rpmh-regulators",
+		.data = pm8450_vreg_data,
+	},
 	{
 		.compatible = "qcom,pm8998-rpmh-regulators",
 		.data = pm8998_vreg_data,
-- 
2.31.1


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

* Re: [PATCH 2/2] regulator: qcom-rpmh: Add support for PM8450 regulators
  2021-12-01  7:25 ` [PATCH 2/2] regulator: qcom-rpmh: Add support for PM8450 regulators Vinod Koul
@ 2021-12-01 12:11   ` Dmitry Baryshkov
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Baryshkov @ 2021-12-01 12:11 UTC (permalink / raw)
  To: Vinod Koul, Mark Brown, Rob Herring
  Cc: linux-arm-msm, Bjorn Andersson, Andy Gross, Liam Girdwood,
	David Collins, linux-kernel, devicetree

On 01/12/2021 10:25, Vinod Koul wrote:
> Add the rpmh regulators found in PM8450 PMIC
> 
> Signed-off-by: Vinod Koul <vkoul@kernel.org>

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


> ---
>   drivers/regulator/qcom-rpmh-regulator.c | 18 ++++++++++++++++++
>   1 file changed, 18 insertions(+)
> 
> diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
> index 12425f667c00..cea6d7413864 100644
> --- a/drivers/regulator/qcom-rpmh-regulator.c
> +++ b/drivers/regulator/qcom-rpmh-regulator.c
> @@ -969,6 +969,20 @@ static const struct rpmh_vreg_init_data pm8350c_vreg_data[] = {
>   	{}
>   };
>   
> +static const struct rpmh_vreg_init_data pm8450_vreg_data[] = {
> +	RPMH_VREG("smps1",  "smp%s1",  &pmic5_ftsmps520, "vdd-s1"),
> +	RPMH_VREG("smps2",  "smp%s2",  &pmic5_ftsmps520, "vdd-s2"),
> +	RPMH_VREG("smps3",  "smp%s3",  &pmic5_ftsmps520, "vdd-s3"),
> +	RPMH_VREG("smps4",  "smp%s4",  &pmic5_ftsmps520, "vdd-s4"),
> +	RPMH_VREG("smps5",  "smp%s5",  &pmic5_ftsmps520, "vdd-s5"),
> +	RPMH_VREG("smps6",  "smp%s6",  &pmic5_ftsmps520, "vdd-s6"),
> +	RPMH_VREG("ldo1",   "ldo%s1",  &pmic5_nldo,      "vdd-l1"),
> +	RPMH_VREG("ldo2",   "ldo%s2",  &pmic5_nldo,      "vdd-l2"),
> +	RPMH_VREG("ldo3",   "ldo%s3",  &pmic5_nldo,      "vdd-l3"),
> +	RPMH_VREG("ldo4",   "ldo%s4",  &pmic5_pldo_lv,   "vdd-l4"),
> +	{}
> +};
> +
>   static const struct rpmh_vreg_init_data pm8009_vreg_data[] = {
>   	RPMH_VREG("smps1",  "smp%s1",  &pmic5_hfsmps510, "vdd-s1"),
>   	RPMH_VREG("smps2",  "smp%s2",  &pmic5_hfsmps515, "vdd-s2"),
> @@ -1213,6 +1227,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
>   		.compatible = "qcom,pm8350c-rpmh-regulators",
>   		.data = pm8350c_vreg_data,
>   	},
> +	{
> +		.compatible = "qcom,pm8450-rpmh-regulators",
> +		.data = pm8450_vreg_data,
> +	},
>   	{
>   		.compatible = "qcom,pm8998-rpmh-regulators",
>   		.data = pm8998_vreg_data,
> 


-- 
With best wishes
Dmitry

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

* Re: [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450
  2021-12-01  7:25 [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450 Vinod Koul
  2021-12-01  7:25 ` [PATCH 1/2] regulator: qcom,rpmh: Add compatible " Vinod Koul
  2021-12-01  7:25 ` [PATCH 2/2] regulator: qcom-rpmh: Add support for PM8450 regulators Vinod Koul
@ 2021-12-01 18:32 ` Mark Brown
  2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2021-12-01 18:32 UTC (permalink / raw)
  To: Rob Herring, Vinod Koul
  Cc: Liam Girdwood, David Collins, Bjorn Andersson, linux-kernel,
	linux-arm-msm, devicetree, Andy Gross

On Wed, 1 Dec 2021 12:55:13 +0530, Vinod Koul wrote:
> This add the binding and driver update to support the PM8450 which is found
> in SM8450 platform
> 
> Vinod Koul (2):
>   regulator: qcom,rpmh: Add compatible for PM8450
>   regulator: qcom-rpmh: Add support for PM8450 regulators
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/2] regulator: qcom,rpmh: Add compatible for PM8450
      commit: fa3b06f59a03a3a4639755478e0cf5b508a1b454
[2/2] regulator: qcom-rpmh: Add support for PM8450 regulators
      commit: d69e19723f88a3ba6d4e0e52f51dd4c59cc2ae93

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

end of thread, other threads:[~2021-12-01 18:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01  7:25 [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450 Vinod Koul
2021-12-01  7:25 ` [PATCH 1/2] regulator: qcom,rpmh: Add compatible " Vinod Koul
2021-12-01  7:25 ` [PATCH 2/2] regulator: qcom-rpmh: Add support for PM8450 regulators Vinod Koul
2021-12-01 12:11   ` Dmitry Baryshkov
2021-12-01 18:32 ` [PATCH 0/2] regulator: qcom,rpmh: Add support for PM8450 Mark Brown

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