iio: light: Add support for Azoteq IQS621/622 ambient light sensors
authorJeff LaBundy <jeff@labundy.com>
Sun, 16 Feb 2020 23:32:10 +0000 (17:32 -0600)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Mar 2020 08:25:56 +0000 (08:25 +0000)
commitb081b73820945decb2fd39bdc0ccf46a1ddc6d53
tree3934cfabdac6087c146afd12dcb1a8d27ba6a471
parent8ba447109af4e0bcbc38fac1b134f207c66ab39e
iio: light: Add support for Azoteq IQS621/622 ambient light sensors

This patch adds support for the Azoteq IQS621 and IQS622 ambient light
sensors, both of which can report a four-bit representation of ambient
light intensity.

The IQS621 can additionally report illuminace directly in units of lux,
while the IQS622 can report a four-bit representation of infrared light
intensity. Furthermore, the IQS622 can report a unitless measurement of
a target's proximity to the device.

Signed-off-by: Jeff LaBundy <jeff@labundy.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/iio/light/Kconfig
drivers/iio/light/Makefile
drivers/iio/light/iqs621-als.c [new file with mode: 0644]