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

Add support for the AD7124's internal clock output. If the #clock-cells
property is present, turn on the internal clock output during probe.

If both the clocks and #clock-names properties are present (not allowed
by devicetree bindings), assume that an external clock is being used so
that we don't accidentally have two outputs fighting each other.

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