]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ad7768-1: add multiple scan types to support 16-bits mode
authorJonathan Santos <Jonathan.Santos@analog.com>
Wed, 11 Jun 2025 11:51:11 +0000 (08:51 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 26 Jun 2025 18:32:54 +0000 (19:32 +0100)
commit54da2aeb7160ba11ed74776b3a3a2bd61ac673ce
tree757e8e6be9d9d8e222f2532dea0ba821c63911ce
parentd569ae0f052e0e44db0e1d69110eba13f5060223
iio: adc: ad7768-1: add multiple scan types to support 16-bits mode

When the device is configured to decimation x8, only possible in the
sinc5 filter, output data is reduced to 16 bits in order to support
1 MHz of sampling frequency due to clock limitation.

Use multiple scan types feature to enable the driver to switch
scan type at runtime, making it possible to support both 24-bit and
16-bit resolution.

Reviewed-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Santos <Jonathan.Santos@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/08780fd4a59885f1f250759ce655420bd1dbb383.1749569957.git.Jonathan.Santos@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7768-1.c