0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/proximity/vishay,vcnl3020.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Integrated Proximity Sensor With Infrared Emitter
0008
0009 maintainers:
0010 - Ivan Mikhaylov <i.mikhaylov@yadro.com>
0011
0012 description: |
0013 The VCNL3020 is a fully integrated proximity sensor. Fully integrated means
0014 that the infrared emitter is included in the package. It has 16-bit
0015 resolution. It includes a signal processing IC and features standard I2C
0016 communication interface. It features an interrupt function.
0017
0018 Specifications about the devices can be found at:
0019 https://www.vishay.com/docs/84150/vcnl3020.pdf
0020
0021 properties:
0022 compatible:
0023 enum:
0024 - vishay,vcnl3020
0025
0026 reg:
0027 maxItems: 1
0028
0029 interrupts:
0030 maxItems: 1
0031
0032 vdd-supply:
0033 description: Regulator that provides power to the sensor
0034
0035 vddio-supply:
0036 description: Regulator that provides power to the bus
0037
0038 vishay,led-current-microamp:
0039 description:
0040 The driver current for the LED used in proximity sensing.
0041 enum: [0, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000,
0042 100000, 110000, 120000, 130000, 140000, 150000, 160000, 170000,
0043 180000, 190000, 200000]
0044 default: 20000
0045
0046 required:
0047 - compatible
0048 - reg
0049
0050 additionalProperties: false
0051
0052 examples:
0053 - |
0054 i2c {
0055
0056 #address-cells = <1>;
0057 #size-cells = <0>;
0058
0059 proximity@13 {
0060 compatible = "vishay,vcnl3020";
0061 reg = <0x13>;
0062 vishay,led-current-microamp = <200000>;
0063 };
0064 };