mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clk: socfpga: agilex: implement l3_main_free_clk
@ 2026-05-22  9:02 Adrian Ng Ho Yin
  2026-05-26  2:47 ` Dinh Nguyen
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Ng Ho Yin @ 2026-05-22  9:02 UTC (permalink / raw)
  To: Dinh Nguyen, Michael Turquette, Stephen Boyd, Brian Masney,
	linux-clk, linux-kernel
  Cc: Adrian Ng Ho Yin

The AGILEX_L3_MAIN_FREE_CLK is defined in the dt-bindings header but
was never implemented in the clock driver. Per the Agilex TRM,
l3_main_free_clk has no divider or mux and is a fixed 1:1 derivative
of noc_free_clk that clocks most of the interconnect datapath.

Signed-off-by: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>
---
 drivers/clk/socfpga/clk-agilex.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/socfpga/clk-agilex.c b/drivers/clk/socfpga/clk-agilex.c
index 8dd94f64756b..2bdea1997b5e 100644
--- a/drivers/clk/socfpga/clk-agilex.c
+++ b/drivers/clk/socfpga/clk-agilex.c
@@ -259,6 +259,8 @@ static const struct stratix10_perip_cnt_clock agilex_main_perip_cnt_clks[] = {
 	   0, 0x3C, 0, 0, 0},
 	{ AGILEX_NOC_FREE_CLK, "noc_free_clk", NULL, noc_free_mux, ARRAY_SIZE(noc_free_mux),
 	  0, 0x40, 0, 0, 0},
+	{ AGILEX_L3_MAIN_FREE_CLK, "l3_main_free_clk", "noc_free_clk", NULL,
+	  1, 0, 0, 1, 0, 0},
 	{ AGILEX_L4_SYS_FREE_CLK, "l4_sys_free_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), 0,
 	  0, 4, 0x30, 1},
 	{ AGILEX_EMAC_A_FREE_CLK, "emaca_free_clk", NULL, emaca_free_mux, ARRAY_SIZE(emaca_free_mux),
-- 
2.49.GIT


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] clk: socfpga: agilex: implement l3_main_free_clk
  2026-05-22  9:02 [PATCH] clk: socfpga: agilex: implement l3_main_free_clk Adrian Ng Ho Yin
@ 2026-05-26  2:47 ` Dinh Nguyen
  0 siblings, 0 replies; 2+ messages in thread
From: Dinh Nguyen @ 2026-05-26  2:47 UTC (permalink / raw)
  To: Adrian Ng Ho Yin, Michael Turquette, Stephen Boyd, Brian Masney,
	linux-clk, linux-kernel



On 5/22/26 04:02, Adrian Ng Ho Yin wrote:
> The AGILEX_L3_MAIN_FREE_CLK is defined in the dt-bindings header but
> was never implemented in the clock driver. Per the Agilex TRM,
> l3_main_free_clk has no divider or mux and is a fixed 1:1 derivative
> of noc_free_clk that clocks most of the interconnect datapath.
> 
> Signed-off-by: Adrian Ng Ho Yin <adrian.ho.yin.ng@altera.com>
> ---
>   drivers/clk/socfpga/clk-agilex.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/clk/socfpga/clk-agilex.c b/drivers/clk/socfpga/clk-agilex.c
> index 8dd94f64756b..2bdea1997b5e 100644
> --- a/drivers/clk/socfpga/clk-agilex.c
> +++ b/drivers/clk/socfpga/clk-agilex.c
> @@ -259,6 +259,8 @@ static const struct stratix10_perip_cnt_clock agilex_main_perip_cnt_clks[] = {
>   	   0, 0x3C, 0, 0, 0},
>   	{ AGILEX_NOC_FREE_CLK, "noc_free_clk", NULL, noc_free_mux, ARRAY_SIZE(noc_free_mux),
>   	  0, 0x40, 0, 0, 0},
> +	{ AGILEX_L3_MAIN_FREE_CLK, "l3_main_free_clk", "noc_free_clk", NULL,
> +	  1, 0, 0, 1, 0, 0},
>   	{ AGILEX_L4_SYS_FREE_CLK, "l4_sys_free_clk", NULL, noc_mux, ARRAY_SIZE(noc_mux), 0,
>   	  0, 4, 0x30, 1},
>   	{ AGILEX_EMAC_A_FREE_CLK, "emaca_free_clk", NULL, emaca_free_mux, ARRAY_SIZE(emaca_free_mux),

Applied!

Thanks,
Dinh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-26  2:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-22  9:02 [PATCH] clk: socfpga: agilex: implement l3_main_free_clk Adrian Ng Ho Yin
2026-05-26  2:47 ` Dinh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®