[PATCH v2 0/2] iio: temperature: tmp006: support for drdy irq

From: Antoni Pokusinski
Date: Sun Sep 08 2024 - 13:22:24 EST


This patch series adds support for the data ready interrupt of tmp006
sensor. The interrupt line is pulled down once there is a measurement
available to be read. Hence, triggered buffers are used in order to
support continuous data capture for the sensor.

Changes since v1:
* dt-binding: improve the commit message
* tmp006_read_raw: use iio_device_claim_direct_scoped()
* tmp006_channels[] : add trailing commas
* tmp006_trigger_handler: use s32 to check return value of read_word_data()
* tmp006_set_trigger_state: fix data alignment
* tmp006_probe: check return value of devm_iio_triggered_buffer_setup()
* tmp006_probe: remove IRQF_TRIGGER_FALLING from irqflags argument of
devm_request_threaded_irq()
* tmp006_probe: set avaliable_scan_masks to tmp006_scan_masks[]

Antoni Pokusinski (2):
iio: temperature: tmp006: add triggered buffer support
dt-bindings: iio: temperature: tmp006: document interrupt

.../bindings/iio/temperature/ti,tmp006.yaml | 6 +
drivers/iio/temperature/Kconfig | 2 +
drivers/iio/temperature/tmp006.c | 134 ++++++++++++++++--
3 files changed, 129 insertions(+), 13 deletions(-)

--
2.25.1