* [PATCH] cpufreq: qcom-nvmem: Add IPQ9650 support
@ 2026-10-07 7:01 Kathiravan Thirumoorthy
2026-10-07 7:07 ` Dmitry Baryshkov
0 siblings, 1 reply; 3+ messages in thread
From: Kathiravan Thirumoorthy @ 2026-10-07 7:01 UTC (permalink / raw)
To: Rafael J. Wysocki, Viresh Kumar, Ilia Lin
Cc: linux-pm, linux-kernel, linux-arm-msm, Kathiravan Thirumoorthy
Add IPQ9650 support to the Qualcomm NVMEM cpufreq driver so the supported
OPP can be selected at runtime using the eFuse value and the
opp-supported-hw OPP property. Also block the generic cpufreq-dt platform
device for IPQ9650 so the NVMEM-based driver is used.
Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
---
drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
drivers/cpufreq/qcom-cpufreq-nvmem.c | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c
index 574c5bec4831..bce4c87573a1 100644
--- a/drivers/cpufreq/cpufreq-dt-platdev.c
+++ b/drivers/cpufreq/cpufreq-dt-platdev.c
@@ -210,6 +210,7 @@ static const struct of_device_id blocklist[] __initconst = {
{ .compatible = "qcom,ipq8064", },
{ .compatible = "qcom,ipq8074", },
{ .compatible = "qcom,ipq9574", },
+ { .compatible = "qcom,ipq9650", },
{ .compatible = "qcom,apq8064", },
{ .compatible = "qcom,msm8974", },
{ .compatible = "qcom,msm8960", },
diff --git a/drivers/cpufreq/qcom-cpufreq-nvmem.c b/drivers/cpufreq/qcom-cpufreq-nvmem.c
index efa766e98d86..375f12d5d11a 100644
--- a/drivers/cpufreq/qcom-cpufreq-nvmem.c
+++ b/drivers/cpufreq/qcom-cpufreq-nvmem.c
@@ -211,6 +211,14 @@ static int qcom_cpufreq_kryo_name_version(struct device *cpu_dev,
case QCOM_ID_IPQ5404:
drv->versions = (*speedbin == 0x3b) ? BIT(1) : BIT(0);
break;
+ case QCOM_ID_IPQ9610:
+ case QCOM_ID_IPQ9620:
+ case QCOM_ID_IPQ9630:
+ case QCOM_ID_IPQ9640:
+ case QCOM_ID_IPQ9650:
+ case QCOM_ID_IPQ9670:
+ drv->versions = (*speedbin == 0x4b) ? BIT(3) : BIT(2);
+ break;
case QCOM_ID_MSM8996SG:
case QCOM_ID_APQ8096SG:
drv->versions = 1 << ((unsigned int)(*speedbin) + 4);
@@ -633,6 +641,7 @@ static const struct of_device_id qcom_cpufreq_match_list[] __initconst __maybe_u
{ .compatible = "qcom,ipq8074", .data = &match_data_ipq8074 },
{ .compatible = "qcom,apq8064", .data = &match_data_krait },
{ .compatible = "qcom,ipq9574", .data = &match_data_kryo },
+ { .compatible = "qcom,ipq9650", .data = &match_data_kryo },
{ .compatible = "qcom,msm8974", .data = &match_data_krait },
{ .compatible = "qcom,msm8960", .data = &match_data_krait },
{},
---
base-commit: eea3fef32a9cf36abcb5975a5a594e4135a6b026
change-id: 20261007-ipq9650_cpufreq-779516662a9b
Best regards,
--
Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq: qcom-nvmem: Add IPQ9650 support
2026-10-07 7:01 [PATCH] cpufreq: qcom-nvmem: Add IPQ9650 support Kathiravan Thirumoorthy
@ 2026-10-07 7:07 ` Dmitry Baryshkov
2026-10-07 7:09 ` Viresh Kumar
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Baryshkov @ 2026-10-07 7:07 UTC (permalink / raw)
To: Kathiravan Thirumoorthy
Cc: Rafael J. Wysocki, Viresh Kumar, Ilia Lin, linux-pm,
linux-kernel, linux-arm-msm
On Wed, Oct 07, 2026 at 12:31:56PM +0530, Kathiravan Thirumoorthy wrote:
> Add IPQ9650 support to the Qualcomm NVMEM cpufreq driver so the supported
> OPP can be selected at runtime using the eFuse value and the
> opp-supported-hw OPP property. Also block the generic cpufreq-dt platform
> device for IPQ9650 so the NVMEM-based driver is used.
>
> Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
> ---
> drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
> drivers/cpufreq/qcom-cpufreq-nvmem.c | 9 +++++++++
> 2 files changed, 10 insertions(+)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq: qcom-nvmem: Add IPQ9650 support
2026-10-07 7:07 ` Dmitry Baryshkov
@ 2026-10-07 7:09 ` Viresh Kumar
0 siblings, 0 replies; 3+ messages in thread
From: Viresh Kumar @ 2026-10-07 7:09 UTC (permalink / raw)
To: Dmitry Baryshkov
Cc: Kathiravan Thirumoorthy, Rafael J. Wysocki, Ilia Lin, linux-pm,
linux-kernel, linux-arm-msm
On 07-10-26, 10:07, Dmitry Baryshkov wrote:
> On Wed, Oct 07, 2026 at 12:31:56PM +0530, Kathiravan Thirumoorthy wrote:
> > Add IPQ9650 support to the Qualcomm NVMEM cpufreq driver so the supported
> > OPP can be selected at runtime using the eFuse value and the
> > opp-supported-hw OPP property. Also block the generic cpufreq-dt platform
> > device for IPQ9650 so the NVMEM-based driver is used.
> >
> > Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
> > ---
> > drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
> > drivers/cpufreq/qcom-cpufreq-nvmem.c | 9 +++++++++
> > 2 files changed, 10 insertions(+)
> >
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Applied. Thanks.
--
viresh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-07 7:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 7:01 [PATCH] cpufreq: qcom-nvmem: Add IPQ9650 support Kathiravan Thirumoorthy
2026-10-07 7:07 ` Dmitry Baryshkov
2026-10-07 7:09 ` Viresh Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®