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