aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/proximity/Kconfig
diff options
context:
space:
mode:
authorIvan Mikhaylov <i.mikhaylov@yadro.com>2020-05-10 21:45:37 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-05-21 19:12:42 +0100
commitac101e6b315bfeb5a4f43a962f589e567855c177 (patch)
tree7a48a3bad5ae66cab956f97265ef720f7dab9a45 /drivers/iio/proximity/Kconfig
parentdt-bindings: proximity: provide vcnl3020 device tree binding document (diff)
downloadlinux-dev-ac101e6b315bfeb5a4f43a962f589e567855c177.tar.xz
linux-dev-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/Kconfig11
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