From: "Sébastien Szymanski" <sebastien.szymanski@armadeus.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: peng.fan@nxp.com, uboot-imx@nxp.com, m.othacehe@gmail.com,
u-boot@lists.denx.de
Subject: Re: [PATCH] imx93-u-boot: Describe the CPU clocks in the devicetree
Date: Fri, 19 Jul 2024 17:47:42 +0200 [thread overview]
Message-ID: <e1645877-d5b8-44f5-b185-5427b28fa2e7@armadeus.com> (raw)
In-Reply-To: <CAOMZO5D4FFvK=L+GwdfpLAyGBV2d2t-9d3GGTAuXYU0jt3kfjg@mail.gmail.com>
On 7/19/24 16:13, Fabio Estevam wrote:
> Hi Sébastien,
>
> On Fri, Jul 19, 2024 at 11:00 AM Sébastien Szymanski
> <sebastien.szymanski@armadeus.com> wrote:
>
>>> +&A55_0 {
>>> + clocks = <&clk IMX93_CLK_ARM_PLL>;
>>
>> Why IMX93_CLK_ARM_PLL and not IMX93_CLK_A55_SEL ?
>
> IMX93_CLK_A55_SEL is a mux that can select between a55_alt versus arm_pll.
>
> The real CPU clock is IMX93_CLK_ARM_PLL, so this one better represents it.
Ok, thank for the explanation.
>
> This is also consistent with the other i.MX8M SoCs.
>
> Take imx8mm.dtsi for example:
>
> A53_0: cpu@0 {
> ....
> clocks = <&clk IMX8MM_CLK_ARM>;
>
> This also uses the "real" CPU clock, not the mux one (imx8mm_a53_sels).
>
> I also plan to upstream this clock change to the Linux devicetree.
I did look at imx8mm.dtsi but the clock IMX8MM_CLK_ARM is not defined in
U-Boot and in Linux it's defined as:
hws[IMX8MM_CLK_ARM] = imx_clk_hw_cpu("arm", "arm_a53_core",
hws[IMX8MM_CLK_A53_CORE]->clk,
hws[IMX8MM_CLK_A53_CORE]->clk,
hws[IMX8MM_ARM_PLL_OUT]->clk,
hws[IMX8MM_CLK_A53_DIV]->clk);
So in Linux for the i.MX93, the clocks property in the device tree has
to be IMX93_CLK_A55_CORE:
clks[IMX93_CLK_A55_CORE] = imx_clk_hw_cpu("a55_core", "a55_sel",
clks[IMX93_CLK_A55_SEL]->clk,
clks[IMX93_CLK_A55_SEL]->clk,
clks[IMX93_CLK_ARM_PLL]->clk,
clks[IMX93_CLK_A55_GATE]->clk);
?
Regards,
>
> Thanks
--
Sébastien Szymanski, Armadeus Systems
Software engineer
next prev parent reply other threads:[~2024-07-19 15:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-18 16:54 [PATCH] imx93-u-boot: Describe the CPU clocks in the devicetree Fabio Estevam
2024-07-19 12:25 ` Peng Fan
2024-07-19 14:00 ` Sébastien Szymanski
2024-07-19 14:13 ` Fabio Estevam
2024-07-19 15:47 ` Sébastien Szymanski [this message]
2024-07-19 16:06 ` Fabio Estevam
2024-07-22 21:05 ` Fabio Estevam
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=e1645877-d5b8-44f5-b185-5427b28fa2e7@armadeus.com \
--to=sebastien.szymanski@armadeus.com \
--cc=festevam@gmail.com \
--cc=m.othacehe@gmail.com \
--cc=peng.fan@nxp.com \
--cc=u-boot@lists.denx.de \
--cc=uboot-imx@nxp.com \
/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