]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: light: vcnl4000: add support for Capella CM36686 and CM36672P
authorErikas Bitovtas <xerikasxx@gmail.com>
Tue, 17 Feb 2026 12:13:16 +0000 (14:13 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 08:24:23 +0000 (08:24 +0000)
commite3310a32e0573ade05ae09521b17c1463753e872
tree8168d10a497d762b3494e7ceb77ff48fcf996e10
parentf48bfc823c13eb2a8f0e32229d3ca32d849ff876
iio: light: vcnl4000: add support for Capella CM36686 and CM36672P

Add support for Capella's CM36686 and CM36672P sensors. Capella
CM36686 is an ambient light and proximity sensor that is fully
compatible with VCNL4040 and can be used as is.
CM36672P is partially compatible with VCNL4040 - it uses the same
register fields for proximity sensing, but the ambient light registers
are reserved. For CM36672P, we reuse vcnl4040_channels, but remove the
IIO_LIGHT channel and ambient light integration time.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Erikas Bitovtas <xerikasxx@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vcnl4000.c