Path: blob/main/sys/contrib/device-tree/Bindings/iio/light/opt3001.txt
48406 views
* Texas Instruments OPT3001 Ambient Light Sensor12The driver supports interrupt-driven and interrupt-less operation, depending3on whether an interrupt property has been populated into the DT. Note that4the optional generation of IIO events on rising/falling light threshold changes5requires the use of interrupts. Without interrupts, only the simple reading6of the current light value is supported through the IIO API.78https://www.ti.com/product/opt3001910Required properties:11- compatible: should be "ti,opt3001"12- reg: the I2C address of the sensor1314Optional properties:15- interrupts: interrupt mapping for GPIO IRQ (configure for falling edge)1617Example:1819opt3001@44 {20compatible = "ti,opt3001";21reg = <0x44>;22interrupt-parent = <&gpio1>;23interrupts = <28 IRQ_TYPE_EDGE_FALLING>;24};252627