linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] iio: adc: stm32: add smart calibration
@ 2022-11-15 10:31 Olivier Moysan
  2022-11-15 10:31 ` [PATCH 1/3] iio: adc: stm32-adc: smart calibration support Olivier Moysan
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Olivier Moysan @ 2022-11-15 10:31 UTC (permalink / raw)
  To: fabrice.gasnier, Jonathan Cameron, Lars-Peter Clausen,
	Maxime Coquelin, Alexandre Torgue
  Cc: Olivier Moysan, linux-iio, linux-stm32, linux-arm-kernel,
	linux-kernel

Refine offset and linear calibration strategy for STM32MP15 and
STM32MP13 SoCs:

- offset calibration
This calibration depends on factors such as temperature and voltage.
As it is not time consuming, it's worth doing it on each ADC
start, to get the best accuracy. There is no need to save these data.

- linear calibration
This calibration is basically SoC dependent, so it can be done only once.
When this calibration has been performed at boot stage, the ADC kernel
driver can retrieve the calibration data from the ADC registers.
Otherwise, the linear calibration is performed once by the ADC driver.
The backup of these data, allows to restore them on successive ADC starts.

Olivier Moysan (3):
  iio: adc: stm32-adc: smart calibration support
  iio: adc: stm32-adc: improve calibration error log
  iio: adc: stm32-adc: add debugfs to read raw calibration result

 drivers/iio/adc/stm32-adc-core.h |   1 +
 drivers/iio/adc/stm32-adc.c      | 135 ++++++++++++++++++-------------
 2 files changed, 78 insertions(+), 58 deletions(-)

-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-11-23 20:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-15 10:31 [PATCH 0/3] iio: adc: stm32: add smart calibration Olivier Moysan
2022-11-15 10:31 ` [PATCH 1/3] iio: adc: stm32-adc: smart calibration support Olivier Moysan
2022-11-15 10:31 ` [PATCH 2/3] iio: adc: stm32-adc: improve calibration error log Olivier Moysan
2022-11-15 10:31 ` [PATCH 3/3] iio: adc: stm32-adc: add debugfs to read raw calibration result Olivier Moysan
2022-11-23 11:04 ` [PATCH 0/3] iio: adc: stm32: add smart calibration Fabrice Gasnier
2022-11-23 20:56   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).