]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad7124: add debugfs to disable single cycle mode
authorDavid Lechner <dlechner@baylibre.com>
Wed, 17 Sep 2025 23:03:17 +0000 (18:03 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 13 Oct 2025 07:37:22 +0000 (08:37 +0100)
commit5f31df5075a7f8967401ded5d54be04f62b172a2
tree377e85a962e9d91ce6e574358c2af5d39530737e
parent3a8660878839faadb4f1a6dd72c3179c1df56787
iio: adc: ad7124: add debugfs to disable single cycle mode

Add a boolean debugfs attribute to allow disabling the SINGLE_CYCLE
bit in the FILTER registers.

This causes data to be read on every conversion instead of doing the
usual 3 or 4 conversions per sample (depending on the filter). This is
only needed for very specific use cases, such as validating the
performance of the ADC. So we just expose this feature through debugfs
for the rare cases where it is needed by people who really know what
they are doing.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c