iio: adc: ad7606: add gain calibration support
authorAngelo Dureghello <adureghello@baylibre.com>
Fri, 6 Jun 2025 14:19:22 +0000 (16:19 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Jun 2025 06:45:37 +0000 (07:45 +0100)
commit126cbd0deb9b88754f5f67cbd4c3399c74688bdc
treeba45e52d16f2012d2d23d82b5f66b4d88ee91aaa
parentcc2eca43091eaeaf3875ce3e8d95de763c78eccb
iio: adc: ad7606: add gain calibration support

Add gain calibration support, using resistor values set on devicetree,
values to be set accordingly with ADC external RFilter, as explained in
the ad7606c-16 datasheet, rev0, page 37.

Usage example in the fdt yaml documentation.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20250606-wip-bl-ad7606-calibration-v9-7-6e014a1f92a2@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c
drivers/iio/adc/ad7606.h