summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/iio/proximity
diff options
context:
space:
mode:
authorSong Qiang <songqiang1304521@gmail.com>2018-09-18 16:24:21 +0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-09-22 16:42:56 +0100
commit6eb17c6c8aee233e27339bcefe4bf9bef6d94c6c (patch)
treec5f5c98a80e5b619966f8d08ec0b278c73718bf8 /Documentation/devicetree/bindings/iio/proximity
parent7c2d53700c7e0ca4b7d1bfd59971248625e9f70c (diff)
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 'Documentation/devicetree/bindings/iio/proximity')
-rw-r--r--Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt b/Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt
new file mode 100644
index 000000000000..aac5f621f8dc
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/proximity/vl53l0x.txt
@@ -0,0 +1,12 @@
+ST VL53L0X ToF ranging sensor
+
+Required properties:
+ - compatible: must be "st,vl53l0x"
+ - reg: i2c address where to find the device
+
+Example:
+
+vl53l0x@29 {
+ compatible = "st,vl53l0x";
+ reg = <0x29>;
+};