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