]> git.baikalelectronics.ru Git - kernel.git/commit
iio: proximity: Add driver support for ST's VL53L0X ToF ranging sensor.
authorSong Qiang <songqiang1304521@gmail.com>
Tue, 18 Sep 2018 08:24:21 +0000 (16:24 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Sep 2018 15:42:56 +0000 (16:42 +0100)
commitdc9bdf18067419a1b959d048e5f6b04ddd73d3d0
treec5f5c98a80e5b619966f8d08ec0b278c73718bf8
parent26ced41e6e85bce49166b33b45fef5662f38a072
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>
Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt [new file with mode: 0644]
MAINTAINERS
drivers/iio/proximity/Kconfig
drivers/iio/proximity/Makefile
drivers/iio/proximity/vl53l0x-i2c.c [new file with mode: 0644]