iio: light: driver for Lite-On ltr390
authorAnshul Dalal <anshulusr@gmail.com>
Fri, 8 Dec 2023 10:22:10 +0000 (15:52 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 11 Dec 2023 19:16:35 +0000 (19:16 +0000)
commit8b0d4c40d704cb7d01ad4f647ff5a51881767acd
treef8f9e8e7ac4a31b1a789ec1cbcbbeb2202c99abe
parent48ba7d2f24f18c6752275c18f25a396221aa2787
iio: light: driver for Lite-On ltr390

Implements driver for the Ambient/UV Light sensor LTR390.
The driver exposes two ways of getting sensor readings:
  1. Raw UV Counts directly from the sensor
  2. The computed UV Index value with a percision of 2 decimal places

[NOTE] Ambient light sensing has not been implemented yet.

Driver tested on RPi Zero 2W

Datasheet: https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf
Signed-off-by: Anshul Dalal <anshulusr@gmail.com>
Link: https://lore.kernel.org/r/20231208102211.413019-2-anshulusr@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
MAINTAINERS
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/ltr390.c [new file with mode: 0644]