From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Robert Marko <robimarko@gmail.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>,
agross@kernel.org, andersson@kernel.org,
konrad.dybcio@linaro.org, mturquette@baylibre.com,
sboyd@kernel.org, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com,
linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
quic_varada@quicinc.com, quic_srichara@quicinc.com
Subject: Re: [PATCH 3/3] arm64: dts: qcom: ipq5018: enable the CPUFreq support
Date: Tue, 29 Aug 2023 14:00:35 +0300 [thread overview]
Message-ID: <CAA8EJpojzVPVcL=7DHfd5Gvo84xdFwgZQFiE6pQy1gqd72Vy6w@mail.gmail.com> (raw)
In-Reply-To: <efe09cb6-7b67-9307-28e7-99e238a3672b@gmail.com>
On Tue, 29 Aug 2023 at 13:59, Robert Marko <robimarko@gmail.com> wrote:
>
>
> On 29. 08. 2023. 12:12, Krzysztof Kozlowski wrote:
> > On 29/08/2023 11:54, Gokul Sriram Palanisamy wrote:
> >> Add the APCS, A53 PLL, cpu-opp-table nodes to set
> >> the CPU frequency at optimal range.
> >>
> >> Co-developed-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
> >> Signed-off-by: Sricharan Ramabadhran <quic_srichara@quicinc.com>
> >> Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
> >> ---
> >> arch/arm64/boot/dts/qcom/ipq5018.dtsi | 34 +++++++++++++++++++++++++++
> >> 1 file changed, 34 insertions(+)
> >>
> >> diff --git a/arch/arm64/boot/dts/qcom/ipq5018.dtsi b/arch/arm64/boot/dts/qcom/ipq5018.dtsi
> >> index 9f13d2dcdfd5..05843517312c 100644
> >> --- a/arch/arm64/boot/dts/qcom/ipq5018.dtsi
> >> +++ b/arch/arm64/boot/dts/qcom/ipq5018.dtsi
> >> @@ -8,6 +8,7 @@
> >> #include <dt-bindings/interrupt-controller/arm-gic.h>
> >> #include <dt-bindings/clock/qcom,gcc-ipq5018.h>
> >> #include <dt-bindings/reset/qcom,gcc-ipq5018.h>
> >> +#include <dt-bindings/clock/qcom,apss-ipq.h>
> > c is before r.
> >
> >>
> >> / {
> >> interrupt-parent = <&intc>;
> >> @@ -36,6 +37,8 @@ CPU0: cpu@0 {
> >> reg = <0x0>;
> >> enable-method = "psci";
> >> next-level-cache = <&L2_0>;
> >> + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
> >> + operating-points-v2 = <&cpu_opp_table>;
> >> };
> >>
> >> CPU1: cpu@1 {
> >> @@ -44,6 +47,8 @@ CPU1: cpu@1 {
> >> reg = <0x1>;
> >> enable-method = "psci";
> >> next-level-cache = <&L2_0>;
> >> + clocks = <&apcs_glb APCS_ALIAS0_CORE_CLK>;
> >> + operating-points-v2 = <&cpu_opp_table>;
> >> };
> >>
> >> L2_0: l2-cache {
> >> @@ -54,6 +59,17 @@ L2_0: l2-cache {
> >> };
> >> };
> >>
> >> + cpu_opp_table: opp-table-cpu {
> >> + compatible = "operating-points-v2";
> >> + opp-shared;
> >> +
> >> + opp-1008000000 {
> >> + opp-hz = /bits/ 64 <1008000000>;
> >> + opp-microvolt = <1100000>;
> >> + clock-latency-ns = <200000>;
> > And the rest of OPPs?
> Hi Krzysztof,
> IPQ5018 only supports running at 1.1GHz, but its running at 800MHz
> by default from the bootloader so there is only one OPP.
If the bootloader sets it to 800 MHz, then this frequency is also
somehow 'supported', isn't it?
> I am glad to see more SoC-s gaining CPUFreq support.
Definitely.
>
> Regards,
> Robert
> >
> >> + };
> >> + };
> >> +
> >> firmware {
> >> scm {
> >> compatible = "qcom,scm-ipq5018", "qcom,scm";
> >> @@ -181,6 +197,24 @@ v2m1: v2m@1000 {
> >> };
> >> };
> >>
> >> + a53pll: clock@b116000 {
> >> + compatible = "qcom,ipq5018-a53pll";
> >> + reg = <0x0b116000 0x40>;
> >> + #clock-cells = <0>;
> >> + clocks = <&xo_board_clk>;
> >> + clock-names = "xo";
> >> + };
> >> +
> >> + apcs_glb: mailbox@b111000 {
> > 0xb111000 looks lower than 0x116000.
> >
> >> + compatible = "qcom,ipq5018-apcs-apps-global",
> >> + "qcom,ipq6018-apcs-apps-global";
> >> + reg = <0x0b111000 0x1000>;
> > Best regards,
> > Krzysztof
> >
> >
> >
--
With best wishes
Dmitry
next prev parent reply other threads:[~2023-08-29 11:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-29 9:54 [PATCH 0/3] Add APSS clock driver support for IPQ5018 Gokul Sriram Palanisamy
2023-08-29 9:54 ` [PATCH 1/3] dt-bindings: clock: qcom,a53pll: add IPQ5018 compatible Gokul Sriram Palanisamy
2023-08-29 10:09 ` Krzysztof Kozlowski
2023-08-30 6:40 ` Gokul Sriram P
2023-08-30 19:47 ` Dmitry Baryshkov
2023-08-31 3:26 ` Gokul Sriram P
2023-08-29 9:54 ` [PATCH 2/3] clk: qcom: apss-ipq-pll: add support for IPQ5018 Gokul Sriram Palanisamy
2023-08-29 22:34 ` Stephen Boyd
2023-08-30 6:37 ` Gokul Sriram P
2023-08-29 9:54 ` [PATCH 3/3] arm64: dts: qcom: ipq5018: enable the CPUFreq support Gokul Sriram Palanisamy
2023-08-29 10:12 ` Krzysztof Kozlowski
2023-08-29 10:56 ` Robert Marko
2023-08-29 11:00 ` Dmitry Baryshkov [this message]
2023-08-29 11:10 ` Krzysztof Kozlowski
2023-08-29 11:18 ` Robert Marko
2023-08-30 6:48 ` Gokul Sriram P
2023-08-30 19:42 ` Dmitry Baryshkov
2023-08-31 6:10 ` Gokul Sriram P
2023-08-30 6:50 ` Gokul Sriram P
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='CAA8EJpojzVPVcL=7DHfd5Gvo84xdFwgZQFiE6pQy1gqd72Vy6w@mail.gmail.com' \
--to=dmitry.baryshkov@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jassisinghbrar@gmail.com \
--cc=konrad.dybcio@linaro.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=quic_gokulsri@quicinc.com \
--cc=quic_srichara@quicinc.com \
--cc=quic_varada@quicinc.com \
--cc=robh+dt@kernel.org \
--cc=robimarko@gmail.com \
--cc=sboyd@kernel.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;
as well as URLs for NNTP newsgroup(s).