Path: blob/master/Documentation/devicetree/bindings/iio/light/ti,opt3001.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/ti,opt3001.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Texas Instruments OPT3001 Ambient Light Sensor78maintainers:9- Andreas Dannenberg <dannenberg@ti.com>1011description: |12The device supports interrupt-driven and interrupt-less operation, depending13on whether an interrupt property has been populated into the DT.1415properties:16compatible:17enum:18- ti,opt300119- ti,opt30022021reg:22maxItems: 12324interrupts:25maxItems: 126description: Should be configured with type IRQ_TYPE_EDGE_FALLING2728additionalProperties: false2930required:31- compatible32- reg3334examples:35- |36#include <dt-bindings/interrupt-controller/irq.h>37i2c {38#address-cells = <1>;39#size-cells = <0>;4041light-sensor@44 {42compatible = "ti,opt3001";43reg = <0x44>;44interrupt-parent = <&gpio1>;45interrupts = <28 IRQ_TYPE_EDGE_FALLING>;46};47};48...495051