Devicetree
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Linus Walleij <linusw@kernel.org>
Cc: linux-iio@vger.kernel.org,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Kyungmin Park" <kyungmin.park@samsung.com>,
	devicetree@vger.kernel.org
Subject: Re: [PATCH 2/4] dt-bindings: iio: light: sharp,gp2ap020a00f: Add GP2AP030A00F
Date: Sun, 8 Nov 2026 00:02:00 +0000	[thread overview]
Message-ID: <20261108000200.38075bfb@jic23-hlaptop> (raw)
In-Reply-To: <20261108-gp2ap030-v1-2-55314eb7055b@kernel.org>

On Sun, 08 Nov 2026 00:31:34 +0100
Linus Walleij <linusw@kernel.org> wrote:

> The GP2AP030A00F uses the same register address layout and interrupt
> interface as the GP2AP020A00F, but returns raw clear and infrared counts
> instead of providing automatic illuminance calculation. Describe it in
> the existing binding with its own compatible.
> 
> Keep the core and I/O pull-up supplies optional so boards with hardwired
> power do not have to describe them.

If they are needed for the chip to function we tend to require them
anyway.  That's not to say the driver enforces it, but just that
the binding indicates they should be there.  DT files can just
spin up a fixed regulator if it is always on.

The extra bit of led power description perhaps would be better
in the previous patch given it isn't related to the new part introduction
in a direct way.

> 
> Datasheet: https://global.sharp/products/device/lineup/data/pdf/datasheet/gp2ap030a00f_e.pdf
> Datasheet: https://jp.sharp/products/device/doc/opto/gp2ap030a00f_appl_e.pdf
> Signed-off-by: Linus Walleij <linusw@kernel.org>
> ---
>  .../devicetree/bindings/iio/light/sharp,gp2ap020a00f.yaml  | 14 ++++++++++----
>  1 file changed, 10 insertions(+), 4 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/iio/light/sharp,gp2ap020a00f.yaml b/Documentation/devicetree/bindings/iio/light/sharp,gp2ap020a00f.yaml
> index d4bcca0f2d0a..45f1b53d6d7b 100644
> --- a/Documentation/devicetree/bindings/iio/light/sharp,gp2ap020a00f.yaml
> +++ b/Documentation/devicetree/bindings/iio/light/sharp,gp2ap020a00f.yaml
> @@ -4,17 +4,22 @@
>  $id: http://devicetree.org/schemas/iio/light/sharp,gp2ap020a00f.yaml#
>  $schema: http://devicetree.org/meta-schemas/core.yaml#
>  
> -title: Sharp GP2AP020A00F I2C Proximity/ALS sensor
> +title: Sharp GP2AP020A00F and GP2AP030A00F proximity and ambient light sensors
>  
>  maintainers:
>    - Kyungmin Park <kyungmin.park@samsung.com>
>  
>  description: |
> -  The proximity detector sensor requires power supply for its built-in led.
> +  The sensors provide digital clear, infrared and proximity measurements.
> +  The GP2AP020A00F can also calculate illuminance internally, while the
> +  GP2AP030A00F exposes raw clear and infrared photodiode counts.
> +  The proximity detector requires a power supply for its built-in LED.
>  
>  properties:
>    compatible:
> -    const: sharp,gp2ap020a00f
> +    enum:
> +      - sharp,gp2ap020a00f
> +      - sharp,gp2ap030a00f
>  
>    reg:
>      maxItems: 1
> @@ -28,7 +33,8 @@ properties:
>    vio-supply:
>      description: Supply for the I2C and interrupt pull-up resistors.
>  
> -  vled-supply: true
> +  vled-supply:
> +    description: Infrared LED anode power supply (LEDA).
Not related to rest of the patch.

Does explain the mention of the vled in the previous description though!
Now I understand you were referring to what was already supported
rather than what the patch did.

>  
>  additionalProperties: false
>  
> 


  reply	other threads:[~2026-11-08  0:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-07 23:31 [PATCH 0/4] iio: light: gp2ap020a00f: Add supplies and GP2AP030A00F support Linus Walleij
2026-11-07 23:31 ` [PATCH 1/4] dt-bindings: iio: light: sharp,gp2ap020a00f: Add supplies Linus Walleij
2026-11-07 23:58   ` Jonathan Cameron
2026-11-08 16:08     ` Linus Walleij
2026-11-07 23:31 ` [PATCH 2/4] dt-bindings: iio: light: sharp,gp2ap020a00f: Add GP2AP030A00F Linus Walleij
2026-11-08  0:02   ` Jonathan Cameron [this message]
2026-11-07 23:31 ` [PATCH 3/4] iio: light: gp2ap020a00f: Enable the core and I/O supplies Linus Walleij
2026-11-08  0:03   ` Jonathan Cameron
2026-11-07 23:31 ` [PATCH 4/4] iio: light: gp2ap020a00f: Add GP2AP030A00F support Linus Walleij
2026-11-08  0:21   ` Jonathan Cameron
2026-11-08 21:13     ` Linus Walleij

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=20261108000200.38075bfb@jic23-hlaptop \
    --to=jic23@kernel.org \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=kyungmin.park@samsung.com \
    --cc=linusw@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /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