Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: SignKirigami <prcups@krgm.moe>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v2 2/2] regulator: qcom-rpmh: Add PM6450 LDO support
Date: Thu, 26 Nov 2026 03:41:58 +0000	[thread overview]
Message-ID: <sashiko-outbox-234701@kernel.org> (raw)
In-Reply-To: <20261126-netrani-pm6450-v1-v2-2-2539a2422218@krgm.moe>

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

      reply	other threads:[~2026-11-26  3:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-234701@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=prcups@krgm.moe \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox