From: sashiko-bot@kernel.org
To: "Joshua Yeong" <joshua.yeong@starfivetech.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 1/3] dt-bindings: regulator: Add RPMI voltage service bindings
Date: Wed, 23 Sep 2026 07:25:55 +0000 [thread overview]
Message-ID: <20260923072555.8F9D51F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923070014.1340761-2-joshua.yeong@starfivetech.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: non-standard voltage-domains property bypasses regulator core
--
commit cdb8b44dd04ecd7ad4b4433307fcafbb4c92ff48
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 includes definitions for both the
supervisor-facing regulator controller and the SBI MPXY channel.
> 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..6334ebd31dc8c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/regulator/riscv,rpmi-voltage.yaml
[ ... ]
> +description: |
[ ... ]
> + A consumer names a domain in one of two ways. The first is through a
> + "<name>-supply" phandle to a child of the optional "regulators" container,
> + whose "reg" is the domain's RPMI DOMAIN_ID. The second needs no child with
> + "#voltage-domain-cells" on the provider, a consumer lists
> + "voltage-domains = <&provider DOMAIN_ID>" and names each entry in
> + "voltage-domain-names", the way it names a voltage power domain. Both
> + properties belong to the consumer, so a consumer binding describes them
> + itself:
[Severity: Medium]
Does this custom voltage-domains property fragment the generic device tree
regulator subsystem architecture?
The standard regulator framework strictly expects consumers to link via
<name>-supply = <&phandle> for hardware-agnostic interactions. By advising
downstream consumers to adopt a voltage-domains paradigm in this description
block, the binding subverts the core subsystem. This would force consumers
to rely on bespoke driver APIs instead of standard generic regulator
interactions.
[ ... ]
> +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: Medium]
Is it safe to redefine how consumers link to regulator providers using this
non-standard property?
This establishes the alternative linkage paradigm mentioned above, which the
core regulator subsystem cannot parse natively.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260923070014.1340761-2-joshua.yeong@starfivetech.com?part=1
next prev parent reply other threads:[~2026-09-23 7:25 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-23 7:00 [PATCH v2 0/3] Add RISC-V RPMI voltage service support Joshua Yeong
2026-09-23 7:00 ` [PATCH v2 1/3] dt-bindings: regulator: Add RPMI voltage service bindings Joshua Yeong
2026-09-23 7:25 ` sashiko-bot [this message]
2026-09-23 20:35 ` Krzysztof Kozlowski
2026-09-24 21:00 ` Mark Brown
2026-09-25 2:21 ` Joshua Yeong
2026-09-25 6:07 ` Krzysztof Kozlowski
2026-09-25 7:14 ` Joshua Yeong
2026-09-25 15:18 ` Krzysztof Kozlowski
2026-09-25 17:15 ` Mark Brown
2026-09-26 21:21 ` Conor Dooley
2026-09-27 6:37 ` Joshua Yeong
2026-09-25 17:20 ` Mark Brown
2026-09-25 6:11 ` Krzysztof Kozlowski
2026-09-25 17:25 ` Mark Brown
2026-09-23 7:00 ` [PATCH v2 2/3] regulator: Add RPMI voltage service Joshua Yeong
2026-09-23 7:29 ` sashiko-bot
2026-09-23 7:00 ` [PATCH v2 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=20260923072555.8F9D51F000FF@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