]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: ltrf216a: Add LTR-308 support
authorMarek Vasut <marex@denx.de>
Mon, 8 Jul 2024 11:41:18 +0000 (13:41 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:36 +0000 (10:13 +0100)
commit7c7d9170305435f5c6f9fac3174118e81fc8178d
tree3a5f2dd2c1d99a8f19e36ad7b100b7f1fe019f55
parent14c09562745c5f47db900b23dd76cb499af12577
iio: light: ltrf216a: Add LTR-308 support

Add LiteOn LTR-308 support into LTR-F216A kernel driver.

The two devices seem to have almost identical register map, except that
the LTR-308 does not have three CLEAR_DATA registers, which are unused
by this driver. Furthermore, LTR-308 and LTR-F216A use different lux
calculation constants, 0.6 and 0.45 respectively. Both differences are
handled using chip info data.

https://optoelectronics.liteon.com/upload/download/DS86-2016-0027/LTR-308ALS_Final_%20DS_V1%201.pdf
https://optoelectronics.liteon.com/upload/download/DS86-2019-0016/LTR-F216A_Final_DS_V1.4.PDF

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://patch.msgid.link/20240708114227.18283-2-marex@denx.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/ltrf216a.c