iio: adc: ad7173: add ad4111 openwire detection support
Get series with b4
b4 am [email protected] change-id 20241115-ad4111_openwire-e55deba8297fVersions newest first
- v5 Latest2 patches 2 repliesIn review
- v42 patches 3 repliesSuperseded
- v3 RFC2 patches 4 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 RFC | 2 patches | 4 replies | Superseded | |
| v1 RFC | 1 patch | 3 replies | Superseded |
Changes in v5 from the cover letter
- Rebased on top of iio/testing (ed2010907c)
- Added a millivolt to openwire raw threshold helper as suggested by
Nuno.
- Link to v4: https://lore.kernel.org/r/[email protected]
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | iio: introduce the FAULT event typedrivers/ include/ tools/ | +8 | 0 replies | |
| 2/2 | iio: adc: ad7173: add openwire detection support for single conversionsdrivers/ | +179 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Nuno Sa | David Lechner |
|---|---|---|
| Series | R-b | |
| 1/2 | R-b | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/2] iio: adc: ad7173: add ad4111 openwire detection support
Hi.
This patch adds the openwire detection support for the ad4111 chip.
The openwire detection is done in software and relies on comparing the results of two conversions on different channels.
The openwire detection on ad4111 is triggered automatically when a single conversion is requested.
Due to the way openwire detection works on ad4111, implementing openwire detection for continuous conversion mode is out of the scope of this series.
Following discussion on V2, I have changed the event to be IIO_EV_TYPE_FAULT and added a direction called IIO_EV_DIR_FAULT_OPENWIRE to signal the specific fault.
The fault is level triggered (ie: the event will be sent as long as the fault persists).
There's no event to signal that the fault has been "fixed", an absence of FAULT event means that the open wire condition is not detected.
Thx,
Guillaume.
---
Changes in v5:
- Rebased on top of iio/testing (ed2010907c)
- Added a millivolt to openwire raw threshold helper as suggested by
Nuno.
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Rename IIO_EV_DIR_OPENWIRE to IIO_EV_DIR_FAULT_OPENWIRE to make it
clearer the OPENWIRE direction is in the FAULT "namespace"
- Removal of the RFC prefix
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Rename IIO_EV_TYPE_OPENWIRE to IIO_EV_TYPE_FAULT and add
IIO_EV_DIR_OPENWIRE.
- Remove per channel open wire threshold configuration interface.
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Introduce IIO_EV_TYPE_OPENWIRE instead of misusing the IIO_EV_THRESH
event.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Guillaume Ranquet (2):
iio: introduce the FAULT event type
iio: adc: ad7173: add openwire detection support for single conversions
drivers/iio/adc/ad7173.c | 179 +++++++++++++++++++++++++++++++++++++++ drivers/iio/industrialio-event.c | 2 + include/uapi/linux/iio/types.h | 2 + tools/iio/iio_event_monitor.c | 4 + 4 files changed, 187 insertions(+)
---
base-commit: c849f534b9ea4688304f80f4571af75931dda7c1
change-id: 20241115-ad4111_openwire-e55deba8297f
prerequisite-message-id: <[email protected]>
prerequisite-patch-id: 26241903b8fee8c4243e73d11fb2872cd9f52a15
Best regards,
Signature · 1 line
Guillaume Ranquet <[email protected]>