Path: blob/main/sys/contrib/device-tree/Bindings/iio/light/ti,opt3001.yaml
48406 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:17const: ti,opt30011819reg:20maxItems: 12122interrupts:23maxItems: 124description: Should be configured with type IRQ_TYPE_EDGE_FALLING2526additionalProperties: false2728required:29- compatible30- reg3132examples:33- |34#include <dt-bindings/interrupt-controller/irq.h>35i2c {36#address-cells = <1>;37#size-cells = <0>;3839light-sensor@44 {40compatible = "ti,opt3001";41reg = <0x44>;42interrupt-parent = <&gpio1>;43interrupts = <28 IRQ_TYPE_EDGE_FALLING>;44};45};46...474849