devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP
@ 2023-10-25 13:55 Sibi Sankar
  2023-10-25 13:55 ` [PATCH 1/2] dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible Sibi Sankar
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sibi Sankar @ 2023-10-25 13:55 UTC (permalink / raw)
  To: andersson, konrad.dybcio, broonie, lgirdwood, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, quic_tsoni, neil.armstrong, Sibi Sankar

This series adds regulator support for the Qualcomm SC8380XP platform, aka Snapdragon X Elite.

Release Link: https://www.qualcomm.com/news/releases/2023/10/qualcomm-unleashes-snapdragon-x-elite--the-ai-super-charged-plat

Rajendra Nayak (2):
  dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible
  regulator: qcom-rpmh: Add regulators support for PMC8380

 .../regulator/qcom,rpmh-regulator.yaml        | 12 ++++++++++++
 drivers/regulator/qcom-rpmh-regulator.c       | 19 +++++++++++++++++++
 2 files changed, 31 insertions(+)

-- 
2.17.1


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

* [PATCH 1/2] dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible
  2023-10-25 13:55 [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP Sibi Sankar
@ 2023-10-25 13:55 ` Sibi Sankar
  2023-10-27 12:30   ` Krzysztof Kozlowski
  2023-10-25 13:55 ` [PATCH 2/2] regulator: qcom-rpmh: Add regulators support for PMC8380 Sibi Sankar
  2023-10-26 14:06 ` [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP Mark Brown
  2 siblings, 1 reply; 6+ messages in thread
From: Sibi Sankar @ 2023-10-25 13:55 UTC (permalink / raw)
  To: andersson, konrad.dybcio, broonie, lgirdwood, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, quic_tsoni, neil.armstrong, Sibi Sankar

From: Rajendra Nayak <quic_rjendra@quicinc.com>

Add PMC8380 compatibles for PMIC found in SC8380XP platform.

Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
---
 .../bindings/regulator/qcom,rpmh-regulator.yaml      | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
index 127a6f39b7f0..acd37f28ef53 100644
--- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
+++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml
@@ -50,6 +50,7 @@ description: |
       For PM8550, smps1 - smps6, ldo1 - ldo17, bob1 - bob2
       For PM8998, smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2
       For PMI8998, bob
+      For PMC8380, smps1 - smps8, ldo1 - lodo3
       For PMR735A, smps1 - smps3, ldo1 - ldo7
       For PMX55, smps1 - smps7, ldo1 - ldo16
       For PMX65, smps1 - smps8, ldo1 - ldo21
@@ -78,6 +79,7 @@ properties:
       - qcom,pm8998-rpmh-regulators
       - qcom,pmc8180-rpmh-regulators
       - qcom,pmc8180c-rpmh-regulators
+      - qcom,pmc8380-rpmh-regulators
       - qcom,pmg1110-rpmh-regulators
       - qcom,pmi8998-rpmh-regulators
       - qcom,pmm8155au-rpmh-regulators
@@ -364,6 +366,16 @@ allOf:
       patternProperties:
         "^vdd-s([1-9]|1[0-3])-supply$": true
 
+  - if:
+      properties:
+        compatible:
+          enum:
+            - qcom,pmc8380-rpmh-regulators
+    then:
+      patternProperties:
+        "^vdd-l[1-3]-supply$": true
+        "^vdd-s[1-8]-supply$": true
+
   - if:
       properties:
         compatible:
-- 
2.17.1


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

* [PATCH 2/2] regulator: qcom-rpmh: Add regulators support for PMC8380
  2023-10-25 13:55 [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP Sibi Sankar
  2023-10-25 13:55 ` [PATCH 1/2] dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible Sibi Sankar
@ 2023-10-25 13:55 ` Sibi Sankar
  2023-10-25 17:32   ` Dmitry Baryshkov
  2023-10-26 14:06 ` [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP Mark Brown
  2 siblings, 1 reply; 6+ messages in thread
From: Sibi Sankar @ 2023-10-25 13:55 UTC (permalink / raw)
  To: andersson, konrad.dybcio, broonie, lgirdwood, robh+dt,
	krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, quic_tsoni, neil.armstrong, Sibi Sankar

From: Rajendra Nayak <quic_rjendra@quicinc.com>

Add support from RPMH regulators found in PMC8380 for SC8380XP platform.

Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com>
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
---
 drivers/regulator/qcom-rpmh-regulator.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
index b2e359ac3169..cf502eec0915 100644
--- a/drivers/regulator/qcom-rpmh-regulator.c
+++ b/drivers/regulator/qcom-rpmh-regulator.c
@@ -1106,6 +1106,21 @@ static const struct rpmh_vreg_init_data pm8550ve_vreg_data[] = {
 	{}
 };
 
+static const struct rpmh_vreg_init_data pmc8380_vreg_data[] = {
+	RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps525_lv, "vdd-s1"),
+	RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps525_lv, "vdd-s2"),
+	RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps525_lv, "vdd-s3"),
+	RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps525_mv, "vdd-s4"),
+	RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps525_lv, "vdd-s5"),
+	RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps525_lv, "vdd-s6"),
+	RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps525_lv, "vdd-s7"),
+	RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps525_lv, "vdd-s8"),
+	RPMH_VREG("ldo1",  "ldo%s1", &pmic5_nldo515,   "vdd-l1"),
+	RPMH_VREG("ldo2",  "ldo%s2", &pmic5_nldo515,   "vdd-l2"),
+	RPMH_VREG("ldo3",  "ldo%s3", &pmic5_nldo515,   "vdd-l3"),
+	{}
+};
+
 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"),
@@ -1511,6 +1526,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
 		.compatible = "qcom,pmc8180c-rpmh-regulators",
 		.data = pm8150l_vreg_data,
 	},
+	{
+		.compatible = "qcom,pmc8380-rpmh-regulators",
+		.data = pmc8380_vreg_data,
+	},
 	{
 		.compatible = "qcom,pmm8155au-rpmh-regulators",
 		.data = pmm8155au_vreg_data,
-- 
2.17.1


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

* Re: [PATCH 2/2] regulator: qcom-rpmh: Add regulators support for PMC8380
  2023-10-25 13:55 ` [PATCH 2/2] regulator: qcom-rpmh: Add regulators support for PMC8380 Sibi Sankar
@ 2023-10-25 17:32   ` Dmitry Baryshkov
  0 siblings, 0 replies; 6+ messages in thread
From: Dmitry Baryshkov @ 2023-10-25 17:32 UTC (permalink / raw)
  To: Sibi Sankar
  Cc: andersson, konrad.dybcio, broonie, lgirdwood, robh+dt,
	krzysztof.kozlowski+dt, agross, conor+dt, quic_rjendra, abel.vesa,
	linux-arm-msm, devicetree, linux-kernel, quic_tsoni,
	neil.armstrong

On Wed, 25 Oct 2023 at 16:57, Sibi Sankar <quic_sibis@quicinc.com> wrote:
>
> From: Rajendra Nayak <quic_rjendra@quicinc.com>
>
> Add support from RPMH regulators found in PMC8380 for SC8380XP platform.
>
> Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com>
> Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>

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

>  drivers/regulator/qcom-rpmh-regulator.c | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)

-- 
With best wishes
Dmitry

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

* Re: [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP
  2023-10-25 13:55 [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP Sibi Sankar
  2023-10-25 13:55 ` [PATCH 1/2] dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible Sibi Sankar
  2023-10-25 13:55 ` [PATCH 2/2] regulator: qcom-rpmh: Add regulators support for PMC8380 Sibi Sankar
@ 2023-10-26 14:06 ` Mark Brown
  2 siblings, 0 replies; 6+ messages in thread
From: Mark Brown @ 2023-10-26 14:06 UTC (permalink / raw)
  To: andersson, konrad.dybcio, lgirdwood, robh+dt,
	krzysztof.kozlowski+dt, Sibi Sankar
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, quic_tsoni, neil.armstrong

On Wed, 25 Oct 2023 19:25:48 +0530, Sibi Sankar wrote:
> This series adds regulator support for the Qualcomm SC8380XP platform, aka Snapdragon X Elite.
> 
> Release Link: https://www.qualcomm.com/news/releases/2023/10/qualcomm-unleashes-snapdragon-x-elite--the-ai-super-charged-plat
> 
> Rajendra Nayak (2):
>   dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible
>   regulator: qcom-rpmh: Add regulators support for PMC8380
> 
> [...]

Applied to

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

Thanks!

[1/2] dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible
      commit: ae61939cdf378ae3acc5716ccb43fef3cdace36e
[2/2] regulator: qcom-rpmh: Add regulators support for PMC8380
      commit: afb823a5843e6790106fcfe5029cfa736e05007f

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] 6+ messages in thread

* Re: [PATCH 1/2] dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible
  2023-10-25 13:55 ` [PATCH 1/2] dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible Sibi Sankar
@ 2023-10-27 12:30   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2023-10-27 12:30 UTC (permalink / raw)
  To: Sibi Sankar, andersson, konrad.dybcio, broonie, lgirdwood,
	robh+dt, krzysztof.kozlowski+dt
  Cc: agross, conor+dt, quic_rjendra, abel.vesa, linux-arm-msm,
	devicetree, linux-kernel, quic_tsoni, neil.armstrong

On 25/10/2023 15:55, Sibi Sankar wrote:
> From: Rajendra Nayak <quic_rjendra@quicinc.com>
> 
> Add PMC8380 compatibles for PMIC found in SC8380XP platform.
> 
> Signed-off-by: Rajendra Nayak <quic_rjendra@quicinc.com>

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

end of thread, other threads:[~2023-10-27 12:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-25 13:55 [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP Sibi Sankar
2023-10-25 13:55 ` [PATCH 1/2] dt-bindings: regulator: qcom,rpmh: Add PMC8380 compatible Sibi Sankar
2023-10-27 12:30   ` Krzysztof Kozlowski
2023-10-25 13:55 ` [PATCH 2/2] regulator: qcom-rpmh: Add regulators support for PMC8380 Sibi Sankar
2023-10-25 17:32   ` Dmitry Baryshkov
2023-10-26 14:06 ` [PATCH 0/2] regulator: qcom-rpmh: Add regulator support for SC8380XP 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).