WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / iio / proximity / vishay,vcnl3020.yaml
blobfbd3a2e3228013cd5320011818fe08e63d325090
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#
7 title: Integrated Proximity Sensor With Infrared Emitter
9 maintainers:
10   - Ivan Mikhaylov <i.mikhaylov@yadro.com>
12 description: |
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.
18   Specifications about the devices can be found at:
19   https://www.vishay.com/docs/84150/vcnl3020.pdf
21 properties:
22   compatible:
23     enum:
24       - vishay,vcnl3020
26   reg:
27     maxItems: 1
29   interrupts:
30     maxItems: 1
32   vdd-supply:
33     description: Regulator that provides power to the sensor
35   vddio-supply:
36     description: Regulator that provides power to the bus
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
46 required:
47   - compatible
48   - reg
50 additionalProperties: false
52 examples:
53   - |
54     i2c {
56         #address-cells = <1>;
57         #size-cells = <0>;
59         proximity@13 {
60               compatible = "vishay,vcnl3020";
61               reg = <0x13>;
62               vishay,led-current-microamp = <200000>;
63         };
64     };