From: sashiko-bot@kernel.org
To: "Joshua Yeong" <joshua.yeong@starfivetech.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 1/3] dt-bindings: regulator: Add RPMI voltage service bindings
Date: Tue, 22 Sep 2026 16:20:07 +0000 [thread overview]
Message-ID: <20260922162007.AD87C1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260922161156.1088153-2-joshua.yeong@starfivetech.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] dt-bindings: non-standard voltage-domains property bypasses regulator core
--
commit f9ded6ad4ad8d417c9182647856a155cfddbfb6d
Author: Joshua Yeong <joshua.yeong@starfivetech.com>
dt-bindings: regulator: Add RPMI voltage service bindings
This commit adds device tree bindings for the RISC-V Platform Management
Interface (RPMI) voltage service group. It defines the bindings for both the
supervisor-facing regulator controller and the SBI MPXY channel used to
expose the service group.
> diff --git a/Documentation/devicetree/bindings/regulator/riscv,rpmi-voltage.yaml b/Documentation/devicetree/bindings/regulator/riscv,rpmi-voltage.yaml
> new file mode 100644
> index 0000000000000..66d1c26592c16
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/regulator/riscv,rpmi-voltage.yaml
[ ... ]
> +properties:
> + compatible:
> + description:
> + Intended for use by the supervisor software.
> + const: riscv,rpmi-voltage
> +
> + mboxes:
> + maxItems: 1
> + description:
> + Mailbox channel of the underlying RPMI transport or SBI message proxy channel.
> +
> + "#voltage-domain-cells":
> + const: 1
> + description:
> + Lets a consumer name a domain by its RPMI DOMAIN_ID, the single cell of
> + a "voltage-domains" entry, without a child node for the domain.
[Severity: High]
Does this non-standard provider cell count bypass the standard regulator core
linkage? By using a custom voltage-domains property instead of the standard
<name>-supply pattern, consumers using this linkage will globally fail
dt_binding_check validation since voltage-domains is unrecognized by
devicetree core schemas or standard consumer schemas.
[ ... ]
> + codec {
> + compatible = "vendor,codec";
> + vdd-supply = <&volt2_reg>;
> + };
> +
> + // Domains 3 and 4 by DOMAIN_ID, with no child node for either.
> + phy {
> + compatible = "vendor,phy";
> + voltage-domains = <&rpmi_voltage 3>, <&rpmi_voltage 4>;
> + voltage-domain-names = "vdda", "vddio";
> + };
> +...
[Severity: High]
Will this custom linkage break driver core probe ordering?
Since the driver core (fw_devlink) cannot track voltage-domains dependencies,
it has no way of knowing this property names a supplier. If cell-based
dynamic regulator mapping without subnodes is required, shouldn't it be
introduced globally (e.g., #regulator-cells in regulator.yaml) and approved
by the core devicetree and regulator maintainers rather than using a
platform-specific model here?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260922161156.1088153-1-joshua.yeong@starfivetech.com?part=1
next prev parent reply other threads:[~2026-09-22 16:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 16:11 [PATCH 0/3] Add RISC-V RPMI voltage service support Joshua Yeong
2026-09-22 16:11 ` [PATCH 1/3] dt-bindings: regulator: Add RPMI voltage service bindings Joshua Yeong
2026-09-22 16:20 ` sashiko-bot [this message]
2026-09-22 21:22 ` Rob Herring (Arm)
2026-09-22 16:11 ` [PATCH 2/3] regulator: Add RPMI voltage service Joshua Yeong
2026-09-22 16:11 ` [PATCH 3/3] MAINTAINERS: Add RISC-V RPMI voltage driver Joshua Yeong
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=20260922162007.AD87C1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=joshua.yeong@starfivetech.com \
--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