Skip to content

Commit e45a44f

Browse files
cjd8jic23
authored andcommitted
iio: light: veml3328: add support for new device
Add support for the Vishay VEML3328 RGB/IR light sensor communicating via I2C (SMBus compatible). Also add a new entry for said driver into Kconfig and Makefile. Assisted-by: Gemini:3.1-Pro Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 278b9d0 commit e45a44f

4 files changed

Lines changed: 440 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28402,6 +28402,11 @@ S: Maintained
2840228402
F: Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml
2840328403
F: drivers/iio/light/veml3235.c
2840428404

28405+
VISHAY VEML3328 RGB IR LIGHT SENSOR DRIVER
28406+
M: Joshua Crofts <joshua.crofts1@gmail.com>
28407+
S: Maintained
28408+
F: drivers/iio/light/veml3328.c
28409+
2840528410
VISHAY VEML6030 AMBIENT LIGHT SENSOR DRIVER
2840628411
M: Javier Carrasco <javier.carrasco.cruz@gmail.com>
2840728412
S: Maintained

drivers/iio/light/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,17 @@ config VEML3235
713713
To compile this driver as a module, choose M here: the
714714
module will be called veml3235.
715715

716+
config VEML3328
717+
tristate "VEML3328 RGBCIR light sensor"
718+
select REGMAP_I2C
719+
depends on I2C
720+
help
721+
Say Y here if you want to build a driver for the Vishay VEML3328
722+
RGB IR light sensor.
723+
724+
To compile this driver as a module, choose M here: the
725+
module will be called veml3328
726+
716727
config VEML6030
717728
tristate "VEML6030 and VEML6035 ambient light sensors"
718729
select REGMAP_I2C

drivers/iio/light/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ obj-$(CONFIG_US5182D) += us5182d.o
6666
obj-$(CONFIG_VCNL4000) += vcnl4000.o
6767
obj-$(CONFIG_VCNL4035) += vcnl4035.o
6868
obj-$(CONFIG_VEML3235) += veml3235.o
69+
obj-$(CONFIG_VEML3328) += veml3328.o
6970
obj-$(CONFIG_VEML6030) += veml6030.o
7071
obj-$(CONFIG_VEML6040) += veml6040.o
7172
obj-$(CONFIG_VEML6046X00) += veml6046x00.o

0 commit comments

Comments
 (0)