Commit 41ff93d1 authored by Matti Vaittinen's avatar Matti Vaittinen Committed by Jonathan Cameron
Browse files

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: default avatarMatti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/2594162f0e44148cffb1fb05f1d6edfde6bd11bc.1683541225.git.mazziesaccount@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 2a4deb84
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -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
+1 −0
Original line number Diff line number Diff line
@@ -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
+1026 −0

File added.

Preview size limit exceeded, changes collapsed.