Skip to content

Make i.MX 93 ADC calibration params configurable

Primoz Fiser imx linux-arm-kernel linux-devicetree linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: iio: adc: imx93: Add calibration propertiesDocumentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml+21 -012 replies
2/2iio: adc: imx93: Make calibration parameters configurabledrivers/iio/adc/imx93_adc.c+70 -53 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Make i.MX 93 ADC calibration params configurable

The i.MX 93 ADC calibration parameters are configurable in the MCR (Main Configuration Register). One can tweak bits:

- MCR[AVGEN]: Enable calibration averaging function,
- MCR[NRSMPL]: Select number of calibration samples,
- MCR[TSAMP]: Select sample time of calibration conversions,

Make it possible to configure those parameters via the corresponding device-tree properties.

This patch series is based on the one we submitted in March 2024:
https://lore.kernel.org/linux-arm-kernel/[email protected]/

Changes since the original submission:
- rebase on linux-next
- reorder patches (bindings before users)
- fix checkpatch errors
- reword commit subject & body
- implement feedback from reviewers

Andrej Picej (2):
dt-bindings: iio: adc: imx93: Add calibration properties
iio: adc: imx93: Make calibration parameters configurable

 .../bindings/iio/adc/nxp,imx93-adc.yaml       | 21 ++++++
 drivers/iio/adc/imx93_adc.c                   | 75 +++++++++++++++++--
 2 files changed, 91 insertions(+), 5 deletions(-)
Signature · 1 line
2.34.1