iio: proximity: Add driver support for vcnl3020 proximity sensor
authorIvan Mikhaylov <i.mikhaylov@yadro.com>
Sun, 10 May 2020 18:45:37 +0000 (21:45 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 21 May 2020 18:12:42 +0000 (19:12 +0100)
commitac101e6b315bfeb5a4f43a962f589e567855c177
tree7a48a3bad5ae66cab956f97265ef720f7dab9a45
parent9ecd11812e384c21e12dad05972ac9332fceece0
iio: proximity: Add driver support for vcnl3020 proximity sensor

Proximity sensor driver based on light/vcnl4000.c code.
For now supports only the single on-demand measurement.

The VCNL3020 is a fully integrated proximity sensor. Fully
integrated means that the infrared emitter is included in the
package. It has 16-bit resolution. It includes a signal
processing IC and features standard I2C communication
interface. It features an interrupt function.

Datasheet: http://www.vishay.com/docs/84150/vcnl3020.pdf
Signed-off-by: Ivan Mikhaylov <i.mikhaylov@yadro.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/Kconfig
drivers/iio/proximity/Makefile
drivers/iio/proximity/vcnl3020.c [new file with mode: 0644]