]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: dts: allwinner: a64: explicitly assign clock parent for TCON0
authorVasily Khoruzhick <anarsoul@gmail.com>
Sat, 4 Jan 2025 07:36:59 +0000 (23:36 -0800)
committerChen-Yu Tsai <wens@csie.org>
Sat, 4 Jan 2025 12:16:51 +0000 (20:16 +0800)
commit8715c91a836502929c637c76a26335ede8818acf
treec4f5a645e6a8aebbce070d8de88c259fa0bdb01c
parentdbfda1fdf2f8232ea778b25025e8b8def7d2d3af
arm64: dts: allwinner: a64: explicitly assign clock parent for TCON0

TCON0 seems to need a different clock parent depending on output type.
For RGB it has to be PLL-VIDEO0-2X, while for DSI it has to be PLL-MIPI,
so select it explicitly.

Video output doesn't work if incorrect clock is assigned.

On my Pinebook I manually configured PLL-VIDEO0-2X and PLL-MIPI to the same
rate, and while video output works fine with PLL-VIDEO0-2X, it doesn't
work at all (as in no picture) with PLL-MIPI.

Fixes: ca1170b69968 ("clk: sunxi-ng: a64: force select PLL_MIPI in TCON0 mux")
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Frank Oltmanns <frank@oltmanns.dev> # on PinePhone
Tested-by: Stuart Gathman <stuart@gathman.org> # on OG Pinebook
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Link: https://patch.msgid.link/20250104074035.1611136-4-anarsoul@gmail.com
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts
arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi