xref: /linux/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/light/liteon,ltrf216a.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: LTRF216A Ambient Light Sensor
8
9maintainers:
10  - Shreeya Patel <shreeya.patel@collabora.com>
11
12description:
13  Ambient light sensing with an i2c interface.
14
15properties:
16  compatible:
17    enum:
18      - liteon,ltr308
19      - liteon,ltrf216a
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  vdd-supply:
28    description: Regulator that provides power to the sensor.
29
30required:
31  - compatible
32  - reg
33
34additionalProperties: false
35
36examples:
37  - |
38    #include <dt-bindings/interrupt-controller/irq.h>
39
40    i2c {
41        #address-cells = <1>;
42        #size-cells = <0>;
43
44        light-sensor@53 {
45            compatible = "liteon,ltrf216a";
46            reg = <0x53>;
47            vdd-supply = <&vdd_regulator>;
48            interrupt-parent = <&gpio0>;
49            interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
50        };
51    };
52