1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/proximity/vishay,vcnl3020.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Integrated Proximity Sensor With Infrared Emitter
8
9maintainers:
10  - Ivan Mikhaylov <i.mikhaylov@yadro.com>
11
12description: |
13  The VCNL3020 is a fully integrated proximity sensor. Fully integrated means
14  that the infrared emitter is included in the package. It has 16-bit
15  resolution. It includes a signal processing IC and features standard I2C
16  communication interface. It features an interrupt function.
17
18  Specifications about the devices can be found at:
19  https://www.vishay.com/docs/84150/vcnl3020.pdf
20
21properties:
22  compatible:
23    enum:
24      - vishay,vcnl3020
25
26  reg:
27    maxItems: 1
28
29  interrupts:
30    maxItems: 1
31
32  vdd-supply:
33    description: Regulator that provides power to the sensor
34
35  vddio-supply:
36    description: Regulator that provides power to the bus
37
38  vishay,led-current-microamp:
39    description:
40      The driver current for the LED used in proximity sensing.
41    enum: [0, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000,
42           100000, 110000, 120000, 130000, 140000, 150000, 160000, 170000,
43           180000, 190000, 200000]
44    default: 20000
45
46required:
47  - compatible
48  - reg
49
50examples:
51  - |
52    i2c {
53
54        #address-cells = <1>;
55        #size-cells = <0>;
56
57        proximity@13 {
58              compatible = "vishay,vcnl3020";
59              reg = <0x13>;
60              vishay,led-current-microamp = <200000>;
61        };
62    };
63