mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: ti-ads112c14: add burnout current support
@ 2026-07-24 20:49 David Lechner (TI)
  2026-07-24 20:49 ` [PATCH 1/2] " David Lechner (TI)
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Lechner (TI) @ 2026-07-24 20:49 UTC (permalink / raw)
  To: Jonathan Cameron, Nuno Sá, Andy Shevchenko
  Cc: Chris Hall, Patrick Edwards, Kurt Borja, linux-iio, linux-kernel,
	David Lechner (TI)

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@baylibre.com>
---
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: 0b5e142ced4bcf20532da051934bd694d1bbd470
change-id: 20260724-iio-adc-ti-ads112c14-burnout-184304669165
prerequisite-change-id: 20260714-iio-adc-ti-ads112c14-buffered-read-41e5d1ca0dc3:v2
prerequisite-patch-id: 8723aa599dcf5b836fb81cf1efb6c9096bf60b7a
prerequisite-patch-id: 12754335ccf210bcdeaa8a5d60b2280618d50993
prerequisite-change-id: 20260724-iio-adc-ti-ads112c14-continuous-mode-dd1580754609:v1
prerequisite-patch-id: 8723aa599dcf5b836fb81cf1efb6c9096bf60b7a
prerequisite-patch-id: 12754335ccf210bcdeaa8a5d60b2280618d50993
prerequisite-patch-id: ed5d4c1628ef60ed542339fe5fb490383ee8074f
prerequisite-patch-id: b92f5609fcf39e958e78b4dd74c3d323ebb6a161

Best regards,
--  
David Lechner (TI) <dlechner@baylibre.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-08-23 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-24 20:49 [PATCH 0/2] iio: adc: ti-ads112c14: add burnout current support David Lechner (TI)
2026-07-24 20:49 ` [PATCH 1/2] " David Lechner (TI)
2026-07-24 20:49 ` [PATCH 2/2] iio: ABI: add sysfs attribute for _burnoutraw David Lechner (TI)
2026-07-27  2:08 ` [PATCH 0/2] iio: adc: ti-ads112c14: add burnout current support Jonathan Cameron
2026-08-23 22:20   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®