xref: /linux/Documentation/devicetree/bindings/iio/light/brcm,apds9999.yaml (revision b2128290c29902315e632ea59e0504d6bc9e9b42)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/light/brcm,apds9999.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6title: Broadcom APDS-9999 Digital Proximity and RGB Sensor
7
8maintainers:
9  - Jose A. Perez de Azpillaga <azpijr@gmail.com>
10
11description: |
12  Broadcom APDS-9999 is a digital proximity and RGB sensor with
13  ambient light sensing (ALS) capability. The device uses individual
14  R, G, B, and IR channels plus a Vertical Cavity Surface Emitting
15  Laser (VCSEL) for proximity detection.
16
17  Datasheet: https://docs.broadcom.com/docs/APDS-9999-DS
18
19properties:
20  compatible:
21    enum:
22      - brcm,apds9999
23
24  reg:
25    maxItems: 1
26
27  vdd-supply: true
28
29  vcsel-supply:
30    description: VCSEL power supply (VVCSEL pin)
31
32  interrupts:
33    maxItems: 1
34
35additionalProperties: false
36
37required:
38  - compatible
39  - reg
40  - vdd-supply
41
42examples:
43  - |
44    i2c {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        light-sensor@52 {
49            compatible = "brcm,apds9999";
50            reg = <0x52>;
51            vdd-supply = <&vdd_reg>;
52            vcsel-supply = <&vcsel_reg>;
53        };
54    };
55