Commit eab35358 authored by Mudit Sharma's avatar Mudit Sharma Committed by Jonathan Cameron
Browse files

iio: light: ROHM BH1745 colour sensor



Add support for BH1745, which is an I2C colour sensor with red, green,
blue and clear channels. It has a programmable active low interrupt
pin. Interrupt occurs when the signal from the selected interrupt
source channel crosses set interrupt threshold high or low level.

Interrupt source for the device can be configured by enabling the
corresponding event. Interrupt latch is always enabled when setting
up interrupt.

Add myself as the maintainer for this driver in MAINTAINERS.

Signed-off-by: default avatarMudit Sharma <muditsharma.info@gmail.com>
Reviewed-by: default avatarIvan Orlov <ivan.orlov0322@gmail.com>
Reviewed-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20240718220208.331942-2-muditsharma.info@gmail.com


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 876af455
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -19798,6 +19798,12 @@ S: Supported
F:	drivers/power/supply/bd99954-charger.c
F:	drivers/power/supply/bd99954-charger.h
ROHM BH1745 COLOUR SENSOR
M:	Mudit Sharma <muditsharma.info@gmail.com>
L:	linux-iio@vger.kernel.org
S:	Maintained
F:	drivers/iio/light/bh1745.c
ROHM BH1750 AMBIENT LIGHT SENSOR DRIVER
M:	Tomasz Duszynski <tduszyns@gmail.com>
S:	Maintained
+13 −0
Original line number Diff line number Diff line
@@ -114,6 +114,19 @@ config AS73211
	 This driver can also be built as a module.  If so, the module
	 will be called as73211.

config BH1745
	tristate "ROHM BH1745 colour sensor"
	depends on I2C
	select REGMAP_I2C
	select IIO_BUFFER
	select IIO_TRIGGERED_BUFFER
	select IIO_GTS_HELPER
	help
	  Say Y here to build support for the ROHM bh1745 colour sensor.

	  To compile this driver as a module, choose M here: the module will
	  be called bh1745.

config BH1750
	tristate "ROHM BH1750 ambient light sensor"
	depends on I2C
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ obj-$(CONFIG_APDS9300) += apds9300.o
obj-$(CONFIG_APDS9306)		+= apds9306.o
obj-$(CONFIG_APDS9960)		+= apds9960.o
obj-$(CONFIG_AS73211)		+= as73211.o
obj-$(CONFIG_BH1745)		+= bh1745.o
obj-$(CONFIG_BH1750)		+= bh1750.o
obj-$(CONFIG_BH1780)		+= bh1780.o
obj-$(CONFIG_CM32181)		+= cm32181.o
+906 −0

File added.

Preview size limit exceeded, changes collapsed.