zephyr/drivers/sensor/ti
Emil Dahl Juhl 1a3dd63dde drivers: sensor: ti: opt3001: add trigger support
The ti,opt3001 ambient light sensor is capable of asserting its interrupt
gpio upon conversion completion. The interrupt gpio can then be used to
trigger a reading of the conversion result automatically.
Due to this, it makes sense for the driver to implement the sensor trigger
functionality.

Add a devicetree property, int-gpios, to the ti,opt3001 bindings to allow
describing the gpio used for getting interrupts from the ti,opt3001.

Implement the sensor trigger functionality with options for using the
global worker thread or letting the ti,opt3001 create its own thread for
servicing the interrupts.
In both cases, when an interrupt is received the driver will read a new
measurement from the chip and clear the interrupt. The sample is then ready
to be read by the user of the sensor.

When manually triggering a sample_fetch, the trigger handler is not
invoked.

Signed-off-by: Emil Dahl Juhl <emdj@bang-olufsen.dk>
2025-04-07 15:18:21 +02:00
..
bq274xx
fdc2x1x
ina23x drivers: sensor: ti: ina230: Fix shared data between instances 2024-12-12 18:39:23 +01:00
ina219
ina226
ina3221
lm95234
opt3001 drivers: sensor: ti: opt3001: add trigger support 2025-04-07 15:18:21 +02:00
ti_hdc
ti_hdc20xx
tmag5170 drivers: sensor: Fix typos in TMAG5170 driver 2025-02-05 23:48:52 +01:00
tmag5273 drivers: sensor: Fix TMAG5273/TMAG3001 by adding a TMAG3001 compatible 2025-01-08 09:33:02 +01:00
tmp007
tmp108 sensor: tmp108: optimize resource usage 2025-01-15 19:03:40 +01:00
tmp112 drivers: sensor: tmp112: add support for setting ALERT thresholds 2025-03-31 08:07:12 +02:00
tmp114 drivers: sensor: tmp114: device tree support for setting oversample 2025-03-25 22:12:11 +01:00
tmp116 driver: sensor: tmp116: oversample attribute 2025-01-24 15:41:50 +01:00
tmp435 drivers: Update APIs to use DEVICE_API macro 2025-01-24 01:15:19 +01:00
tmp1075 drivers: sensor: tmp1075: remove redundant module name in log message 2025-03-07 20:20:46 +01:00
CMakeLists.txt drivers: sensor: ti: tmp435: added driver for TMP435 2025-01-21 19:26:32 +01:00
Kconfig drivers: sensor: ti: tmp435: added driver for TMP435 2025-01-21 19:26:32 +01:00