Re: [PATCH 4/7] clk: thead: th1520-ap: Support setting PLL rates

From: Drew Fustini

Date: Wed Nov 26 2025 - 10:47:03 EST


On Thu, Nov 20, 2025 at 01:14:13PM +0000, Yao Zi wrote:
> TH1520 ships several PLLs that could operate in either integer or
> fractional mode. However, the TRM only lists a few configuration whose
> stability is considered guaranteed.
>
> Add a table-lookup rate determination logic to support PLL rate setting,
> and fill up frequency-configuration tables for AP-subsystem PLLs.
>
> Signed-off-by: Yao Zi <ziyao@xxxxxxxxxxx>
> ---
> drivers/clk/thead/clk-th1520-ap.c | 142 ++++++++++++++++++++++++++++++
> 1 file changed, 142 insertions(+)

Reviewed-by: Drew Fustini <fustini@xxxxxxxxxx>