Re: [RFC] iio: light: tcs3472: implementing wait time TODO
From: David Lechner
Date: Sat Apr 25 2026 - 12:49:50 EST
On 4/25/26 11:28 AM, Aldo Conte wrote:
> Hi all,
>
> I'd like to resolve the wait time TODO in tcs3472.c.
Do you actually have this hardware to test it?
What is the application that needs to make use of this feature?
>
> The TCS3472 has a WTIME register and WEN bit that insert a low-power
What about WLONG?
> wait state between RGBC cycles. The register is already defined in the driver but never used.
> I noticed that tsl2772.c enables wait with a fixed default and no
> userspace control. However, I think exposing the wait time to
> userspace would be more useful to tune the power/responsiveness tradeoff.
I assume this would affect the effective sample rate?
>
> My plan would be to expose it via an ext_info attribute in
> microseconds, following the same convention as integration_time.
> Does that sound acceptable, or would you prefer a simpler approach
> with just a fixed default like tsl2772?
So perhaps we could just use the standard sampling_frequency attribute?
>
> I also plan a following patch converting the driver to devm.
Would be better to do this first before adding new features.
>
> Thanks,
> Aldo
>