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