Re: [PATCH v5 2/2] iio: light: add AS7343 multi-spectral sensor driver
From: Chang Yu
Date: Mon Sep 21 2026 - 00:21:32 EST
On Sun, Sep 20, 2026 at 01:26:11AM +0100, Jonathan Cameron wrote:
> > Add a driver for the AMS AS7343 14-channel multi-spectral sensor.
> >
> > The AS7343 is a 14-channel spectral sensor featuring 11 visible
> > channels, 1 near-infrared channel, 1 clear channel (VIS), and 1
> > flicker detection channel.
> >
> > The driver exposes 12 spectral channels (11 visible light and 1
> > near-infrared) via sysfs. Runtime PM is implemented to stop
> > measurements when the device is suspended or torn down. Power is
> > never cut (PON=1 always) to preserve register values.
> >
> > Future patches will add configurable gain and integration time,
> > interrupt support, buffered reads, VIS channel, and flicker
> > detection.
> >
> > 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>
>
> FWIW I believe the sashiko feedback autosuspend is incorrect, but
> probably good to sanity check that by proving device and just checking
> the calls in dd.c are sufficient to put it to sleep after the auto
> suspend time.
>
Yep. Did a quick test on hardware. Autosuspend kicks in correctly
without any user space initiated reads.