Skip to content

Commit 5570729

Browse files
Parthiban NallathambiJonathan Cameron
authored andcommitted
iio: light: Add support for vishay vcnl4035
Add support for VCNL4035, which is capable of Ambient light sensing (ALS) and proximity function. This patch adds support only for ALS function Signed-off-by: Parthiban Nallathambi <pn@denx.de> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent efeb87d commit 5570729

3 files changed

Lines changed: 690 additions & 0 deletions

File tree

‎drivers/iio/light/Kconfig‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,19 @@ config VCNL4000
460460
To compile this driver as a module, choose M here: the
461461
module will be called vcnl4000.
462462

463+
config VCNL4035
464+
tristate "VCNL4035 combined ALS and proximity sensor"
465+
select IIO_TRIGGERED_BUFFER
466+
select REGMAP_I2C
467+
depends on I2C
468+
help
469+
Say Y here if you want to build a driver for the Vishay VCNL4035,
470+
combined ambient light (ALS) and proximity sensor. Currently only ALS
471+
function is available.
472+
473+
To compile this driver as a module, choose M here: the
474+
module will be called vcnl4035.
475+
463476
config VEML6070
464477
tristate "VEML6070 UV A light sensor"
465478
depends on I2C

‎drivers/iio/light/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ obj-$(CONFIG_TSL2772) += tsl2772.o
4545
obj-$(CONFIG_TSL4531) += tsl4531.o
4646
obj-$(CONFIG_US5182D) += us5182d.o
4747
obj-$(CONFIG_VCNL4000) += vcnl4000.o
48+
obj-$(CONFIG_VCNL4035) += vcnl4035.o
4849
obj-$(CONFIG_VEML6070) += veml6070.o
4950
obj-$(CONFIG_VL6180) += vl6180.o
5051
obj-$(CONFIG_ZOPT2201) += zopt2201.o

0 commit comments

Comments
 (0)