xref: /freebsd/sys/contrib/device-tree/Bindings/iio/light/opt3001.txt (revision 2b8331622f0b212cf3bb4fc4914a501e5321d506)
1* Texas Instruments OPT3001 Ambient Light Sensor
2
3The driver supports interrupt-driven and interrupt-less operation, depending
4on whether an interrupt property has been populated into the DT. Note that
5the optional generation of IIO events on rising/falling light threshold changes
6requires the use of interrupts. Without interrupts, only the simple reading
7of the current light value is supported through the IIO API.
8
9https://www.ti.com/product/opt3001
10
11Required properties:
12  - compatible: should be "ti,opt3001"
13  - reg: the I2C address of the sensor
14
15Optional properties:
16  - interrupts: interrupt mapping for GPIO IRQ (configure for falling edge)
17
18Example:
19
20opt3001@44 {
21	compatible = "ti,opt3001";
22	reg = <0x44>;
23	interrupt-parent = <&gpio1>;
24	interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
25};
26