1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/light/st,vl6180.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicro VL6180 ALS, range and proximity sensor
8
9maintainers:
10  - Manivannan Sadhasivam <manivannanece23@gmail.com>
11  - Peter Meerwald-Stadler <pmeerw@pmeerw.net>
12
13description: |
14  Proximity sensing module incorporating time of flight sensor
15  Datasheet at https://www.st.com/resource/en/datasheet/vl6180x.pdf
16
17properties:
18  compatible:
19    const: st,vl6180
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27additionalProperties: false
28
29required:
30  - compatible
31  - reg
32
33examples:
34  - |
35    #include <dt-bindings/interrupt-controller/irq.h>
36    i2c {
37        #address-cells = <1>;
38        #size-cells = <0>;
39
40        proximity@29 {
41            compatible = "st,vl6180";
42            reg = <0x29>;
43        };
44    };
45...
46