Re: [PATCH v4 3/4] cpufreq: qcom-nvmem: Enable cpufreq for ipq5424

From: Konrad Dybcio
Date: Wed Jul 30 2025 - 04:38:44 EST


On 7/30/25 10:28 AM, Viresh Kumar wrote:
> On 30-07-25, 13:43, Varadarajan Narayanan wrote:
>> From: Md Sadre Alam <quic_mdalam@xxxxxxxxxxx>
>>
>> IPQ5424 have different OPPs available for the CPU based on
>> SoC variant. This can be determined through use of an eFuse
>> register present in the silicon.
>>
>> Added support for ipq5424 on nvmem driver which helps to
>> determine OPPs at runtime based on the eFuse register which
>> has the CPU frequency limits. opp-supported-hw dt binding
>> can be used to indicate the available OPPs for each limit.
>>
>> nvmem driver also creates the "cpufreq-dt" platform_device after
>> passing the version matching data to the OPP framework so that the
>> cpufreq-dt handles the actual cpufreq implementation.
>>
>> Signed-off-by: Md Sadre Alam <quic_mdalam@xxxxxxxxxxx>
>> Signed-off-by: Sricharan Ramabadhran <quic_srichara@xxxxxxxxxxx>
>> Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
>> [ Changed '!=' based check to '==' based check ]
>> Signed-off-by: Varadarajan Narayanan <quic_varada@xxxxxxxxxxx>
>> ---
>> v2: Add Reviewed-by: Konrad
>> Change speed bin check to == instead of !=
>> --
>> drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
>> drivers/cpufreq/qcom-cpufreq-nvmem.c | 5 +++++
>> 2 files changed, 6 insertions(+)
>
> Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
>
> Lemme know if you want me to pick this one.

Please go ahead

Konrad