[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <691ce919.5d0a0220.811e.f1c0@mx.google.com>
Date: Tue, 18 Nov 2025 22:45:59 +0100
From: Christian Marangi <ansuelsmth@...il.com>
To: Rob Herring <robh@...nel.org>
Cc: Ilia Lin <ilia.lin@...nel.org>, "Rafael J. Wysocki" <rafael@...nel.org>,
Viresh Kumar <viresh.kumar@...aro.org>,
linux-arm-msm@...r.kernel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org,
Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>,
Konrad Dybcio <konrad.dybcio@....qualcomm.com>
Subject: Re: [PATCH v4 1/1] cpufreq: qcom-nvmem: add compatible fallback for
ipq806x for no SMEM
On Tue, Nov 18, 2025 at 01:10:18PM -0600, Rob Herring wrote:
> On Wed, Nov 05, 2025 at 12:21:34PM +0100, Christian Marangi wrote:
> > On some IPQ806x SoC SMEM might be not initialized by SBL. This is the
> > case for some Google devices (the OnHub family) that can't make use of
> > SMEM to detect the SoC ID (and socinfo can't be used either as it does
> > depends on SMEM presence).
> >
> > To handle these specific case, check if the SMEM is not initialized (by
> > checking if the qcom_smem_get_soc_id returns -ENODEV) and fallback to
> > OF machine compatible checking to identify the SoC variant.
> >
> > Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@....qualcomm.com>
> > Reviewed-by: Konrad Dybcio <konrad.dybcio@....qualcomm.com>
> > Signed-off-by: Christian Marangi <ansuelsmth@...il.com>
> > ---
> > drivers/cpufreq/qcom-cpufreq-nvmem.c | 35 ++++++++++++++++++++++++++--
> > 1 file changed, 33 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/cpufreq/qcom-cpufreq-nvmem.c b/drivers/cpufreq/qcom-cpufreq-nvmem.c
> > index 3a8ed723a23e..be44a8965e3a 100644
> > --- a/drivers/cpufreq/qcom-cpufreq-nvmem.c
> > +++ b/drivers/cpufreq/qcom-cpufreq-nvmem.c
> > @@ -252,13 +252,22 @@ static int qcom_cpufreq_krait_name_version(struct device *cpu_dev,
> > return ret;
> > }
> >
> > +static const struct of_device_id qcom_cpufreq_ipq806x_match_list[] = {
> > + { .compatible = "qcom,ipq8062", .data = (const void *)QCOM_ID_IPQ8062 },
> > + { .compatible = "qcom,ipq8064", .data = (const void *)QCOM_ID_IPQ8064 },
> > + { .compatible = "qcom,ipq8065", .data = (const void *)QCOM_ID_IPQ8065 },
> > + { .compatible = "qcom,ipq8066", .data = (const void *)QCOM_ID_IPQ8066 },
> > + { .compatible = "qcom,ipq8068", .data = (const void *)QCOM_ID_IPQ8068 },
> > + { .compatible = "qcom,ipq8069", .data = (const void *)QCOM_ID_IPQ8069 },
>
> These are all undocumented:
>
> qcom,ipq8062
> qcom,ipq8066
> qcom,ipq8068
> qcom,ipq8069
>
Hi Rob,
you are right, I never add these as there weren't any dts for it. I will
send a Documentation patch ASAP.
--
Ansuel
Powered by blists - more mailing lists