xref: /linux/Documentation/devicetree/bindings/iio/light/avago,apds9300.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/avago,apds9300.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Avago Gesture/RGB/ALS/Proximity sensors
8
9maintainers:
10  - Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
11
12description: |
13  Datasheet: https://www.avagotech.com/docs/AV02-1077EN
14  Datasheet: https://www.avagotech.com/docs/AV02-4191EN
15  Datasheet: https://www.avagotech.com/docs/AV02-4755EN
16
17properties:
18  compatible:
19    enum:
20      - avago,apds9300
21      - avago,apds9306
22      - avago,apds9960
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    maxItems: 1
29
30  vdd-supply: true
31
32additionalProperties: false
33
34required:
35  - compatible
36  - reg
37
38examples:
39  - |
40    #include <dt-bindings/interrupt-controller/irq.h>
41
42    i2c {
43        #address-cells = <1>;
44        #size-cells = <0>;
45
46        light-sensor@39 {
47            compatible = "avago,apds9300";
48            reg = <0x39>;
49            interrupt-parent = <&gpio2>;
50            interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
51            vdd-supply = <&regulator_3v3>;
52        };
53    };
54...
55