summaryrefslogtreecommitdiff
path: root/drivers/iio/proximity/Kconfig
diff options
context:
space:
mode:
authorSong Qiang <songqiang1304521@gmail.com>2018-09-18 11:24:21 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-09-22 18:42:56 +0300
commit6eb17c6c8aee233e27339bcefe4bf9bef6d94c6c (patch)
treec5f5c98a80e5b619966f8d08ec0b278c73718bf8 /drivers/iio/proximity/Kconfig
parent7c2d53700c7e0ca4b7d1bfd59971248625e9f70c (diff)
downloadlinux-6eb17c6c8aee233e27339bcefe4bf9bef6d94c6c.tar.xz
iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.
This driver was originally written by ST in 2016 as a misc input device driver, and hasn't been maintained for a long time. I grabbed some code from it's API and reformed it into an iio proximity device driver. This version of driver uses i2c bus to talk to the sensor and polling for measuring completes, so no irq line is needed. It can be tested with reading from /sys/bus/iio/devices/iio:deviceX/in_distance_input Signed-off-by: Song Qiang <songqiang1304521@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> 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 388ef70c11d2..b99367a89f81 100644
--- a/drivers/iio/proximity/Kconfig
+++ b/drivers/iio/proximity/Kconfig
@@ -92,4 +92,15 @@ config SRF08
To compile this driver as a module, choose M here: the
module will be called srf08.
+config VL53L0X_I2C
+ tristate "STMicroelectronics VL53L0X ToF ranger sensor (I2C)"
+ depends on I2C
+ help
+ Say Y here to build a driver for STMicroelectronics VL53L0X
+ ToF ranger sensors with i2c interface.
+ This driver can be used to measure the distance of objects.
+
+ To compile this driver as a module, choose M here: the
+ module will be called vl53l0x-i2c.
+
endmenu