xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/iio/light/opt3001.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Texas Instruments OPT3001 Ambient Light Sensor
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe driver supports interrupt-driven and interrupt-less operation, depending
4*4882a593Smuzhiyunon whether an interrupt property has been populated into the DT. Note that
5*4882a593Smuzhiyunthe optional generation of IIO events on rising/falling light threshold changes
6*4882a593Smuzhiyunrequires the use of interrupts. Without interrupts, only the simple reading
7*4882a593Smuzhiyunof the current light value is supported through the IIO API.
8*4882a593Smuzhiyun
9*4882a593Smuzhiyunhttps://www.ti.com/product/opt3001
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunRequired properties:
12*4882a593Smuzhiyun  - compatible: should be "ti,opt3001"
13*4882a593Smuzhiyun  - reg: the I2C address of the sensor
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunOptional properties:
16*4882a593Smuzhiyun  - interrupts: interrupt mapping for GPIO IRQ (configure for falling edge)
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunExample:
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunopt3001@44 {
21*4882a593Smuzhiyun	compatible = "ti,opt3001";
22*4882a593Smuzhiyun	reg = <0x44>;
23*4882a593Smuzhiyun	interrupt-parent = <&gpio1>;
24*4882a593Smuzhiyun	interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
25*4882a593Smuzhiyun};
26