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