Re: [PATCH 1/5] regulator: dt-bindings: Add regulator-boot-force-off property
From: Conor Dooley
Date: Wed Oct 21 2026 - 13:05:01 EST
On Wed, Oct 21, 2026 at 12:27:42PM +0200, Paul Louvel wrote:
> Introduce a new property to immediately disable the regulator at boot
> time.
> This property is useful when a consumer device may query the state of
> the regulator at boot time, and want to disable it right away, without a
> prior regulator_enable().
>
> Signed-off-by: Paul Louvel <paul.louvel@xxxxxxxxxxx>
> ---
> Documentation/devicetree/bindings/regulator/regulator.yaml | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/regulator/regulator.yaml b/Documentation/devicetree/bindings/regulator/regulator.yaml
> index 019aeb664cae..2da8f70d7e7a 100644
> --- a/Documentation/devicetree/bindings/regulator/regulator.yaml
> +++ b/Documentation/devicetree/bindings/regulator/regulator.yaml
> @@ -41,6 +41,14 @@ properties:
> description: boolean, regulator should never be disabled
> type: boolean
>
> + regulator-boot-force-off:
> + description: a regulator may be enabled by default when the system powers up.
> + A consumer may query the regulator's state during boot and disable it if
> + it is already enabled, potentially resulting in an unbalanced disable
> + operation. This property ensures that the regulator is disabled at boot,
> + regardless of its previous state.
To be honest, I'm not sure how the commentary about querying the state
or being unbalanced is relevant to the description - that sounds like
something specific to the linux regulator framework?
In fact, I'm not sure why this is needed at all? Can't you just change
the software so that it is okay to disable a regulator that has an
explicit enable count of zero?
> + type: boolean
> +
> regulator-boot-on:
> description: bootloader/firmware enabled regulator.
> It's expected that this regulator was left on by the bootloader.
>
> --
> 2.56.0
>
Attachment:
signature.asc
Description: PGP signature