1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/iio/light/ti,opt4001.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Texas Instruments OPT4001 Ambient Light Sensor
10 - Stefan Windfeldt-Prytz <stefan.windfeldt-prytz@axis.com>
13 Ambient light sensor with an i2c interface.
14 Last part of compatible is for the packaging used.
15 Picostar is a 4 pinned SMT and sot-5x3 is a 8 pinned SOT.
16 https://www.ti.com/lit/gpn/opt4001
31 description: Regulator that provides power to the sensor
42 const: ti,opt4001-sot-5x3
51 additionalProperties: false
55 #include <dt-bindings/interrupt-controller/irq.h>
61 compatible = "ti,opt4001-sot-5x3";
63 vdd-supply = <&vdd_reg>;
64 interrupt-parent = <&gpio1>;
65 interrupts = <28 IRQ_TYPE_EDGE_FALLING>;