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    const: liteon,ltrf216a
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  vdd-supply:
26    description: Regulator that provides power to the sensor.
27
28required:
29  - compatible
30  - reg
31
32additionalProperties: false
33
34examples:
35  - |
36    #include <dt-bindings/interrupt-controller/irq.h>
37
38    i2c {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        light-sensor@53 {
43            compatible = "liteon,ltrf216a";
44            reg = <0x53>;
45            vdd-supply = <&vdd_regulator>;
46            interrupt-parent = <&gpio0>;
47            interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
48        };
49    };
50