[PATCH 0/4] iio: pressure: mpl3115: add hardware FIFO support
SeungJu Cheon <[email protected]>
| Newsgroups | dev.linux.lists.linux-kernel-mentees,org.kernel.vger.linux-iio |
|---|---|
| Message-ID | <[email protected]> |
The MPL3115A2 pressure/temperature sensor provides a 32-sample hardware FIFO with watermark interrupt support. This series adds FIFO support, enabling buffered data acquisition with reduced interrupt and CPU overheads. 1/4 - Convert to devm-managed resource allocation 2/4 - Clean up interrupt handling and locking 3/4 - Generalize interrupt pin routing 4/4 - Add hardware FIFO support Tested on Raspberry Pi 4 Model B with an MPL3115A2 breakout board (I2C1, INT1 on GPIO17, falling edge) - FIFO circular mode operation - Watermark interrupt generation - Buffered pressure/temperature data acquisition - Buffer enable/disable cycling - Oneshot reads after FIFO operation This work builds on the DRDY interrupt, triggered buffer, sampling frequency, and threshold event support previously added by Antoni Pokusinski. SeungJu Cheon (4): iio: pressure: mpl3115: convert probe to fully devm managed iio: pressure: mpl3115: clean up interrupt handling and locking iio: pressure: mpl3115: generalize interrupt pin routing iio: pressure: mpl3115: add hardware FIFO support drivers/iio/pressure/mpl3115.c | 421 ++++++++++++++++++++++++++------- 1 file changed, 332 insertions(+), 89 deletions(-) -- 2.52.0