]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7124: add external clock support
authorDavid Lechner <dlechner@baylibre.com>
Thu, 28 Aug 2025 21:54:54 +0000 (16:54 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 30 Aug 2025 19:46:48 +0000 (20:46 +0100)
commited231e253ff23214712c8884165b4eb8a441f573
tree1e576abecc19efea824fac9c606f5b2e0f4831e6
parentaead8e4cc04612f74c7277de137cc995df280829
iio: adc: ad7124: add external clock support

Add support for an external clock source to the AD7124 ADC driver.

Previously, the driver only supported using the internal clock and had
bad devicetree bindings that used a fake clock to essentially select
the power mode. This is preserved for backwards compatibility.

If the clock is not named "mclk", then we know that the devicetree is
using the correct bindings and we can configure the chip to use an
external clock source rather than internal.

Also drop a redundant comment when configuring the register fields
instead of adding more.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250828-iio-adc-ad7124-proper-clock-support-v3-3-0b317b4605e5@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c