]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: imx93_adc: load calibrated values even calibration failed
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 12 Aug 2025 08:04:23 +0000 (16:04 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 13:28:14 +0000 (14:28 +0100)
commit12c9b09e981ab14ebec8e4eefa946cbd26dd306b
tree7053730f2cd53775d4e2a63fba5cf91a7c51d39a
parent6830d3ed4d641691fc93611040f363b821df2fec
iio: adc: imx93_adc: load calibrated values even calibration failed

ADC calibration might fail because of the noise on reference voltage.
To avoid calibration fail, need to meet the following requirement:
    ADC reference voltage Noise < 1.8V * 1/2^ENOB

For the case which the ADC reference voltage on board do not meet
the requirement, still load the calibrated values, so ADC can also
work but maybe not that accurate.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Primoz Fiser <primoz.fiser@norik.com>
Link: https://patch.msgid.link/20250812-adc-v2-2-0260833f13b8@nxp.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/imx93_adc.c