Skip to content

iio: pressure: mpl3115: add hardware FIFO support

SeungJu Cheon linux-iio linux-kernel-mentees 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4iio: pressure: mpl3115: convert probe to fully devm manageddrivers/iio/pressure/mpl3115.c+39 -425 replies
2/4iio: pressure: mpl3115: clean up interrupt handling and lockingdrivers/iio/pressure/mpl3115.c+29 -304 replies
3/4iio: pressure: mpl3115: generalize interrupt pin routingdrivers/iio/pressure/mpl3115.c+17 -164 replies
4/4iio: pressure: mpl3115: add hardware FIFO supportdrivers/iio/pressure/mpl3115.c+256 -106 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] iio: pressure: mpl3115: add hardware FIFO support

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(-)
Signature · 1 line
2.52.0