Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/vishay,vcnl4000.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: VISHAY VCNL4000 ambient light and proximity sensor
0008 
0009 maintainers:
0010   - Peter Meerwald <pmeerw@pmeerw.net>
0011 
0012 description: |
0013   Ambient light sensing with proximity detection over an i2c
0014   interface.
0015 
0016 allOf:
0017   - $ref: ../common.yaml#
0018 
0019 properties:
0020   compatible:
0021     enum:
0022       - vishay,vcnl4000
0023       - vishay,vcnl4010
0024       - vishay,vcnl4020
0025       - vishay,vcnl4040
0026       - vishay,vcnl4200
0027 
0028   interrupts:
0029     maxItems: 1
0030 
0031   reg:
0032     maxItems: 1
0033 
0034   proximity-near-level: true
0035 
0036 required:
0037   - compatible
0038   - reg
0039 
0040 additionalProperties: false
0041 
0042 examples:
0043   - |
0044     i2c {
0045         #address-cells = <1>;
0046         #size-cells = <0>;
0047 
0048         light-sensor@51 {
0049             compatible = "vishay,vcnl4200";
0050             reg = <0x51>;
0051             proximity-near-level = <220>;
0052         };
0053     };
0054 ...