Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aff268cd authored by Matt Ranostay's avatar Matt Ranostay Committed by Jonathan Cameron
Browse files

iio: light: add APDS9960 ALS + promixity driver



APDS9960 is a combination of ALS, proximity, and gesture sensors.

This patch adds support for these functions along with gain control,
integration time, and event thresholds.

Signed-off-by: default avatarMatt Ranostay <mranostay@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 078d02cf
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -50,6 +50,19 @@ config APDS9300
	 To compile this driver as a module, choose M here: the
	 module will be called apds9300.

config APDS9960
	tristate "Avago APDS9960 gesture/RGB/ALS/proximity sensor"
	select REGMAP_I2C
	select IIO_BUFFER
	select IIO_KFIFO_BUF
	depends on I2C
	help
	  Say Y here to build I2C interface support for the Avago
	  APDS9960 gesture/RGB/ALS/proximity sensor.

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

config BH1750
	tristate "ROHM BH1750 ambient light sensor"
	depends on I2C
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ obj-$(CONFIG_ACPI_ALS) += acpi-als.o
obj-$(CONFIG_ADJD_S311)		+= adjd_s311.o
obj-$(CONFIG_AL3320A)		+= al3320a.o
obj-$(CONFIG_APDS9300)		+= apds9300.o
obj-$(CONFIG_APDS9960)		+= apds9960.o
obj-$(CONFIG_BH1750)		+= bh1750.o
obj-$(CONFIG_CM32181)		+= cm32181.o
obj-$(CONFIG_CM3232)		+= cm3232.o