From: Mihai Sain <mihai.sain@microchip.com>
To: <sboyd@kernel.org>, <bmasney+clk@redhat.com>,
<jbrunet+clk@baylibre.com>, <nicolas.ferre@microchip.com>,
<alexandre.belloni@bootlin.com>, <claudiu.beznea@tuxon.dev>,
<robh@kernel.org>, <krzk+dt@kernel.org>, <conor+dt@kernel.org>
Cc: <linux-clk@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>,
Mihai Sain <mihai.sain@microchip.com>
Subject: [PATCH 2/3] ARM: dts: microchip: sam9x7: Fix GMAC TSU clock ID
Date: Thu, 26 Nov 2026 11:18:08 +0200 [thread overview]
Message-ID: <20261126091809.13012-3-mihai.sain@microchip.com> (raw)
In-Reply-To: <20261126091809.13012-1-mihai.sain@microchip.com>
Correct the GMAC TSU clock reference in the SAM9X7 device tree.
Use PMC GCK ID 67 instead of ID 24 for the tsu_clk input and
its assigned clock configuration, ensuring the GMAC TSU clock
is configured using the correct generic clock identifier.
[root@SAM9X75 ~]$ ptp4l -i eth0 -m -2 -H --clientOnly=1
ptp4l[3920.698]: selected /dev/ptp0 as PTP clock
ptp4l[3920.702]: port 1 (eth0): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[3920.703]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[3920.703]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[3922.226]: port 1 (eth0): new foreign master 803428.fffe.37d483-1
ptp4l[3926.226]: selected best master clock 803428.fffe.37d483
ptp4l[3926.230]: port 1 (eth0): LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[3928.226]: master offset 7 s0 freq +7815 path delay 650
ptp4l[3929.226]: master offset 8 s2 freq +7816 path delay 650
ptp4l[3929.227]: port 1 (eth0): UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[3931.226]: master offset 3 s2 freq +7829 path delay 652
ptp4l[3932.226]: master offset 2 s2 freq +7828 path delay 652
ptp4l[3933.226]: master offset 7 s2 freq +7834 path delay 652
ptp4l[3934.226]: master offset -2 s2 freq +7827 path delay 653
ptp4l[3935.226]: master offset 4 s2 freq +7833 path delay 652
ptp4l[3936.226]: master offset -2 s2 freq +7828 path delay 655
ptp4l[3937.226]: master offset 3 s2 freq +7832 path delay 654
ptp4l[3938.227]: master offset 6 s2 freq +7836 path delay 654
ptp4l[3939.227]: master offset 2 s2 freq +7834 path delay 655
ptp4l[3940.227]: master offset -1 s2 freq +7831 path delay 656
ptp4l[3941.227]: master offset 3 s2 freq +7835 path delay 656
Fixes: 41af45af8bc3 ("ARM: dts: at91: sam9x7: add device tree for SoC")
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
arch/arm/boot/dts/microchip/sam9x7.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/microchip/sam9x7.dtsi b/arch/arm/boot/dts/microchip/sam9x7.dtsi
index c680a5033b6b..f400d709901f 100644
--- a/arch/arm/boot/dts/microchip/sam9x7.dtsi
+++ b/arch/arm/boot/dts/microchip/sam9x7.dtsi
@@ -990,9 +990,9 @@ gmac: ethernet@f802c000 {
<62 IRQ_TYPE_LEVEL_HIGH 3>, /* Queue 3 */
<63 IRQ_TYPE_LEVEL_HIGH 3>, /* Queue 4 */
<64 IRQ_TYPE_LEVEL_HIGH 3>; /* Queue 5 */
- clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_GCK 24>;
+ clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_GCK 67>;
clock-names = "hclk", "pclk", "tsu_clk";
- assigned-clocks = <&pmc PMC_TYPE_GCK 24>;
+ assigned-clocks = <&pmc PMC_TYPE_GCK 67>;
assigned-clock-rates = <266666666>;
status = "disabled";
};
--
2.56.1
next prev parent reply other threads:[~2026-11-26 9:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 9:18 [PATCH 0/3] clk: at91: sam9x7: Fix GMAC TSU clock configuration Mihai Sain
2026-11-26 9:18 ` [PATCH 1/3] clk: at91: sam9x7: Fix GMAC TSU generic clock definition Mihai Sain
2026-11-26 9:18 ` Mihai Sain [this message]
2026-11-26 9:24 ` [PATCH 2/3] ARM: dts: microchip: sam9x7: Fix GMAC TSU clock ID sashiko-bot
2026-11-26 9:18 ` [PATCH 3/3] ARM: dts: microchip: sam9x7: Fix GMAC TSU clock frequency Mihai Sain
2026-11-26 9:24 ` sashiko-bot
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=20261126091809.13012-3-mihai.sain@microchip.com \
--to=mihai.sain@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=bmasney+clk@redhat.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=nicolas.ferre@microchip.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