0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/light/amstaos,tsl2591.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: AMS/TAOS TSL2591 Ambient Light Sensor (ALS)
0008
0009 maintainers:
0010 - Joe Sandom <joe.g.sandom@gmail.com>
0011
0012 description: |
0013 AMS/TAOS TSL2591 is a very-high sensitivity
0014 light-to-digital converter that transforms light intensity into a digital
0015 signal.
0016
0017 properties:
0018 compatible:
0019 const: amstaos,tsl2591
0020
0021 reg:
0022 maxItems: 1
0023
0024 interrupts:
0025 maxItems: 1
0026 description:
0027 Interrupt (INT:Pin 2) Active low. Should be set to IRQ_TYPE_EDGE_FALLING.
0028 interrupt is used to detect if the light intensity has fallen below
0029 or reached above the configured threshold values.
0030
0031 required:
0032 - compatible
0033 - reg
0034
0035 additionalProperties: false
0036
0037 examples:
0038 - |
0039 #include <dt-bindings/interrupt-controller/irq.h>
0040 i2c {
0041 #address-cells = <1>;
0042 #size-cells = <0>;
0043
0044 tsl2591@29 {
0045 compatible = "amstaos,tsl2591";
0046 reg = <0x29>;
0047 interrupts = <20 IRQ_TYPE_EDGE_FALLING>;
0048 };
0049 };
0050 ...