iio: light: add support for veml6046x00 RGBIR color sensor

Add Vishay VEML6046X00 high accuracy RGBIR color sensor.

This sensor provides three colour (red, green and blue) as well as one
infrared (IR) channel through I2C.

Support direct and buffered mode.

An optional interrupt for signaling green colour threshold underflow or
overflow is not supported so far.

Signed-off-by: Andreas Klinger <ak@it-klinger.de>
Link: https://patch.msgid.link/20250728075447.338725-3-ak@it-klinger.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Andreas Klinger 2025-07-28 09:54:45 +02:00 committed by Jonathan Cameron
parent 7e2d03d004
commit 4bfb29e8be
3 changed files with 1044 additions and 0 deletions

View File

@ -724,6 +724,19 @@ config VEML6040
To compile this driver as a module, choose M here: the
module will be called veml6040.
config VEML6046X00
tristate "VEML6046X00 RGBIR color sensor"
select REGMAP_I2C
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
depends on I2C
help
Say Y here if you want to build a driver for the Vishay VEML6046X00
high accuracy RGBIR color sensor.
To compile this driver as a module, choose M here: the
module will be called veml6046x00.
config VEML6070
tristate "VEML6070 UV A light sensor"
depends on I2C

View File

@ -67,6 +67,7 @@ obj-$(CONFIG_VCNL4035) += vcnl4035.o
obj-$(CONFIG_VEML3235) += veml3235.o
obj-$(CONFIG_VEML6030) += veml6030.o
obj-$(CONFIG_VEML6040) += veml6040.o
obj-$(CONFIG_VEML6046X00) += veml6046x00.o
obj-$(CONFIG_VEML6070) += veml6070.o
obj-$(CONFIG_VEML6075) += veml6075.o
obj-$(CONFIG_VL6180) += vl6180.o

File diff suppressed because it is too large Load Diff