diff options
author | Ivan Mikhaylov <i.mikhaylov@yadro.com> | 2020-05-10 20:45:37 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-05-21 20:12:42 +0200 |
commit | ac101e6b315bfeb5a4f43a962f589e567855c177 (patch) | |
tree | 7a48a3bad5ae66cab956f97265ef720f7dab9a45 /drivers/iio/proximity/Kconfig | |
parent | dt-bindings: proximity: provide vcnl3020 device tree binding document (diff) | |
download | linux-ac101e6b315bfeb5a4f43a962f589e567855c177.tar.xz linux-ac101e6b315bfeb5a4f43a962f589e567855c177.zip |
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>
Diffstat (limited to 'drivers/iio/proximity/Kconfig')
-rw-r--r-- | drivers/iio/proximity/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/iio/proximity/Kconfig b/drivers/iio/proximity/Kconfig index d57e8cc17e42..12672a0e89ed 100644 --- a/drivers/iio/proximity/Kconfig +++ b/drivers/iio/proximity/Kconfig @@ -140,6 +140,17 @@ config SRF08 To compile this driver as a module, choose M here: the module will be called srf08. +config VCNL3020 + tristate "VCNL3020 proximity sensor" + select REGMAP_I2C + depends on I2C + help + Say Y here if you want to build a driver for the Vishay VCNL3020 + proximity sensor. + + To compile this driver as a module, choose M here: the + module will be called vcnl3020. + config VL53L0X_I2C tristate "STMicroelectronics VL53L0X ToF ranger sensor (I2C)" depends on I2C |