[PATCH 0/3] iio: light: add AMS TCS3400 driver

Petr Hodina via B4 Relay posted 3 patches 2 weeks, 5 days ago
.../devicetree/bindings/iio/light/ams,tcs3400.yaml |  54 +++
MAINTAINERS                                        |   7 +
.../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi     |  36 +-
drivers/iio/light/Kconfig                          |  11 +
drivers/iio/light/Makefile                         |   1 +
drivers/iio/light/tcs3400.c                        | 505 +++++++++++++++++++++
6 files changed, 613 insertions(+), 1 deletion(-)
[PATCH 0/3] iio: light: add AMS TCS3400 driver
Posted by Petr Hodina via B4 Relay 2 weeks, 5 days ago
Hi,

This patch adds an IIO driver for the AMS TCS3400 color light-to-digital
converter.

The TCS3400 is an I2C-connected RGB color sensor supporting RGBC and
RGB-IR measurement modes, programmable integration time, selectable
gain, optional interrupt-driven sampling, and regulator-based power
control.

Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
---
Petr Hodina (3):
      doc: add Device Tree binding for AMS TCS3400 light sensor
      iio: light: add AMS TCS3400 RGB and RGB-IR color sensor driver
      sdm845: tama: Add AMS TCS3400 ambient light sensor

 .../devicetree/bindings/iio/light/ams,tcs3400.yaml |  54 +++
 MAINTAINERS                                        |   7 +
 .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi     |  36 +-
 drivers/iio/light/Kconfig                          |  11 +
 drivers/iio/light/Makefile                         |   1 +
 drivers/iio/light/tcs3400.c                        | 505 +++++++++++++++++++++
 6 files changed, 613 insertions(+), 1 deletion(-)
---
base-commit: 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b
change-id: 20260119-tsc3400-68a91d8c1355

Best regards,
-- 
Petr Hodina <petr.hodina@protonmail.com>
Re: [PATCH 0/3] iio: light: add AMS TCS3400 driver
Posted by Rob Herring 2 weeks, 4 days ago
On Mon, 19 Jan 2026 18:19:05 +0100, Petr Hodina wrote:
> Hi,
> 
> This patch adds an IIO driver for the AMS TCS3400 color light-to-digital
> converter.
> 
> The TCS3400 is an I2C-connected RGB color sensor supporting RGBC and
> RGB-IR measurement modes, programmable integration time, selectable
> gain, optional interrupt-driven sampling, and regulator-based power
> control.
> 
> Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
> ---
> Petr Hodina (3):
>       doc: add Device Tree binding for AMS TCS3400 light sensor
>       iio: light: add AMS TCS3400 RGB and RGB-IR color sensor driver
>       sdm845: tama: Add AMS TCS3400 ambient light sensor
> 
>  .../devicetree/bindings/iio/light/ams,tcs3400.yaml |  54 +++
>  MAINTAINERS                                        |   7 +
>  .../boot/dts/qcom/sdm845-sony-xperia-tama.dtsi     |  36 +-
>  drivers/iio/light/Kconfig                          |  11 +
>  drivers/iio/light/Makefile                         |   1 +
>  drivers/iio/light/tcs3400.c                        | 505 +++++++++++++++++++++
>  6 files changed, 613 insertions(+), 1 deletion(-)
> ---
> base-commit: 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b
> change-id: 20260119-tsc3400-68a91d8c1355
> 
> Best regards,
> --
> Petr Hodina <petr.hodina@protonmail.com>
> 
> 
> 


My bot found new DTB warnings on the .dts files added or changed in this
series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:

  pip3 install dtschema --upgrade


This patch series was applied (using b4) to base:
 Base: 46fe65a2c28ecf5df1a7475aba1f08ccf4c0ac1b (use --merge-base to override)

If this is not the correct base, please add 'base-commit' tag
(or use b4 which does this automatically)


Warnings in base: 229
Warnings after series: 235

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/qcom/' for 20260119-tsc3400-v1-0-82a65c5417aa@protonmail.com:

arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akari.dtb: tcs3400_sensor@39 (ams,tcs3400): 'ams,rgbcir-gpio-vdd', 'ams,rgbcir-vdd-supply', 'ams,rgbcir-vio-supply', 'vio-supply' do not match any of the regexes: '^pinctrl-[0-9]+$'
	from schema $id: http://devicetree.org/schemas/iio/light/ams,tcs3400.yaml
arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-apollo.dtb: tcs3400_sensor@39 (ams,tcs3400): 'ams,rgbcir-gpio-vdd', 'ams,rgbcir-vdd-supply', 'ams,rgbcir-vio-supply', 'vio-supply' do not match any of the regexes: '^pinctrl-[0-9]+$'
	from schema $id: http://devicetree.org/schemas/iio/light/ams,tcs3400.yaml
arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dtb: tcs3400_sensor@39 (ams,tcs3400): 'ams,rgbcir-gpio-vdd', 'ams,rgbcir-vdd-supply', 'ams,rgbcir-vio-supply', 'vio-supply' do not match any of the regexes: '^pinctrl-[0-9]+$'
	from schema $id: http://devicetree.org/schemas/iio/light/ams,tcs3400.yaml