1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*5def4c47SEmmanuel Vadot%YAML 1.2
3*5def4c47SEmmanuel Vadot---
4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/light/sharp,gp2ap020a00f.yaml#
5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5def4c47SEmmanuel Vadot
7*5def4c47SEmmanuel Vadottitle: Sharp GP2AP020A00F I2C Proximity/ALS sensor
8*5def4c47SEmmanuel Vadot
9*5def4c47SEmmanuel Vadotmaintainers:
10*5def4c47SEmmanuel Vadot  - Kyungmin Park <kyungmin.park@samsung.com>
11*5def4c47SEmmanuel Vadot
12*5def4c47SEmmanuel Vadotdescription: |
13*5def4c47SEmmanuel Vadot  The proximity detector sensor requires power supply for its built-in led.
14*5def4c47SEmmanuel Vadot
15*5def4c47SEmmanuel Vadotproperties:
16*5def4c47SEmmanuel Vadot  compatible:
17*5def4c47SEmmanuel Vadot    const: sharp,gp2ap020a00f
18*5def4c47SEmmanuel Vadot
19*5def4c47SEmmanuel Vadot  reg:
20*5def4c47SEmmanuel Vadot    maxItems: 1
21*5def4c47SEmmanuel Vadot
22*5def4c47SEmmanuel Vadot  interrupts:
23*5def4c47SEmmanuel Vadot    maxItems: 1
24*5def4c47SEmmanuel Vadot
25*5def4c47SEmmanuel Vadot  vled-supply: true
26*5def4c47SEmmanuel Vadot
27*5def4c47SEmmanuel VadotadditionalProperties: false
28*5def4c47SEmmanuel Vadot
29*5def4c47SEmmanuel Vadotrequired:
30*5def4c47SEmmanuel Vadot  - compatible
31*5def4c47SEmmanuel Vadot  - reg
32*5def4c47SEmmanuel Vadot  - interrupts
33*5def4c47SEmmanuel Vadot  - vled-supply
34*5def4c47SEmmanuel Vadot
35*5def4c47SEmmanuel Vadotexamples:
36*5def4c47SEmmanuel Vadot  - |
37*5def4c47SEmmanuel Vadot    i2c {
38*5def4c47SEmmanuel Vadot        #address-cells = <1>;
39*5def4c47SEmmanuel Vadot        #size-cells = <0>;
40*5def4c47SEmmanuel Vadot
41*5def4c47SEmmanuel Vadot        light-sensor@39 {
42*5def4c47SEmmanuel Vadot            compatible = "sharp,gp2ap020a00f";
43*5def4c47SEmmanuel Vadot            reg = <0x39>;
44*5def4c47SEmmanuel Vadot            interrupts = <2 0>;
45*5def4c47SEmmanuel Vadot            vled-supply = <&als_reg>;
46*5def4c47SEmmanuel Vadot        };
47*5def4c47SEmmanuel Vadot    };
48*5def4c47SEmmanuel Vadot...
49