]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7192: Update clock config
authorAlisa-Dariana Roman <alisadariana@gmail.com>
Wed, 17 Jul 2024 21:25:33 +0000 (00:25 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:39 +0000 (10:13 +0100)
commit51b6a716890750187ed7da8138cbb296f9141457
treeb3fd5e443af9353ef8091315c1ab4cbbb2f24a74
parentfe2e79695967297d022543c1a8df3c7c9cf62266
iio: adc: ad7192: Update clock config

There are actually 4 configuration modes of clock source for AD719X
devices. Either a crystal can be attached externally between MCLK1 and
MCLK2 pins, or an external CMOS-compatible clock can drive the MCLK2
pin. The other 2 modes make use of the 4.92MHz internal clock.

Undocumented properties adi,int-clock-output-enable and adi,clock-xtal
still supported for backward compatibility, but their use is highly
discouraged. Use cleaner alternative of configuring external clock by
using clock names mclk and xtal.

Functionality of AD7192_CLK_INT_CO will be implemented in complementary
patch by adding clock provider.

Signed-off-by: Alisa-Dariana Roman <alisa.roman@analog.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240717212535.8348-3-alisa.roman@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7192.c