Re: [PATCH 4/4] cpufreq: add an Amlogic speed-bin driver
From: Viresh Kumar
Date: Thu Nov 26 2026 - 00:11:09 EST
On 23-11-26, 20:23, Chuan Liu wrote:
> I have already completed the support on A9, but cpufreq-dt currently only
> supports the single-clock case, for example:
> dt_cpufreq_early_init()
> ->dev_pm_opp_init_cpufreq_table()
> ->dev_pm_opp_find_freq_ceil()
> ->_find_key_ceil()
> ->assert_single_clk()
>
> set_target()
> ->dev_pm_opp_set_rate()
> ->_find_freq_ceil()
> ->assert_single_clk()
>
> Both of the interfaces above are limited to "single_clk", so SoCs that need
> to adjust the DSU clock in coordination with the CPU clock (such as SM1, S7,
> A9, etc. mentioned above) cannot directly work on top of cpufreq-dt.
Have you tried something like this ?
drivers/ufs/core/ufshcd.c:int ufshcd_opp_config_clks(struct device *dev, struct opp_table *opp_table,
Finding the right OPP should be done based on the primary clock only (right ?),
but configuring multiple clocks is possible via the OPP core.
--
viresh