[PATCH v2 0/2] iio: adc: ti-ads112c14: add burnout current support

From: David Lechner (TI)

Date: Thu Aug 27 2026 - 18:27:56 EST


The TI ADS112C14 ADC has a feature to enable a "burnout" current when
taking a measurement. This can be used to detect open/short circuit
conditions of a connected sensor. However, enabling this affects the
accuracy of the reading. So we add a custom "burnoutraw" attribute for
this. This works like the standard raw attribute to do a direct read
but does so with the burnout current enabled.

If this sounds familiar, it is because we discussed this on a similar
chip recently [1]. And this is why I put the ABI docs in a common ADC
file rather than one specific to this chip.

[1]: https://lore.kernel.org/linux-iio/20260622110223.7e854dde@jic23-huawei/

Signed-off-by: David Lechner (TI) <dlechner@xxxxxxxxxxxx>
---
Changes in v2:
- Rebased on "[PATCH v4 0/3] iio: adc: ti-ads112c14: continuous mode support"
- Link to v1: https://patch.msgid.link/20260724-iio-adc-ti-ads112c14-burnout-v1-0-f0204cecbe3a@xxxxxxxxxxxx

---
David Lechner (TI) (2):
iio: adc: ti-ads112c14: add burnout current support
iio: ABI: add sysfs attribute for _burnoutraw

Documentation/ABI/testing/sysfs-bus-iio-adc | 9 ++
drivers/iio/adc/ti-ads112c14.c | 126 ++++++++++++++++++++++++++--
2 files changed, 126 insertions(+), 9 deletions(-)
---
base-commit: 22359083a9e74d538ce383d5c0ee30cc20182187
change-id: 20260724-iio-adc-ti-ads112c14-burnout-184304669165
prerequisite-change-id: 20260724-iio-adc-ti-ads112c14-continuous-mode-dd1580754609:v3
prerequisite-patch-id: 0be96266a72458a63f7da7ca876d87cdf5769a8b
prerequisite-patch-id: 32ba48fd5eacaee60d50a0272557859cc9ea83ca
prerequisite-patch-id: c1eb09689bd5f259ea0110cbbfb3fa76689bdb04

Best regards,
--
David Lechner (TI) <dlechner@xxxxxxxxxxxx>