Path: blob/master/Documentation/devicetree/bindings/iio/light/liteon,ltr390.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/light/liteon,ltr390.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Lite-On LTR390 ALS and UV Sensor78description: |9The Lite-On LTR390 is an ALS (Ambient Light Sensor) and a UV sensor in a10single package with i2c address of 0x53.1112Datasheet:13https://optoelectronics.liteon.com/upload/download/DS86-2015-0004/LTR-390UV_Final_%20DS_V1%201.pdf1415maintainers:16- Anshul Dalal <anshulusr@gmail.com>1718properties:19compatible:20enum:21- liteon,ltr3902223reg:24maxItems: 12526interrupts:27maxItems: 128description: |29Level interrupt pin with open drain output.30The sensor pulls this pin low when the measured reading is greater than31some configured threshold.3233vdd-supply: true3435required:36- compatible37- reg3839additionalProperties: false4041examples:42- |43#include <dt-bindings/interrupt-controller/irq.h>4445i2c {46#address-cells = <1>;47#size-cells = <0>;4849light-sensor@53 {50compatible = "liteon,ltr390";51reg = <0x53>;52interrupts = <18 IRQ_TYPE_EDGE_FALLING>;53vdd-supply = <&vdd_regulator>;54};55};565758