Path: blob/master/Documentation/devicetree/bindings/iio/light/ti,opt4001.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,opt4001.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Texas Instruments OPT4001 Ambient Light Sensor78maintainers:9- Stefan Windfeldt-Prytz <stefan.windfeldt-prytz@axis.com>1011description:12Ambient light sensor with an i2c interface.13Last part of compatible is for the packaging used.14Picostar is a 4 pinned SMT and sot-5x3 is a 8 pinned SOT.15https://www.ti.com/lit/gpn/opt40011617properties:18compatible:19enum:20- ti,opt4001-picostar21- ti,opt4001-sot-5x32223reg:24maxItems: 12526interrupts:27maxItems: 12829vdd-supply:30description: Regulator that provides power to the sensor3132required:33- compatible34- reg3536allOf:37- if:38properties:39compatible:40contains:41const: ti,opt4001-sot-5x342then:43properties:44interrupts:45maxItems: 146else:47properties:48interrupts: false4950additionalProperties: false5152examples:53- |54#include <dt-bindings/interrupt-controller/irq.h>55i2c {56#address-cells = <1>;57#size-cells = <0>;5859light-sensor@44 {60compatible = "ti,opt4001-sot-5x3";61reg = <0x44>;62vdd-supply = <&vdd_reg>;63interrupt-parent = <&gpio1>;64interrupts = <28 IRQ_TYPE_EDGE_FALLING>;65};66};67...686970