Skip to content

Commit

Permalink
iio: light: ROHM BU27008 color sensor
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/2594162f0e44148cffb1fb05f1d6edfde6bd11bc.1683541225.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
M-Vaittinen authored and jic23 committed May 23, 2023
1 parent 2a4deb8 commit 41ff93d
Show file tree
Hide file tree
Showing 3 changed files with 1,041 additions and 0 deletions.
14 changes: 14 additions & 0 deletions drivers/iio/light/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions drivers/iio/light/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 41ff93d

Please sign in to comment.