From: Varadarajan Narayanan <quic_varada@quicinc.com>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: <robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>,
<angelogioacchino.delregno@collabora.com>, <andersson@kernel.org>,
<konrad.dybcio@linaro.org>, <mturquette@baylibre.com>,
<sboyd@kernel.org>, <ilia.lin@kernel.org>, <rafael@kernel.org>,
<viresh.kumar@linaro.org>, <ulf.hansson@linaro.org>,
<quic_sibis@quicinc.com>, <otto.pflueger@abscue.de>,
<neil.armstrong@linaro.org>, <luca@z3ntu.xyz>,
<abel.vesa@linaro.org>, <danila@jiaxyga.com>,
<quic_ipkumar@quicinc.com>, <linux-arm-msm@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<linux-clk@vger.kernel.org>, <linux-pm@vger.kernel.org>
Subject: Re: [PATCH v3 8/9] soc: qcom: cpr3: Add IPQ9574 definitions
Date: Fri, 28 Jun 2024 17:23:38 +0530 [thread overview]
Message-ID: <Zn6kQuw1Fm9ylppX@hu-varada-blr.qualcomm.com> (raw)
In-Reply-To: <3mzerxpsa2gj227pryu2pg5rgaoqya7y3fplvpdsq5cnffuzj3@puwzk4j2t2t5>
On Thu, Jun 27, 2024 at 04:46:05PM +0300, Dmitry Baryshkov wrote:
> On Thu, Jun 27, 2024 at 12:53:18PM GMT, Varadarajan Narayanan wrote:
> > On Wed, Jun 26, 2024 at 09:27:53PM +0300, Dmitry Baryshkov wrote:
> > > On Wed, Jun 26, 2024 at 04:10:01PM GMT, Varadarajan Narayanan wrote:
> > > > From: Praveenkumar I <quic_ipkumar@quicinc.com>
> > > >
> > > > Add thread, scaling factor, CPR descriptor defines to enable CPR
> > > > on IPQ9574.
> > > >
> > > > Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
> > > > Signed-off-by: Varadarajan Narayanan <quic_varada@quicinc.com>
> > > > ---
> > > > v3: Fix patch author
> > > > Included below information in cover letter
> > > > v2: Fix Signed-off-by order
> > > > Depends:
> > > > [1] https://lore.kernel.org/lkml/20230217-topic-cpr3h-v14-0-9fd23241493d@linaro.org/T/
> > > > [2] https://github.com/quic-varada/cpr/commits/konrad/
> > > > ---
> > > > drivers/pmdomain/qcom/cpr3.c | 137 +++++++++++++++++++++++++++++++++++
> > > > 1 file changed, 137 insertions(+)
> > > >
> > > > diff --git a/drivers/pmdomain/qcom/cpr3.c b/drivers/pmdomain/qcom/cpr3.c
> > > > index c28028be50d8..66c8a4bd9adc 100644
> > > > --- a/drivers/pmdomain/qcom/cpr3.c
> > > > +++ b/drivers/pmdomain/qcom/cpr3.c
> > >
> > > > +
> > > > +static const struct cpr_desc ipq9574_cpr_desc = {
> > > > + .cpr_type = CTRL_TYPE_CPR4,
> > >
> > > So, is it CPR4 or CPRh?
> >
> > CPR4.
>
> Then why do you have cprh in the compatible?
Sorry, copy-paste from msm8998. Will fix that in the next version.
Thanks
Varada
> > > > + .num_threads = 1,
> > > > + .apm_threshold = 850000,
> > > > + .apm_crossover = 880000,
> > > > + .apm_hysteresis = 0,
> > > > + .cpr_base_voltage = 700000,
> > > > + .cpr_max_voltage = 1100000,
> > > > + .timer_delay_us = 5000,
> > > > + .timer_cons_up = 0,
> > > > + .timer_cons_down = 0,
> > > > + .up_threshold = 2,
> > > > + .down_threshold = 2,
> > > > + .idle_clocks = 15,
> > > > + .count_mode = CPR3_CPR_CTL_COUNT_MODE_ALL_AT_ONCE_MIN,
> > > > + .count_repeat = 1,
> > > > + .gcnt_us = 1,
> > > > + .vreg_step_fixed = 12500,
> > > > + .vreg_step_up_limit = 1,
> > > > + .vreg_step_down_limit = 1,
> > > > + .vdd_settle_time_us = 34,
> > > > + .corner_settle_time_us = 6,
> > > > + .reduce_to_corner_uV = true,
> > > > + .hw_closed_loop_en = false,
> > > > + .threads = (const struct cpr_thread_desc *[]) {
> > > > + &ipq9574_thread_silver,
> > >
> > > If it's silver, where is gold or bronze?
> >
> > Will rename this as "ipq9574_thread"
> >
> > Thanks
> > Varada
> >
> > > > + },
> > > > +};
> > > > +
> > > > +static const struct cpr_acc_desc ipq9574_cpr_acc_desc = {
> > > > + .cpr_desc = &ipq9574_cpr_desc,
> > > > +};
> > > > +
> > > > static const int sdm630_gold_scaling_factor[][CPR3_RO_COUNT] = {
> > > > /* Same RO factors for all fuse corners */
> > > > {
> > > > @@ -2828,6 +2964,7 @@ static void cpr_remove(struct platform_device *pdev)
> > > > }
> > > >
> > > > static const struct of_device_id cpr3_match_table[] = {
> > > > + { .compatible = "qcom,ipq9574-cprh", .data = &ipq9574_cpr_acc_desc },
> > > > { .compatible = "qcom,msm8998-cprh", .data = &msm8998_cpr_acc_desc },
> > > > { .compatible = "qcom,sdm630-cprh", .data = &sdm630_cpr_acc_desc },
> > > > { }
> > > > --
> > > > 2.34.1
> > > >
> > >
> > > --
> > > With best wishes
> > > Dmitry
>
> --
> With best wishes
> Dmitry
next prev parent reply other threads:[~2024-06-28 11:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-26 10:39 [PATCH v3 0/9] Enable CPR for IPQ9574 Varadarajan Narayanan
2024-06-26 10:39 ` [PATCH v3 1/9] soc: qcom: cpr3: Fix 'acc_desc' usage Varadarajan Narayanan
2024-06-26 18:21 ` Dmitry Baryshkov
2024-06-26 10:39 ` [PATCH v3 2/9] cpufreq: qcom-nvmem: Add genpd names to match_data_kryo Varadarajan Narayanan
2024-06-26 18:23 ` Dmitry Baryshkov
2024-06-28 6:32 ` Varadarajan Narayanan
2024-06-28 7:40 ` Dmitry Baryshkov
2024-07-03 7:16 ` Varadarajan Narayanan
2024-06-26 10:39 ` [PATCH v3 3/9] dt-bindings: power: rpmpd: Add IPQ9574 power domains Varadarajan Narayanan
2024-06-26 10:39 ` [PATCH v3 4/9] dt-bindings: soc: qcom: cpr3: Add bindings for IPQ9574 Varadarajan Narayanan
2024-06-27 7:32 ` Krzysztof Kozlowski
2024-06-26 10:39 ` [PATCH v3 5/9] pmdomain: qcom: rpmpd: Add IPQ9574 power domains Varadarajan Narayanan
2024-06-26 18:26 ` Dmitry Baryshkov
2024-06-26 10:39 ` [PATCH v3 6/9] dt-bindings: clock: Add CPR clock defines for IPQ9574 Varadarajan Narayanan
2024-06-26 10:40 ` [PATCH v3 7/9] clk: qcom: gcc-ipq9574: Add CPR clock definition Varadarajan Narayanan
2024-06-26 10:40 ` [PATCH v3 8/9] soc: qcom: cpr3: Add IPQ9574 definitions Varadarajan Narayanan
2024-06-26 18:27 ` Dmitry Baryshkov
2024-06-27 7:23 ` Varadarajan Narayanan
2024-06-27 13:46 ` Dmitry Baryshkov
2024-06-28 11:53 ` Varadarajan Narayanan [this message]
2024-06-26 10:40 ` [PATCH v3 9/9] dts: arm64: qcom: ipq9574: Enable CPR Varadarajan Narayanan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zn6kQuw1Fm9ylppX@hu-varada-blr.qualcomm.com \
--to=quic_varada@quicinc.com \
--cc=abel.vesa@linaro.org \
--cc=andersson@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=danila@jiaxyga.com \
--cc=devicetree@vger.kernel.org \
--cc=dmitry.baryshkov@linaro.org \
--cc=ilia.lin@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=luca@z3ntu.xyz \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--cc=otto.pflueger@abscue.de \
--cc=quic_ipkumar@quicinc.com \
--cc=quic_sibis@quicinc.com \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=viresh.kumar@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox