public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: allwinner: a64: fix video output on Pinebook
@ 2024-12-15  5:34 Vasily Khoruzhick
  2024-12-15  5:34 ` [PATCH 1/3] dt-bindings: clock: sunxi: Export PLL_VIDEO_2X and PLL_MIPI Vasily Khoruzhick
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Vasily Khoruzhick @ 2024-12-15  5:34 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland, Michael Turquette, Stephen Boyd,
	Maxime Ripard, Roman Beranek, devicetree, linux-arm-kernel,
	linux-sunxi, linux-kernel, linux-clk
  Cc: Vasily Khoruzhick

Since commit ca1170b69968 ("clk: sunxi-ng: a64: force select PLL_MIPI in TCON0 mux"),
TCON0 clock parent is always set to PLL_MIPI, but unfortunately it breaks
video output on Pinebook.

I did an experiment: I manually configured PLL_MIPI and PLL_VIDEO0_2X
to the same clock rate and flipped the switch with devmem. Experiment clearly
showed that whenever PLL_MIPI is selected as TCON0 clock parent, the video
output stops working.

To fix the issue, I partially reverted mentioned commit and added explicit
TCON0 clock parent assignment to device tree. By default, it will be
PLL_MIPI, and the only users with RGB output - Pinebook and Teres-I will
override it in their dts.

Vasily Khoruzhick (3):
  dt-bindings: clock: sunxi: Export PLL_VIDEO_2X and PLL_MIPI
  arm64: dts: allwinner: a64: explicitly assign clock parent for TCON0
  clk: sunxi-ng: a64: stop force-selecting PLL-MIPI as TCON0 parent

 arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts |  2 ++
 arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts  |  2 ++
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi         |  2 ++
 drivers/clk/sunxi-ng/ccu-sun50i-a64.c                 | 11 -----------
 drivers/clk/sunxi-ng/ccu-sun50i-a64.h                 |  2 --
 include/dt-bindings/clock/sun50i-a64-ccu.h            |  2 ++
 6 files changed, 8 insertions(+), 13 deletions(-)

-- 
2.47.1


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

end of thread, other threads:[~2024-12-22 10:17 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-15  5:34 [PATCH 0/3] arm64: allwinner: a64: fix video output on Pinebook Vasily Khoruzhick
2024-12-15  5:34 ` [PATCH 1/3] dt-bindings: clock: sunxi: Export PLL_VIDEO_2X and PLL_MIPI Vasily Khoruzhick
2024-12-15  7:55   ` Dragan Simic
2024-12-17  7:33   ` Krzysztof Kozlowski
2024-12-17 18:00     ` Vasily Khoruzhick
2024-12-17 21:15       ` Andre Przywara
2024-12-17 22:02         ` Dragan Simic
2024-12-18  1:38           ` Andre Przywara
2024-12-18  5:19             ` Dragan Simic
2024-12-18  6:35         ` Vasily Khoruzhick
2024-12-15  5:34 ` [PATCH 2/3] arm64: dts: allwinner: a64: explicitly assign clock parent for TCON0 Vasily Khoruzhick
2024-12-15  8:00   ` Dragan Simic
2024-12-15  5:34 ` [PATCH 3/3] clk: sunxi-ng: a64: stop force-selecting PLL-MIPI as TCON0 parent Vasily Khoruzhick
2024-12-15  8:08   ` Dragan Simic
2024-12-15  8:14 ` [PATCH 0/3] arm64: allwinner: a64: fix video output on Pinebook Chen-Yu Tsai
2024-12-15 13:39 ` Andre Przywara
2024-12-22 10:17 ` Frank Oltmanns

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