]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7124: do not require mclk
authorDavid Lechner <dlechner@baylibre.com>
Thu, 28 Aug 2025 21:54:53 +0000 (16:54 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 30 Aug 2025 19:45:26 +0000 (20:45 +0100)
commitaead8e4cc04612f74c7277de137cc995df280829
tree0762357d2edf632082a9c445138ca4bca79dfe3c
parenta52bdee13ed77f02dfd902baeb0eae876846672e
iio: adc: ad7124: do not require mclk

Make the "mclk" clock optional in the ad7124 driver. The MCLK is an
internal counter on the ADC, so it is not something that should be
coming from the devicetree. However, existing users may be using this
to essentially select the power mode of the ADC from the devicetree.
In order to not break those users, we have to keep the existing "mclk"
handling, but now it is optional.

Now, when the "mclk" clock is omitted from the devicetree, the driver
will default to the full power mode. Support for an external clock
and dynamic power mode switching can be added later if needed.

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