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