Re: [PATCH v2 1/3] dt-bindings: iio: light: gp2ap002: add vled
From: Jonathan Cameron
Date: Sat Oct 17 2026 - 14:08:28 EST
On Sat, 17 Oct 2026 19:27:41 +0200
Christoph Rudorff <chris@xxxxxxxxxxx> wrote:
> According to datasheet page 8 "Recommended external circuit",
> it can have tree supplies: vio, vdd and vled. As vdd and vled wants the
> same voltage, they may be connected to a single supply.
>
> Signed-off-by: Christoph Rudorff <chris@xxxxxxxxxxx>
> ---
> Documentation/devicetree/bindings/iio/light/sharp,gp2ap002.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/light/sharp,gp2ap002.yaml b/Documentation/devicetree/bindings/iio/light/sharp,gp2ap002.yaml
> index 99bddf31cbed..f5b2c6a4d7e3 100644
> --- a/Documentation/devicetree/bindings/iio/light/sharp,gp2ap002.yaml
> +++ b/Documentation/devicetree/bindings/iio/light/sharp,gp2ap002.yaml
> @@ -33,6 +33,10 @@ properties:
> vio-supply:
> description: VIO power supply a phandle to a regulator
>
> + vled-supply:
> + description: LED power supply a phandle to a regulator
> + Optional. It may already be connected to VDD.
That's a board wiring thing - the DT really should have just listed
that supply twice. So drop the optional bit. We can leave
it as not being in required for historical reasons but no need
to call out that is is optional here!
Given confusion on v1, I'd mention it is the pin called LEDA even though
the supply is called vled on page 8.
Thanks,
Jonathan
> +
> io-channels:
> maxItems: 1
> description: ALSOUT ADC channel to read the ambient light
>