Re: [PATCH 3/7] pmdomain: qcom: cpr4: add IPQ8074 APSS support

From: Robert Marko

Date: Wed Dec 02 2026 - 06:29:10 EST


On Wed, 2 Dec 2026 at 12:19, Krzysztof Kozlowski <krzk@xxxxxxxxxx> wrote:
>
> On 01/12/2026 22:34, Robert Marko wrote:
> > Add IPQ8074 APSS fuse corner data, ring oscillator scaling factors,
> > and voltage limits to the CPRv4 driver. Select AC or HK CPU OPPs from
> > the SoC ID and provide the IPQ8074 array power mux operations needed
> > when the supply crosses its voltage threshold.
> >
> > Signed-off-by: Robert Marko <robimarko@xxxxxxxxx>
> > ---
> > drivers/pmdomain/qcom/Kconfig | 5 +-
> > drivers/pmdomain/qcom/cpr4.c | 120 ++++++++++++++++++++++++++++++++++
> > 2 files changed, 123 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/pmdomain/qcom/Kconfig b/drivers/pmdomain/qcom/Kconfig
> > index 7a38fca694e6..37cb042add1d 100644
> > --- a/drivers/pmdomain/qcom/Kconfig
> > +++ b/drivers/pmdomain/qcom/Kconfig
> > @@ -25,12 +25,13 @@ config QCOM_CPR4
> > depends on PM
> > depends on NVMEM
> > depends on REGULATOR
> > + depends on QCOM_SMEM
> > select REGMAP
> > select PM_OPP
> > select PM_GENERIC_DOMAINS
> > help
> > - Say Y here to enable CPRv4 voltage control on supported
> > - Qualcomm SoCs. The controller uses ring oscillator measurements to
>
> I do not understand this change. You just added these lines.
>
> ...
>
> > static const struct of_device_id cpr4_match_table[] = {
> > + { .compatible = "qcom,ipq8074-cpr4", .data = &ipq8074_cpr_desc },
> > { }
>
> Neither this. So previous patch had empty table? What is the point of an
> empty table? How previous commit could be a functional solution?

Yes, the CPRv4 driver commit itself is not functional.
Initially, the CPRv4 commit and IPQ8074 were one commit, but I wanted
to preserve AngeloGioacchino-s authorship
so I split them.

Though now I see how its confusing, I am open to any ideas on how to
handle this.

Regards,
Robert
>
>
> Best regards,
> Krzysztof