linux/drivers/iio/frequency
Michael Hennerich 9fcf482196 iio: frequency: adf4350: Fix prescaler usage.
commit 33d7ecbf69 upstream.

The ADF4350/1 features a programmable dual-modulus prescaler of 4/5 or 8/9.
When set to 4/5, the maximum RF frequency allowed is 3 GHz.
Therefore, when operating the ADF4351 above 3 GHz, this must be set to 8/9.
In this context not the RF output frequency is meant
- it's the VCO frequency.

Therefore move the prescaler selection after we derived the VCO frequency
from the desired RF output frequency.

This BUG may have caused PLL lock instabilities when operating the VCO at
the very high range close to 4.4 GHz.

Fixes: e31166f0fd ("iio: frequency: New driver for Analog Devices ADF4350/ADF4351 Wideband Synthesizers")
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Link: https://patch.msgid.link/20250829-adf4350-fix-v2-1-0bf543ba797d@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-10-19 16:33:50 +02:00
..
ad9523.c iio: frequency: ad9523: Use devm_regulator_get_enable() 2022-11-23 19:44:01 +00:00
adf4350.c iio: frequency: adf4350: Fix prescaler usage. 2025-10-19 16:33:50 +02:00
adf4371.c iio: frequency: adf4371: Benefit from devm_clk_get_enabled() to simplify 2022-08-15 22:30:02 +01:00
adf4377.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
admfm2000.c iio: frequency: admfm2000: Use device_for_each_child_node_scoped() to simplify error paths. 2024-04-06 11:29:06 +01:00
admv1013.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
admv1014.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
admv4420.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
adrf6780.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
Kconfig iio: frequency: admv4420: fix missing select REMAP_SPI in Kconfig 2024-10-10 19:27:25 +01:00
Makefile iio: frequency: admfm2000: New driver 2024-02-17 16:16:10 +00:00