Re: [PATCH v1 1/3] regulator: dt-bindings: fixed-regulator: Add under-voltage interrupt support

From: Rob Herring
Date: Tue Oct 10 2023 - 14:13:57 EST


On Tue, Oct 10, 2023 at 10:59:04AM +0200, Oleksij Rempel wrote:
> Add under-voltage interrupt support. This can be used with simple
> regulators having no other way to communicate an under-voltage event
> except as by toggling some GPIO line.
>
> Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
>
> diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
> index ac0281b1cceb..0f8760ed2fb1 100644
> --- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
> +++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
> @@ -100,6 +100,14 @@ properties:
> vin-supply:
> description: Input supply phandle.
>
> + interrupts:
> + maxItems: 1
> + description:
> + Under-voltage interrupt
> +
> + interrupt-names:
> + const: under-voltage

No need for a name. If there's ever a 2nd, it should be a specific
binding, not fixed-regulator.

> +
> required:
> - compatible
> - regulator-name
> ---
> .../devicetree/bindings/regulator/fixed-regulator.yaml | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
> index ac0281b1cceb..0f8760ed2fb1 100644
> --- a/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
> +++ b/Documentation/devicetree/bindings/regulator/fixed-regulator.yaml

I think you've got some problems with your setup...

> @@ -100,6 +100,14 @@ properties:
> vin-supply:
> description: Input supply phandle.
>
> + interrupts:
> + maxItems: 1
> + description:
> + Under-voltage interrupt
> +
> + interrupt-names:
> + const: under-voltage
> +
> required:
> - compatible
> - regulator-name
> --
> 2.39.2
>