[PATCH v3 0/2] iio: adc: ti-ads112c14: buffered read support
From: David Lechner (TI)
Date: Mon Jul 27 2026 - 10:11:41 EST
This is the next phase of ti-ads112c14 support after [1].
Some design decision notes:
* This just includes support for software triggers using the single-shot
mode for now. We will follow up later with DRDY interrupt support and
a new trigger to allow using the continuous mode.
* We wanted to enable CRC checking for data integrity, so it is just
always enabled. This way, the buffer layout is always the same. I
don't think we have an existing control for toggling CRC checking
anyway.
[1]: https://lore.kernel.org/linux-iio/20260714-iio-adc-ti-ads122c14-v4-0-25f8e3084485@xxxxxxxxxxxx/
Signed-off-by: David Lechner (TI) <dlechner@xxxxxxxxxxxx>
---
Changes in v3:
- Fix bugs found by Sashiko.
- Use regmap_set_bits() when possible.
- Link to v2: https://patch.msgid.link/20260724-iio-adc-ti-ads112c14-buffered-read-v2-0-98b06f3d47d9@xxxxxxxxxxxx
Changes in v2:
- Dropped debugfs patch that was applied.
- Adjusted for tweaks made to [1] when it was applied.
- Made some clarifications in the last patch (commit message and comments).
- Refactored the index tracking (`i` variable) in the last patch.
- Link to v1: https://patch.msgid.link/20260714-iio-adc-ti-ads112c14-buffered-read-v1-0-fe6e1c971288@xxxxxxxxxxxx
---
David Lechner (TI) (2):
iio: adc: ti-ads112c14: add support for I2C CRC8
iio: adc: ti-ads112c14: add support for buffered read
drivers/iio/adc/Kconfig | 2 +-
drivers/iio/adc/ti-ads112c14.c | 254 +++++++++++++++++++++++++++++++++++++++--
2 files changed, 243 insertions(+), 13 deletions(-)
---
base-commit: e2c4207d8eee17db9b09eb36f0f5edfafb223bd7
change-id: 20260714-iio-adc-ti-ads112c14-buffered-read-41e5d1ca0dc3
Best regards,
--
David Lechner (TI) <dlechner@xxxxxxxxxxxx>