OSDN Git Service

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)
commit6eb17c6c8aee233e27339bcefe4bf9bef6d94c6c
treec5f5c98a80e5b619966f8d08ec0b278c73718bf8
parent7c2d53700c7e0ca4b7d1bfd59971248625e9f70c
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]