Re: [PATCH v4 1/2] dt-bindings: iio: light: add as7343

From: Jonathan Cameron

Date: Sat Sep 12 2026 - 20:57:36 EST


On Fri, 11 Sep 2026 18:39:11 -0700
Chang Yu <marcus.yu.56@xxxxxxxxx> wrote:

> Add binding for AMS AS7343 which is a 14-channel multi-spectral sensor
> with i2c address of 0x39.
>
> Datasheet: https://look.ams-osram.com/m/5f2d27fff9a874d2/original/AS7343-14-Channel-Multi-Spectral-Sensor.pdf
> Signed-off-by: Chang Yu <marcus.yu.56@xxxxxxxxx>

Some stuff on v2 still needs discussion. A few comments inline.
Wait for that v2 discussion to finish or come to some conclusions
before sending a v5.

> .../bindings/iio/light/ams,as7343.yaml | 72 +++++++++++++++++++
> MAINTAINERS | 6 ++
> 2 files changed, 78 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/light/ams,as7343.yaml
>
> diff --git a/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml b/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml
> new file mode 100644
> index 000000000000..d963832fb413
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/light/ams,as7343.yaml
> @@ -0,0 +1,72 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/light/ams,as7343.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: AMS AS7343 14-Channel Multi-Spectral Sensor
> +
> +maintainers:
> + - Chang Yu <marcus.yu.56@xxxxxxxxx>
> +
> +description: |
> + The AMS AS7343 is a 14-channel multi-spectral sensor with i2c address of 0x39.
> + https://look.ams-osram.com/m/5f2d27fff9a874d2/original/AS7343-14-Channel-Multi-Spectral-Sensor.pdf
> +
> +properties:
> + compatible:
> + enum:
> + - ams,as7343
> +
> + reg:
> + description:
> + I2C address of the device (0x39).

Might as well specify it as const given it can only take that value.
They you can drop the description as it won't add anything.

> + maxItems: 1
> +
> + interrupts:
> + description:
> + Open drain output active low interrupt pin.
> + maxItems: 1
> +
> + vdd-supply: true
> +
> + led-max-microamp:

Discussion on whether an led node is needed back in v2 is not resolved.

> + description:
> + The driver current for the external LED connected to the LDR pin.
> + minimum: 4000
> + maximum: 258000
> + multipleOf: 2000
> + default: 12000
> +
> + sync-gpios:
> + description: |
> + Optional GPIO pin that can be used either as a synchronization input to
> + start/stop measurement or as an external start/stop signal for
> + synchronizing with the connected LED.

So the datasheet starts referring to using this for some level of sync
but then only actually treats it as as a gpio (maybe I'm missing something).
Any idea what that stuff about start/stop is talking about?

The only thing I can find about this is the device diagram in figure 13 that has the GPIO
wired to the led driver and the automatic measurement engine.

> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - vdd-supply
> +
> +additionalProperties: false