]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad4695: add custom regmap bus callbacks
authorTrevor Gamblin <tgamblin@baylibre.com>
Wed, 13 Nov 2024 20:53:00 +0000 (15:53 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 3 Feb 2025 19:15:38 +0000 (19:15 +0000)
commit1093f83b2cfbca9b30b80ea0152fc78255ef398a
tree5e98c628951f18bb9bce44ebaf4f198c7f7dc4f8
parent998d20e4e99d909f14d96fdf0bdcf860f7efe3ef
iio: adc: ad4695: add custom regmap bus callbacks

Add a custom implementation of regmap read/write callbacks using the SPI
bus. This allows them to be performed at a lower SCLK rate than data
reads. Previously, all SPI transfers were being performed at a lower
speed, but with this change sample data is read at the max bus speed
while the register reads/writes remain at the lower rate.

Also remove .can_multi_write from the AD4695 driver's regmap_configs, as
this isn't implemented or needed.

For some background context, see:

https://lore.kernel.org/linux-iio/20241028163907.00007e12@Huawei.com/

Suggested-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Tested-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20241113-tgamblin-ad4695_improvements-v2-3-b6bb7c758fc4@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig
drivers/iio/adc/ad4695.c