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
7 title: Sharp GP2AP020A00F I2C Proximity/ALS sensor
8
9 maintainers:
10 - Kyungmin Park <kyungmin.park@samsung.com>
11
12 description: |
13 The proximity detector sensor requires power supply for its built-in led.
14
15 properties:
16 compatible:
17 const: sharp,gp2ap020a00f
18
19 reg:
20 maxItems: 1
21
22 interrupts:
23 maxItems: 1
24
25 vled-supply: true
26
27 additionalProperties: false
28
29 required:
30 - compatible
31 - reg
32 - interrupts
33 - vled-supply
34
35 examples:
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 ...
Cache object: a08a54378161211e38fd00f52a621a46
|