From: Jian Hu <jian.hu@amlogic.com>
To: Ronald Claveau <linux-kernel-dev@aliel.fr>,
Jerome Brunet <jbrunet@baylibre.com>
Cc: linux-amlogic@lists.infradead.org,
Neil Armstrong <neil.armstrong@linaro.org>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Kevin Hilman <khilman@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/7] drivers: clk: meson: Add Amlogic T7 fix pll support
Date: Wed, 4 Mar 2026 17:14:28 +0800 [thread overview]
Message-ID: <900911d8-c2de-4e37-babb-6371b753456a@amlogic.com> (raw)
In-Reply-To: <941c5dac-afcc-4d93-926e-9acb3cf1a930@aliel.fr>
On 2/26/2026 10:30 PM, Ronald Claveau wrote:
> [ EXTERNAL EMAIL ]
>
> On 2/18/26 7:05 PM, Jerome Brunet wrote:
>> On mer. 18 févr. 2026 at 11:17, Ronald Claveau <linux-kernel-dev@aliel.fr> wrote:
>>
>>> Add PLL for the clock controller of the Amlogic T7 SoC family.
>>>
>> As Krzysztof pointed out, a series like this needs a cover letter to explain
>> what you are trying to acheive overall, and proper threading.
>>
>> The description above is too vague.
>>
> Indeed, I will do that for the next one.
>
>>> Signed-off-by: Ronald Claveau <linux-kernel-dev@aliel.fr>
>>> ---
>>> drivers/clk/meson/t7-pll.c | 257 +++++++++++++++++++++++++++++++++++++
>>> 1 file changed, 257 insertions(+)
>>>
>>> diff --git a/drivers/clk/meson/t7-pll.c b/drivers/clk/meson/t7-pll.c
>>> index 0a622f45fa36..3dd3aca50b7c 100644
>>> --- a/drivers/clk/meson/t7-pll.c
>>> +++ b/drivers/clk/meson/t7-pll.c
>>> @@ -71,6 +71,15 @@
>>> #define MCLK_PLL_CNTL4 0x10
>>> #define MCLK_PLL_STS 0x14
>>>
>>> +#define FPLL_CTRL0 0x00
>>> +#define FPLL_CTRL1 0x04
>>> +#define FPLL_CTRL2 0x08
>>> +#define FPLL_CTRL3 0x0c
>>> +#define FPLL_CTRL4 0x10
>>> +#define FPLL_CTRL5 0x14
>>> +#define FPLL_CTRL6 0x18
>>> +#define FPLL_STS 0x1c
>> The PLL you are adding is described in the datasheet as the MPLL. FPLL
>> is nowhere to be found. Prefer using names that relate to the
>> documentation.
>>
>> If you must make a name up, you need to have a very good reason and to
>> explain it.
>>
>> Still from the public documentation, this PLL belong in the same device as
>> MPLL0, MPLL1, etc ... BUT, I remember correctly the T7 initial
>> submission, the fixed PLL and fdivs are supposed to be provided through
>> SCMI clocks. Have you checked that ?
>>
> Yes, I read the initial submission, and I tried first with scmi-smc and
> scmi-mailbox, but with no success.
> I will try it again and ask khadas team for more information related to
> this.
The fixed pll and sys clocks registers cannot be accessed in kernel, so
these clocks are
implemented in the Bootloader BL31.
Please ask the Khadas team to contact Amlogic for the latest Bootloader
version, then you can use
the fixed pll and fdivs SCMI clocks defined in
include/dt-bindings/clock/amlogic,t7,scmi.h.
Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/dt-bindings/clock/amlogic,t7-scmi.h
>>> +
>>> static const struct pll_mult_range t7_media_pll_mult_range = {
>>> .min = 125,
>>> .max = 250,
>>> @@ -1047,6 +1056,253 @@ static const struct meson_clkc_data t7_mclk_data = {
>>> },
>>> };
>>>
[...]
>
> --
> Best regards,
> Ronald
>
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
prev parent reply other threads:[~2026-03-04 9:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-18 10:17 Ronald Claveau
2026-02-18 10:53 ` [PATCH 7/7] arm64: dts: amlogic: Add EMMC for T7 khadas VIM4 Ronald Claveau
2026-02-18 10:56 ` [PATCH 2/7] dt-bindings: clk: meson: Add Amlogic T7 fix pll support Ronald Claveau
2026-02-18 18:09 ` Jerome Brunet
2026-02-18 19:17 ` Krzysztof Kozlowski
2026-02-18 19:28 ` Jerome Brunet
2026-02-18 19:37 ` Krzysztof Kozlowski
2026-02-18 19:39 ` Krzysztof Kozlowski
2026-02-18 10:57 ` [PATCH 3/7] " Ronald Claveau
2026-02-18 18:13 ` Jerome Brunet
2026-02-18 11:00 ` [PATCH 4/7] drivers: clk: meson: Add Amlogic T7 sys " Ronald Claveau
2026-02-18 18:30 ` Jerome Brunet
2026-02-18 11:01 ` [PATCH 5/7] dt-bindings: " Ronald Claveau
2026-02-18 11:10 ` Ferass El Hafidi
2026-02-18 17:32 ` Ronald Claveau
2026-02-18 19:18 ` Krzysztof Kozlowski
2026-02-18 11:20 ` [PATCH 6/7] arm64: dts: amlogic: Add clock and EMMC for T7 Ronald Claveau
2026-02-18 18:34 ` Jerome Brunet
2026-02-18 19:18 ` Krzysztof Kozlowski
2026-02-18 18:05 ` [PATCH 1/7] drivers: clk: meson: Add Amlogic T7 fix pll support Jerome Brunet
2026-02-26 14:30 ` Ronald Claveau
2026-03-04 9:14 ` Jian Hu [this message]
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=900911d8-c2de-4e37-babb-6371b753456a@amlogic.com \
--to=jian.hu@amlogic.com \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel-dev@aliel.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.blumenstingl@googlemail.com \
--cc=mturquette@baylibre.com \
--cc=neil.armstrong@linaro.org \
--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
Powered by JetHome