iio: light: Added AMS tsl2591 driver implementation
authorJoe Sandom <joe.g.sandom@gmail.com>
Wed, 21 Apr 2021 22:13:29 +0000 (23:13 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:06 +0000 (13:49 +0100)
commit2335f0d7c790157bebf76fae963ba41bcba45fdb
tree31f2fab446adb20498244e53d6be146251566237
parent00f6742b5ff43b0cbf094e8e7481699f3ae9bcf7
iio: light: Added AMS tsl2591 driver implementation

Driver implementation for AMS/TAOS tsl2591 ambient light sensor.

This driver supports configuration via device tree and sysfs.
Supported channels for raw infrared light intensity,
raw combined light intensity and illuminance in lux.
The driver additionally supports iio events on lower and
upper thresholds.

This is a very-high sensitivity light-to-digital converter that
transforms light intensity into a digital signal.

Datasheet: https://ams.com/tsl25911#tab/documents
Signed-off-by: Joe Sandom <joe.g.sandom@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210421221330.17007-1-joe.g.sandom@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/tsl2591.c [new file with mode: 0644]