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 1/3] clk: at91: sam9x7: Fix GMAC TSU generic clock definition
Date: Thu, 26 Nov 2026 11:18:07 +0200 [thread overview]
Message-ID: <20261126091809.13012-2-mihai.sain@microchip.com> (raw)
In-Reply-To: <20261126091809.13012-1-mihai.sain@microchip.com>
According to the latest datasheet (see link section), table 12.1,
the instance ID 67 is used for the GMAC TSU generic clock.
Add the gmac_tsu_gclk clock to the SAM9X7 PMC clock configuration.
Configure the clock with a maximum frequency of 400 MHz and
support two possible parents: audiopll and plladiv2ck,
using the corresponding PMC mux selections.
This enables proper parent clock selection for the
GMAC Time Stamp Unit (TSU).
Link: https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductDocuments/DataSheets/SAM9X7-Series-Data-Sheet-DS60001813.pdf
Fixes: 33013b43e271 ("clk: at91: sam9x7: add sam9x7 pmc driver")
Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
---
drivers/clk/at91/sam9x7.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/clk/at91/sam9x7.c b/drivers/clk/at91/sam9x7.c
index 946aa54dd2e8..80e9ee154b97 100644
--- a/drivers/clk/at91/sam9x7.c
+++ b/drivers/clk/at91/sam9x7.c
@@ -710,6 +710,16 @@ static const struct {
.pp_count = 1,
.pp_chg_id = INT_MIN,
},
+
+ {
+ .n = "gmac_tsu_gclk",
+ .id = 67,
+ .r = { .max = 400000000 },
+ .pp = { "audiopll_divpmcck", "plla_div2pmcck", },
+ .pp_mux_table = { 6, 8, },
+ .pp_count = 2,
+ .pp_chg_id = INT_MIN,
+ },
};
static void __init sam9x7_pmc_setup(struct device_node *np)
--
2.56.1
next prev parent reply other threads:[~2026-11-26 9:50 UTC|newest]
Thread overview: 4+ 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 ` Mihai Sain [this message]
2026-11-26 9:18 ` [PATCH 2/3] ARM: dts: microchip: sam9x7: Fix GMAC TSU clock ID Mihai Sain
2026-11-26 9:18 ` [PATCH 3/3] ARM: dts: microchip: sam9x7: Fix GMAC TSU clock frequency Mihai Sain
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-2-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