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,vcnl4035.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: VISHAY VCNL4035 ambient Light and proximity sensor
0008 
0009 maintainers:
0010   - Jonathan Cameron <jic23@kernel.org>
0011 
0012 description: |
0013   Datasheet at https://www.vishay.com/docs/84251/vcnl4035x01.pdf
0014 
0015 properties:
0016   compatible:
0017     const: vishay,vcnl4035
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   interrupts:
0023     maxItems: 1
0024 
0025 additionalProperties: false
0026 
0027 required:
0028   - compatible
0029   - reg
0030 
0031 examples:
0032   - |
0033     #include <dt-bindings/interrupt-controller/irq.h>
0034     i2c {
0035         #address-cells = <1>;
0036         #size-cells = <0>;
0037 
0038         light-sensor@60 {
0039             compatible = "vishay,vcnl4035";
0040             reg = <0x60>;
0041             interrupt-parent = <&gpio4>;
0042             interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
0043         };
0044     };
0045 ...