iio: light: ROHM BU27008 color sensor

The ROHM BU27008 is a sensor with 5 photodiodes (red, green, blue, clear
and IR) with four configurable channels. Red and green being always
available and two out of the rest three (blue, clear, IR) can be
selected to be simultaneously measured. Typical application is adjusting
LCD backlight of TVs, mobile phones and tablet PCs.

Add initial support for the ROHM BU27008 color sensor.
 - raw_read() of RGB and clear channels
 - triggered buffer w/ DRDY interrtupt

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/2594162f0e44148cffb1fb05f1d6edfde6bd11bc.1683541225.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Matti Vaittinen 2023-05-08 13:39:29 +03:00 committed by Jonathan Cameron
parent 2a4deb8488
commit 41ff93d14f
3 changed files with 1041 additions and 0 deletions

View file

@ -289,6 +289,20 @@ config JSA1212
To compile this driver as a module, choose M here:
the module will be called jsa1212.
config ROHM_BU27008
tristate "ROHM BU27008 color (RGB+C/IR) sensor"
depends on I2C
select REGMAP_I2C
select IIO_GTS_HELPER
help
Enable support for the ROHM BU27008 color sensor.
The ROHM BU27008 is a sensor with 5 photodiodes (red, green,
blue, clear and IR) with four configurable channels. Red and
green being always available and two out of the rest three
(blue, clear, IR) can be selected to be simultaneously measured.
Typical application is adjusting LCD backlight of TVs,
mobile phones and tablet PCs.
config ROHM_BU27034
tristate "ROHM BU27034 ambient light sensor"
depends on I2C

View file

@ -39,6 +39,7 @@ obj-$(CONFIG_NOA1305) += noa1305.o
obj-$(CONFIG_OPT3001) += opt3001.o
obj-$(CONFIG_OPT4001) += opt4001.o
obj-$(CONFIG_PA12203001) += pa12203001.o
obj-$(CONFIG_ROHM_BU27008) += rohm-bu27008.o
obj-$(CONFIG_ROHM_BU27034) += rohm-bu27034.o
obj-$(CONFIG_RPR0521) += rpr0521.o
obj-$(CONFIG_SI1133) += si1133.o

File diff suppressed because it is too large Load diff