From: Rob Herring <robh@kernel.org>
To: Guodong Xu <guodong@riscstar.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Yixun Lan <dlan@gentoo.org>,
Alex Elder <elder@riscstar.com>, Lee Jones <lee@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Troy Mitchell <troy.mitchell@linux.spacemit.com>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
spacemit@lists.linux.dev, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/4] dt-bindings: mfd: spacemit,p1: Add individual regulator supply properties
Date: Thu, 22 Jan 2026 10:11:00 -0600 [thread overview]
Message-ID: <20260122161100.GA2223008-robh@kernel.org> (raw)
In-Reply-To: <20260122-spacemit-p1-v1-2-309be27fbff9@riscstar.com>
On Thu, Jan 22, 2026 at 05:43:43PM +0800, Guodong Xu wrote:
> Add supply properties that match the P1 PMIC's actual hardware topology
> where each buck converter has its own VIN pin and LDO groups share
> common input pins. Supply names are defined according to the pinout
> names in the P1 datasheet.
>
> This allows different boards to describe their actual
> power tree connections in devicetree rather than hardcoding supply
> relationships in the driver.
>
> Signed-off-by: Guodong Xu <guodong@riscstar.com>
> ---
> .../devicetree/bindings/mfd/spacemit,p1.yaml | 58 +++++++++++++++++++++-
> 1 file changed, 56 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml b/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml
> index c6593ac6ef6adb72fc48af570dc13fc9edf77ccb..abdc93b9a67b1872c8fe6955abd950622a0b69e8 100644
> --- a/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml
> +++ b/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml
> @@ -27,8 +27,41 @@ properties:
> interrupts:
> maxItems: 1
>
> - vin-supply:
> - description: Input supply phandle.
> + vin1-supply:
> + description:
> + Power supply for BUCK1. Required if BUCK1 is defined.
> +
> + vin2-supply:
> + description:
> + Power supply for BUCK2. Required if BUCK2 is defined.
> +
> + vin3-supply:
> + description:
> + Power supply for BUCK3. Required if BUCK3 is defined.
> +
> + vin4-supply:
> + description:
> + Power supply for BUCK4. Required if BUCK4 is defined.
> +
> + vin5-supply:
> + description:
> + Power supply for BUCK5. Required if BUCK5 is defined.
> +
> + vin6-supply:
> + description:
> + Power supply for BUCK6. Required if BUCK6 is defined.
> +
> + aldoin-supply:
> + description:
> + Power supply for ALDO1-4. Required if any are defined.
> +
> + dldoin1-supply:
> + description:
> + Power supply for DLDO1-4. Required if any are defined.
> +
> + dldoin2-supply:
> + description:
> + Power supply for DLDO5-7. Required if any are defined.
>
> regulators:
> type: object
> @@ -50,6 +83,15 @@ unevaluatedProperties: false
>
> examples:
> - |
> + / {
> + reg_vcc_5v: regulator-vcc-5v {
> + compatible = "regulator-fixed";
> + regulator-name = "vcc_5v";
> + regulator-min-microvolt = <5000000>;
> + regulator-max-microvolt = <5000000>;
> + };
> + };
Don't put providers into the examples of consumers.
Rob
next prev parent reply other threads:[~2026-01-22 16:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 9:43 [PATCH 0/4] regulator: spacemit-p1: Fix voltage ranges and support board power tree Guodong Xu
2026-01-22 9:43 ` [PATCH 1/4] regulator: spacemit-p1: Fix n_voltages for BUCK and LDO regulators Guodong Xu
2026-01-22 9:43 ` [PATCH 2/4] dt-bindings: mfd: spacemit,p1: Add individual regulator supply properties Guodong Xu
2026-01-22 10:20 ` Rob Herring (Arm)
2026-01-22 12:23 ` Yixun Lan
2026-01-22 16:11 ` Rob Herring [this message]
2026-01-22 9:43 ` [PATCH 3/4] regulator: spacemit-p1: Update supply names Guodong Xu
2026-01-22 9:43 ` [PATCH 4/4] riscv: dts: spacemit: k1-bananapi-f3: Update PMIC supply properties Guodong Xu
2026-01-22 10:11 ` [PATCH 0/4] regulator: spacemit-p1: Fix voltage ranges and support board power tree Yixun Lan
2026-01-22 11:27 ` Mark Brown
2026-01-22 12:12 ` Yixun Lan
2026-01-22 13:28 ` Mark Brown
2026-01-22 13:41 ` Yixun Lan
2026-01-22 14:55 ` Guodong Xu
2026-01-22 22:09 ` Yixun Lan
2026-01-23 8:23 ` Javier Martinez Canillas
2026-01-26 22:10 ` (subset) " Mark Brown
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=20260122161100.GA2223008-robh@kernel.org \
--to=robh@kernel.org \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=elder@riscstar.com \
--cc=guodong@riscstar.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=troy.mitchell@linux.spacemit.com \
/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