Re: [PATCH v2 08/11] clk: qcom: dispcc: Add support for display clock controller Kaanapali
From: Konrad Dybcio
Date: Mon Dec 01 2025 - 08:21:09 EST
On 11/26/25 1:09 AM, Dmitry Baryshkov wrote:
> On Tue, Nov 25, 2025 at 11:15:17PM +0530, Taniya Das wrote:
>> Support the clock controller driver for Kaanapali to enable display SW to
>> be able to control the clocks.
>>
>> Signed-off-by: Taniya Das <taniya.das@xxxxxxxxxxxxxxxx>
>> ---
[...]
>> +/* 257.142858 MHz Configuration */
>
> This is a bit strange frequency for the boot config.
The frequency map lists this odd cookie as the lowest predefined config,
perhaps it was pulled from there.
More interestingly, the only consumer of this PLL (MDP_CLK_SRC) makes no
effort to use the m/n/d registers, instead relying on the PLL to re-clock
for its ratesetting with a fixed divider of 3 (and div1 @ XO rate).
257.142858 * 3 = 771.428574 over-drives MDP_CLK_SRC, FWIW.
Taniya, we've seen something like this in camera too. Is there a reason
the frequency is being set this way?
Konrad
>
>> +static const struct alpha_pll_config disp_cc_pll0_config = {
>> + .l = 0xd,
>> + .cal_l = 0x48,
>> + .alpha = 0x6492,
>> + .config_ctl_val = 0x25c400e7,
>> + .config_ctl_hi_val = 0x0a8062e0,
>> + .config_ctl_hi1_val = 0xf51dea20,
>> + .user_ctl_val = 0x00000008,
>> + .user_ctl_hi_val = 0x00000002,
>> +};
>> +
>