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/sharp,gp2ap020a00f.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Sharp GP2AP020A00F I2C Proximity/ALS sensor
0008 
0009 maintainers:
0010   - Kyungmin Park <kyungmin.park@samsung.com>
0011 
0012 description: |
0013   The proximity detector sensor requires power supply for its built-in led.
0014 
0015 properties:
0016   compatible:
0017     const: sharp,gp2ap020a00f
0018 
0019   reg:
0020     maxItems: 1
0021 
0022   interrupts:
0023     maxItems: 1
0024 
0025   vled-supply: true
0026 
0027 additionalProperties: false
0028 
0029 required:
0030   - compatible
0031   - reg
0032   - interrupts
0033   - vled-supply
0034 
0035 examples:
0036   - |
0037     i2c {
0038         #address-cells = <1>;
0039         #size-cells = <0>;
0040 
0041         light-sensor@39 {
0042             compatible = "sharp,gp2ap020a00f";
0043             reg = <0x39>;
0044             interrupts = <2 0>;
0045             vled-supply = <&als_reg>;
0046         };
0047     };
0048 ...