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

Drew Fustini
2025-11-26T15:47:03Z

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@disroot.org>
> ---
> drivers/clk/thead/clk-th1520-ap.c | 142 ++++++++++++++++++++++++++++++
> 1 file changed, 142 insertions(+)

Reviewed-by: Drew Fustini <fustini@kernel.org>