0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/proximity/st,vl53l0x.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: ST VL53L0X ToF ranging sensor
0008
0009 maintainers:
0010 - Song Qiang <songqiang1304521@gmail.com>
0011
0012 properties:
0013 compatible:
0014 const: st,vl53l0x
0015
0016 reg:
0017 maxItems: 1
0018
0019 interrupts:
0020 maxItems: 1
0021
0022 reset-gpios:
0023 maxItems: 1
0024
0025 vdd-supply: true
0026
0027 required:
0028 - compatible
0029 - reg
0030
0031 additionalProperties: false
0032
0033 examples:
0034 - |
0035 #include <dt-bindings/interrupt-controller/irq.h>
0036 i2c {
0037 #address-cells = <1>;
0038 #size-cells = <0>;
0039
0040 proximity@29 {
0041 compatible = "st,vl53l0x";
0042 reg = <0x29>;
0043 interrupt-parent = <&gpio>;
0044 interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
0045 };
0046 };
0047 ...