Debian Codegraph @

Documentation/devicetree/bindings/iio/proximity/st,vl53l0x.yaml

raw symbols SCIP
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/proximity/st,vl53l0x.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: ST VL53L0X/VL53L1X ToF ranging sensor
8
9 maintainers:
10 - Song Qiang <[email protected]>
11 - Siratul Islam <[email protected]>
12
13 properties:
14 compatible:
15 enum:
16 - st,vl53l0x
17 - st,vl53l1x
18
19 reg:
20 maxItems: 1
21
22 interrupts:
23 maxItems: 1
24
25 reset-gpios:
26 maxItems: 1
27 description:
28 Phandle to the XSHUT GPIO. Used for hardware reset.
29
30 vdd-supply: true
31
32 required:
33 - compatible
34 - reg
35
36 allOf:
37 - if:
38 properties:
39 compatible:
40 contains:
41 const: st,vl53l1x
42 then:
43 required:
44 - vdd-supply
45
46 additionalProperties: false
47
48 examples:
49 - |
50 #include <dt-bindings/interrupt-controller/irq.h>
51 i2c {
52 #address-cells = <1>;
53 #size-cells = <0>;
54
55 proximity@29 {
56 compatible = "st,vl53l1x";
57 reg = <0x29>;
58 vdd-supply = <&reg_3v3>;
59 interrupt-parent = <&gpio>;
60 interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
61 };
62 };
63 ...