summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/iio/light/liteon,ltrf216a.yaml
blob: 877e955d4ebd1fabaf269c0e460ee84a86b14a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/iio/light/liteon,ltrf216a.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: LTRF216A Ambient Light Sensor

maintainers:
  - Shreeya Patel <shreeya.patel@collabora.com>

description:
  Ambient light sensing with an i2c interface.

properties:
  compatible:
    enum:
      - liteon,ltr308
      - liteon,ltrf216a

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  vdd-supply:
    description: Regulator that provides power to the sensor.

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>

    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

        light-sensor@53 {
            compatible = "liteon,ltrf216a";
            reg = <0x53>;
            vdd-supply = <&vdd_regulator>;
            interrupt-parent = <&gpio0>;
            interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
        };
    };