From: Marek Vasut <marek.vasut@mailbox.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-arm-kernel@lists.infradead.org,
Conor Dooley <conor+dt@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Magnus Damm <magnus.damm@gmail.com>,
Michael Turquette <mturquette@baylibre.com>,
Rob Herring <robh@kernel.org>, Stephen Boyd <sboyd@kernel.org>,
devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 2/4] clk: renesas: r8a73a4: Implement ZT/ZTR trace clock on R-Mobile APE6
Date: Wed, 13 May 2026 15:37:10 +0200 [thread overview]
Message-ID: <c4e6e48d-9a8f-48f0-8666-22efebf86d8a@mailbox.org> (raw)
In-Reply-To: <CAMuHMdUXjwyVk2kuGAJOdPHw=qv_iwO2pSR3Rp+5ayoP2QG25w@mail.gmail.com>
On 5/13/26 3:15 PM, Geert Uytterhoeven wrote:
Hello Geert,
> On Sat, 2 May 2026 at 20:56, Marek Vasut
> <marek.vasut+renesas@mailbox.org> wrote:
>> Implement ZT trace bus and ZTR trace clock on the R-Mobile APE6.
>>
>> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
>
> Thanks for your patch!
>
> /sys/kernel/debug/clk/clk_summary looks a bit off to me:
>
> zt 0 0 0 208000000
> ztr 0 0 0 277333334
>
>> --- a/drivers/clk/renesas/clk-r8a73a4.c
>> +++ b/drivers/clk/renesas/clk-r8a73a4.c
>> @@ -43,6 +43,8 @@ static struct div4_clk div4_clks[] = {
>> { "m1", CPG_FRQCRA, 4 },
>> { "m2", CPG_FRQCRA, 0 },
>> { "zx", CPG_FRQCRB, 12 },
>> + { "ztr", CPG_FRQCRB, 16 },
>
> 20?
>
>> + { "zt", CPG_FRQCRB, 12 },
>
> 16? (12 is zx, cfr. above).
>
> I.e. the same shifts as on R-Mobile A1.
>
>> { "zs", CPG_FRQCRB, 8 },
>> { "hp", CPG_FRQCRB, 4 },
>> { NULL, 0, 0 },
>
> After fixing the shifts, I get:
>
> zt 0 0 0 277333334
> ztr 0 0 0 277333334
>
> which looks much better. If you agree, I can fix this while applying.
Yes please. I can confirm in APE6 RM v0.7 that the ZTFC is at bit offset
16 and ZTRFC at bit offset 20 . Thank you for spotting this.
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2026-05-13 13:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-02 18:55 [PATCH 0/4] Describe coresight on R-Mobile APE6 Marek Vasut
2026-05-02 18:55 ` [PATCH 1/4] dt-bindings: clock: renesas,cpg-clocks: Document ZT/ZTR trace clock " Marek Vasut
2026-05-02 20:28 ` Rob Herring (Arm)
2026-05-13 13:12 ` Geert Uytterhoeven
2026-05-02 18:55 ` [PATCH 2/4] clk: renesas: r8a73a4: Implement " Marek Vasut
2026-05-13 13:15 ` Geert Uytterhoeven
2026-05-13 13:37 ` Marek Vasut [this message]
2026-05-13 13:38 ` Geert Uytterhoeven
2026-05-02 18:55 ` [PATCH 3/4] ARM: dts: renesas: r8a73a4: Add " Marek Vasut
2026-05-13 13:12 ` Geert Uytterhoeven
2026-05-02 18:55 ` [PATCH 4/4] ARM: dts: renesas: r8a73a4: Describe coresight " Marek Vasut
2026-05-13 13:13 ` Geert Uytterhoeven
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=c4e6e48d-9a8f-48f0-8666-22efebf86d8a@mailbox.org \
--to=marek.vasut@mailbox.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=mturquette@baylibre.com \
--cc=robh@kernel.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