GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / iio / light / liteon,ltrf216a.yaml
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
7 title: LTRF216A Ambient Light Sensor
8
9 maintainers:
10   - Shreeya Patel <shreeya.patel@collabora.com>
11
12 description:
13   Ambient light sensing with an i2c interface.
14
15 properties:
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
28 required:
29   - compatible
30   - reg
31
32 additionalProperties: false
33
34 examples:
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     };