Path: blob/master/Documentation/devicetree/bindings/iio/light/amstaos,tsl2591.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/amstaos,tsl2591.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: AMS/TAOS TSL2591 Ambient Light Sensor (ALS)78maintainers:9- Joe Sandom <joe.g.sandom@gmail.com>1011description: |12AMS/TAOS TSL2591 is a very-high sensitivity13light-to-digital converter that transforms light intensity into a digital14signal.1516properties:17compatible:18const: amstaos,tsl25911920reg:21maxItems: 12223interrupts:24maxItems: 125description:26Interrupt (INT:Pin 2) Active low. Should be set to IRQ_TYPE_EDGE_FALLING.27interrupt is used to detect if the light intensity has fallen below28or reached above the configured threshold values.2930required:31- compatible32- reg3334additionalProperties: false3536examples:37- |38#include <dt-bindings/interrupt-controller/irq.h>39i2c {40#address-cells = <1>;41#size-cells = <0>;4243tsl2591@29 {44compatible = "amstaos,tsl2591";45reg = <0x29>;46interrupts = <20 IRQ_TYPE_EDGE_FALLING>;47};48};49...505152