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@baylibre.com/
Signed-off-by: David Lechner (TI) <dlechner@baylibre.com>
---
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@baylibre.com
---
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 | 1 -
drivers/iio/adc/ti-ads112c14.c | 255 +++++++++++++++++++++++++++++++++++++++--
2 files changed, 243 insertions(+), 13 deletions(-)
---
base-commit: 0b5e142ced4bcf20532da051934bd694d1bbd470
change-id: 20260714-iio-adc-ti-ads112c14-buffered-read-41e5d1ca0dc3
Best regards,
--
David Lechner (TI) <dlechner@baylibre.com>