* [PATCH v2 0/2] Add PM6450 RPMh regulator support
@ 2026-11-26 3:28 SignKirigami
2026-11-26 3:28 ` [PATCH v2 1/2] dt-bindings: regulator: qcom,rpmh: Add PM6450 SignKirigami
2026-11-26 3:28 ` [PATCH v2 2/2] regulator: qcom-rpmh: Add PM6450 LDO support SignKirigami
0 siblings, 2 replies; 5+ messages in thread
From: SignKirigami @ 2026-11-26 3:28 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bjorn Andersson
Cc: Krzysztof Kozlowski, linux-arm-msm, linux-kernel, devicetree,
SignKirigami
Add the PM6450 LDO resources used by Portov. Use the existing PMIC5
NLDO, PLDO-LV and PLDO voltage models, and give each regulator the generic
vin supply name so boards can describe the actual input rail with the
standard per-regulator vin-supply property.
LDO24 uses the PLDO model and retains its power-on-selected voltage when
no voltage request is made. The board devicetree fixes the active rail at
2960 mV and allows UFS to vote load and mode.
Signed-off-by: SignKirigami <prcups@krgm.moe>
---
Changes in v2:
- Keep only the eight PM6450 LDO resources used by Portov.
- Place the PM6450 table after the PM6350 table.
- Use NLDO for the low-voltage rails and PLDO-LV for LDO19 and LDO23.
- Name each LDO's parent supply "vin" and use the standard per-regulator
vin-supply property.
- Keep LDO24 on PLDO while preserving its firmware-selected power-on voltage.
v1: https://patch.msgid.link/20261124-netrani-pm6450-v1-v1-0-1914da758d3d@krgm.moe
---
SignKirigami (2):
dt-bindings: regulator: qcom,rpmh: Add PM6450
regulator: qcom-rpmh: Add PM6450 LDO support
.../bindings/regulator/qcom,rpmh-regulator.yaml | 2 ++
drivers/regulator/qcom-rpmh-regulator.c | 16 ++++++++++++++++
2 files changed, 18 insertions(+)
---
base-commit: 6eba525f2c14486c1a8cac2320ab202097212f5c
change-id: 20261124-netrani-pm6450-v1-17ae284974fa
Best regards,
--
SignKirigami <prcups@krgm.moe>
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH v2 1/2] dt-bindings: regulator: qcom,rpmh: Add PM6450 2026-11-26 3:28 [PATCH v2 0/2] Add PM6450 RPMh regulator support SignKirigami @ 2026-11-26 3:28 ` SignKirigami 2026-11-26 3:41 ` sashiko-bot 2026-11-26 3:28 ` [PATCH v2 2/2] regulator: qcom-rpmh: Add PM6450 LDO support SignKirigami 1 sibling, 1 reply; 5+ messages in thread From: SignKirigami @ 2026-11-26 3:28 UTC (permalink / raw) To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson Cc: Krzysztof Kozlowski, linux-arm-msm, linux-kernel, devicetree, SignKirigami Add the PM6450 compatible and document its supported RPMh LDO resources. Signed-off-by: SignKirigami <prcups@krgm.moe> --- Documentation/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 9115885e7985b..ba3f50352773c 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml @@ -37,6 +37,7 @@ description: | For PM6150, smps1 - smps5, ldo1 - ldo19 For PM6150L, smps1 - smps8, ldo1 - ldo11, bob For PM6350, smps1 - smps5, ldo1 - ldo22 + For PM6450, ldo5, ldo7, ldo13, ldo16, ldo19, ldo23 - ldo25 For PM660, smps1 - smps6, ldo1 - ldo3, ldo5 - ldo19 For PM660L, smps1 - smps3, smps5, ldo1 - ldo8, bob For PM7325, smps1 - smps8, ldo1 - ldo19 @@ -72,6 +73,7 @@ properties: - qcom,pm6150-rpmh-regulators - qcom,pm6150l-rpmh-regulators - qcom,pm6350-rpmh-regulators + - qcom,pm6450-rpmh-regulators - qcom,pm660-rpmh-regulators - qcom,pm660l-rpmh-regulators - qcom,pm7325-rpmh-regulators -- 2.56.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: regulator: qcom,rpmh: Add PM6450 2026-11-26 3:28 ` [PATCH v2 1/2] dt-bindings: regulator: qcom,rpmh: Add PM6450 SignKirigami @ 2026-11-26 3:41 ` sashiko-bot 0 siblings, 0 replies; 5+ messages in thread From: sashiko-bot @ 2026-11-26 3:41 UTC (permalink / raw) To: SignKirigami; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] dt-bindings: regulator: qcom,rpmh: missing PM6450 supply properties in allOf -- commit 034e98206388b0aac6afd8c342a23f595e3b315b Author: SignKirigami <prcups@krgm.moe> dt-bindings: regulator: qcom,rpmh: Add PM6450 This commit adds the qcom,pm6450-rpmh-regulators compatible and documents its supported RPMh LDO resources. > diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml > index 9115885e7985b..ba3f50352773c 100644 > --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml > +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml > @@ -37,6 +37,7 @@ description: | > For PM6150, smps1 - smps5, ldo1 - ldo19 > For PM6150L, smps1 - smps8, ldo1 - ldo11, bob > For PM6350, smps1 - smps5, ldo1 - ldo22 > + For PM6450, ldo5, ldo7, ldo13, ldo16, ldo19, ldo23 - ldo25 > For PM660, smps1 - smps6, ldo1 - ldo3, ldo5 - ldo19 > For PM660L, smps1 - smps3, smps5, ldo1 - ldo8, bob > For PM7325, smps1 - smps8, ldo1 - ldo19 > @@ -72,6 +73,7 @@ properties: > - qcom,pm6150-rpmh-regulators > - qcom,pm6150l-rpmh-regulators > - qcom,pm6350-rpmh-regulators > + - qcom,pm6450-rpmh-regulators > - qcom,pm660-rpmh-regulators > - qcom,pm660l-rpmh-regulators > - qcom,pm7325-rpmh-regulators [Severity: Medium] Should qcom,pm6450-rpmh-regulators have a matching if/then block under allOf declaring its vdd-*-supply parent supply properties? Because this schema sets unevaluatedProperties: false and defines allowed vdd-*-supply properties per compatible under allOf, dtbs_check will reject any parent input supply properties specified on a qcom,pm6450-rpmh-regulators node. In addition, the description lists only a subset of eight LDOs (ldo5, ldo7, ldo13, ldo16, ldo19, ldo23 - ldo25) with no SMPS rails rather than the complete set of regulators on the PM6450 PMIC. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261126-netrani-pm6450-v1-v2-0-2539a2422218@krgm.moe?part=1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] regulator: qcom-rpmh: Add PM6450 LDO support 2026-11-26 3:28 [PATCH v2 0/2] Add PM6450 RPMh regulator support SignKirigami 2026-11-26 3:28 ` [PATCH v2 1/2] dt-bindings: regulator: qcom,rpmh: Add PM6450 SignKirigami @ 2026-11-26 3:28 ` SignKirigami 2026-11-26 3:41 ` sashiko-bot 1 sibling, 1 reply; 5+ messages in thread From: SignKirigami @ 2026-11-26 3:28 UTC (permalink / raw) To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Andersson Cc: Krzysztof Kozlowski, linux-arm-msm, linux-kernel, devicetree, SignKirigami Add PM6450 RPMh regulator resources using the existing PMIC5 NLDO and PLDO voltage models. LDO24 uses the PLDO model so UFS can vote load and mode while retaining the normal RPMh behaviour for the power-on voltage when no voltage is requested. Signed-off-by: SignKirigami <prcups@krgm.moe> --- drivers/regulator/qcom-rpmh-regulator.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index da4764ffa6325..ff5022bba5fc6 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -1619,6 +1619,18 @@ static const struct rpmh_vreg_init_data pm6350_vreg_data[] = { RPMH_VREG("ldo22", LDO, 22, &pmic5_nldo, "vdd-l15-l19-l22"), }; +static const struct rpmh_vreg_init_data pm6450_vreg_data[] = { + RPMH_VREG("ldo5", LDO, 5, &pmic5_nldo, "vin"), + RPMH_VREG("ldo7", LDO, 7, &pmic5_nldo, "vin"), + RPMH_VREG("ldo13", LDO, 13, &pmic5_nldo, "vin"), + RPMH_VREG("ldo16", LDO, 16, &pmic5_nldo, "vin"), + RPMH_VREG("ldo19", LDO, 19, &pmic5_pldo_lv, "vin"), + RPMH_VREG("ldo23", LDO, 23, &pmic5_pldo_lv, "vin"), + RPMH_VREG("ldo24", LDO, 24, &pmic5_pldo, "vin"), + RPMH_VREG("ldo25", LDO, 25, &pmic5_pldo, "vin"), + {}, +}; + static const struct rpmh_vreg_init_data pmcx0102_vreg_data[] = { RPMH_VREG("smps1", SMPS, 1, &pmic5_ftsmps530, "vdd-s1"), RPMH_VREG("smps2", SMPS, 2, &pmic5_ftsmps530, "vdd-s2"), @@ -2056,6 +2068,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = { .compatible = "qcom,pm6350-rpmh-regulators", .data = pm6350_vreg_data, }, + { + .compatible = "qcom,pm6450-rpmh-regulators", + .data = pm6450_vreg_data, + }, { .compatible = "qcom,pmc8180-rpmh-regulators", .data = pm8150_vreg_data, -- 2.56.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 2/2] regulator: qcom-rpmh: Add PM6450 LDO support 2026-11-26 3:28 ` [PATCH v2 2/2] regulator: qcom-rpmh: Add PM6450 LDO support SignKirigami @ 2026-11-26 3:41 ` sashiko-bot 0 siblings, 0 replies; 5+ messages in thread From: sashiko-bot @ 2026-11-26 3:41 UTC (permalink / raw) To: SignKirigami; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] regulator: qcom-rpmh: invalid vin supply_name on all PM6450 LDOs -- commit f10d34b3eaf0e0959ceb4a5be745dd75208d5999 Author: SignKirigami <prcups@krgm.moe> regulator: qcom-rpmh: Add PM6450 LDO support This commit adds RPMh regulator descriptions and compatible matching for the PM6450 LDOs. > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c > index da4764ffa6325..ff5022bba5fc6 100644 > --- a/drivers/regulator/qcom-rpmh-regulator.c > +++ b/drivers/regulator/qcom-rpmh-regulator.c > @@ -1619,6 +1619,18 @@ static const struct rpmh_vreg_init_data pm6350_vreg_data[] = { > RPMH_VREG("ldo22", LDO, 22, &pmic5_nldo, "vdd-l15-l19-l22"), > }; > > +static const struct rpmh_vreg_init_data pm6450_vreg_data[] = { > + RPMH_VREG("ldo5", LDO, 5, &pmic5_nldo, "vin"), > + RPMH_VREG("ldo7", LDO, 7, &pmic5_nldo, "vin"), > + RPMH_VREG("ldo13", LDO, 13, &pmic5_nldo, "vin"), > + RPMH_VREG("ldo16", LDO, 16, &pmic5_nldo, "vin"), > + RPMH_VREG("ldo19", LDO, 19, &pmic5_pldo_lv, "vin"), > + RPMH_VREG("ldo23", LDO, 23, &pmic5_pldo_lv, "vin"), > + RPMH_VREG("ldo24", LDO, 24, &pmic5_pldo, "vin"), > + RPMH_VREG("ldo25", LDO, 25, &pmic5_pldo, "vin"), > + {}, > +}; [Severity: High] Should pm6450_vreg_data[] use the PMIC input supply pin names (such as "vdd-l5") or NULL instead of "vin"? rpmh_regulator_init_vreg() registers every LDO with reg_config.dev set to the parent PMIC device and rdesc.supply_name set to this string. When a child LDO node has no vin-supply property, regulator_resolve_supply() -> regulator_dev_lookup() -> of_get_regulator() falls back to of_get_child_regulator(dev->of_node, "vin-supply"), which scans all child LDO nodes under the PMIC and binds the LDO to the first sibling's vin-supply (or falls back to regulator_lookup_by_name("vin") and binds to any regulator named "vin" in the system). The qcom,rpmh-regulator.yaml binding also disallows vin-supply on both the PMIC node and child LDO nodes. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261126-netrani-pm6450-v1-v2-0-2539a2422218@krgm.moe?part=2 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-26 3:41 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-26 3:28 [PATCH v2 0/2] Add PM6450 RPMh regulator support SignKirigami 2026-11-26 3:28 ` [PATCH v2 1/2] dt-bindings: regulator: qcom,rpmh: Add PM6450 SignKirigami 2026-11-26 3:41 ` sashiko-bot 2026-11-26 3:28 ` [PATCH v2 2/2] regulator: qcom-rpmh: Add PM6450 LDO support SignKirigami 2026-11-26 3:41 ` sashiko-bot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox