xref: /linux/Documentation/devicetree/bindings/iio/light/liteon,ltr390.yaml (revision 48ba7d2f24f18c6752275c18f25a396221aa2787)
1*48ba7d2fSAnshul Dalal# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*48ba7d2fSAnshul Dalal%YAML 1.2
3*48ba7d2fSAnshul Dalal---
4*48ba7d2fSAnshul Dalal$id: http://devicetree.org/schemas/iio/light/liteon,ltr390.yaml#
5*48ba7d2fSAnshul Dalal$schema: http://devicetree.org/meta-schemas/core.yaml#
6*48ba7d2fSAnshul Dalal
7*48ba7d2fSAnshul Dalaltitle: Lite-On LTR390 ALS and UV Sensor
8*48ba7d2fSAnshul Dalal
9*48ba7d2fSAnshul Dalaldescription: |
10*48ba7d2fSAnshul Dalal  The Lite-On LTR390 is an ALS (Ambient Light Sensor) and a UV sensor in a
11*48ba7d2fSAnshul Dalal  single package with i2c address of 0x53.
12*48ba7d2fSAnshul Dalal
13*48ba7d2fSAnshul Dalal  Datasheet:
14*48ba7d2fSAnshul Dalal    https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf
15*48ba7d2fSAnshul Dalal
16*48ba7d2fSAnshul Dalalmaintainers:
17*48ba7d2fSAnshul Dalal  - Anshul Dalal <anshulusr@gmail.com>
18*48ba7d2fSAnshul Dalal
19*48ba7d2fSAnshul Dalalproperties:
20*48ba7d2fSAnshul Dalal  compatible:
21*48ba7d2fSAnshul Dalal    enum:
22*48ba7d2fSAnshul Dalal      - liteon,ltr390
23*48ba7d2fSAnshul Dalal
24*48ba7d2fSAnshul Dalal  reg:
25*48ba7d2fSAnshul Dalal    maxItems: 1
26*48ba7d2fSAnshul Dalal
27*48ba7d2fSAnshul Dalal  interrupts:
28*48ba7d2fSAnshul Dalal    maxItems: 1
29*48ba7d2fSAnshul Dalal    description: |
30*48ba7d2fSAnshul Dalal      Level interrupt pin with open drain output.
31*48ba7d2fSAnshul Dalal      The sensor pulls this pin low when the measured reading is greater than
32*48ba7d2fSAnshul Dalal      some configured threshold.
33*48ba7d2fSAnshul Dalal
34*48ba7d2fSAnshul Dalal  vdd-supply: true
35*48ba7d2fSAnshul Dalal
36*48ba7d2fSAnshul Dalalrequired:
37*48ba7d2fSAnshul Dalal  - compatible
38*48ba7d2fSAnshul Dalal  - reg
39*48ba7d2fSAnshul Dalal
40*48ba7d2fSAnshul DalaladditionalProperties: false
41*48ba7d2fSAnshul Dalal
42*48ba7d2fSAnshul Dalalexamples:
43*48ba7d2fSAnshul Dalal  - |
44*48ba7d2fSAnshul Dalal    #include <dt-bindings/interrupt-controller/irq.h>
45*48ba7d2fSAnshul Dalal
46*48ba7d2fSAnshul Dalal    i2c {
47*48ba7d2fSAnshul Dalal        #address-cells = <1>;
48*48ba7d2fSAnshul Dalal        #size-cells = <0>;
49*48ba7d2fSAnshul Dalal
50*48ba7d2fSAnshul Dalal        light-sensor@53 {
51*48ba7d2fSAnshul Dalal            compatible = "liteon,ltr390";
52*48ba7d2fSAnshul Dalal            reg = <0x53>;
53*48ba7d2fSAnshul Dalal            interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
54*48ba7d2fSAnshul Dalal            vdd-supply = <&vdd_regulator>;
55*48ba7d2fSAnshul Dalal        };
56*48ba7d2fSAnshul Dalal    };
57