Skip to content

iio: light: tcs3472: Add TCS3400 support

HuskerMinion b4-sent linux-devicetree linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected] change-id 20261015-tcs3400-e2e55e7a4980

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: iio: light: Add AMS TCS3472 and TCS3400Documentation/devicetree/bindings/iio/light/ams,tcs3472.yaml+57 -04 replies
2/2iio: light: tcs3472: Add TCS3400 supportdrivers/iio/light/Kconfig drivers/iio/light/tcs3472.c+132 -371 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] iio: light: tcs3472: Add TCS3400 support

This series adds the AMS TCS3400 to the tcs3472 driver. The TCS3400 is the ambient light sensor in the Amazon Echo Show 8 (2nd gen). I added it while bringing up mainline Linux on that device.

The TCS3400 has the TCS3472 register map, but no command type field, other gains, a 2.78 ms time step and its own interrupt clear register. The driver picks the variant from the ID register, so nothing changes for the TCS3472.

Patch 1 adds a binding. The TCS3472 had none, so it covers both families. I listed myself as its maintainer, since the driver has no MAINTAINERS entry.

Patch 2 adds the driver support.

On the device, raw reads follow the light. I tested that on a 6.18 based kernel. The sampling frequency code that is new in togreg now uses the 2.78 ms step for WTIME and the init time as well. That part and the threshold interrupt are only build tested on the TCS3400.

---
HuskerMinion (2):
dt-bindings: iio: light: Add AMS TCS3472 and TCS3400
iio: light: tcs3472: Add TCS3400 support

 .../devicetree/bindings/iio/light/ams,tcs3472.yaml |  57 ++++++++
 drivers/iio/light/Kconfig                          |   7 +-
 drivers/iio/light/tcs3472.c                        | 162 ++++++++++++++++-----
 3 files changed, 189 insertions(+), 37 deletions(-)

---
base-commit: a3b3580713f3ac5a32dc2874ee546828977a1d68
change-id: 20261015-tcs3400-e2e55e7a4980

Best regards,

Signature · 1 line
HuskerMinion <[email protected]>