public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/2] clk: sunxi-ng: v3s: Fix de clock definition
@ 2025-07-04 15:40 Paul Kocialkowski
  2025-07-04 15:40 ` [PATCH 2/2] clk: sunxi-ng: v3s: Assign the de and tcon clocks to the video pll Paul Kocialkowski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Paul Kocialkowski @ 2025-07-04 15:40 UTC (permalink / raw)
  To: linux-clk, linux-arm-kernel, linux-sunxi, linux-kernel
  Cc: Michael Turquette, Stephen Boyd, Chen-Yu Tsai, Jernej Skrabec,
	Samuel Holland, Icenowy Zheng, Maxime Ripard, Paul Kocialkowski

The de clock is marked with CLK_SET_RATE_PARENT, which is really not
necessary (as confirmed from experimentation) and significantly
restricts flexibility for other clocks using the same parent.

In addition the source selection (parent) field is marked as using
2 bits, when it the documentation reports that it uses 3.

Fix both issues in the de clock definition.

Fixes: d0f11d14b0bc ("clk: sunxi-ng: add support for V3s CCU")
Signed-off-by: Paul Kocialkowski <paulk@sys-base.io>
---
 drivers/clk/sunxi-ng/ccu-sun8i-v3s.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
index 52e4369664c5..df345a620d8d 100644
--- a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
+++ b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.c
@@ -347,8 +347,7 @@ static SUNXI_CCU_GATE(dram_ohci_clk,	"dram-ohci",	"dram",
 
 static const char * const de_parents[] = { "pll-video", "pll-periph0" };
 static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents,
-				 0x104, 0, 4, 24, 2, BIT(31),
-				 CLK_SET_RATE_PARENT);
+				 0x104, 0, 4, 24, 3, BIT(31), 0);
 
 static const char * const tcon_parents[] = { "pll-video", "pll-periph0" };
 static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents,
-- 
2.49.0



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

end of thread, other threads:[~2025-07-14  7:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-04 15:40 [PATCH 1/2] clk: sunxi-ng: v3s: Fix de clock definition Paul Kocialkowski
2025-07-04 15:40 ` [PATCH 2/2] clk: sunxi-ng: v3s: Assign the de and tcon clocks to the video pll Paul Kocialkowski
2025-07-04 15:54 ` [PATCH 1/2] clk: sunxi-ng: v3s: Fix de clock definition Icenowy Zheng
2025-07-04 21:52   ` Paul Kocialkowski
2025-07-05  6:38     ` Icenowy Zheng
2025-07-06  0:06       ` Paul Kocialkowski
2025-07-14  7:21 ` Chen-Yu Tsai

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