arm64: dts: allwinner: a64: explicitly assign clock parent for TCON0
BugLink: https://bugs.launchpad.net/bugs/2111953
[ Upstream commit 8715c91a836502929c637c76a26335ede8818acf ]
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: ca1170b699 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
This commit is contained in:
committed by
Mehmet Basaran
parent
491dfd4a07
commit
764f944f7c
@@ -390,6 +390,8 @@
|
||||
&tcon0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&lcd_rgb666_pins>;
|
||||
assigned-clocks = <&ccu CLK_TCON0>;
|
||||
assigned-clock-parents = <&ccu CLK_PLL_VIDEO0_2X>;
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -369,6 +369,8 @@
|
||||
&tcon0 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&lcd_rgb666_pins>;
|
||||
assigned-clocks = <&ccu CLK_TCON0>;
|
||||
assigned-clock-parents = <&ccu CLK_PLL_VIDEO0_2X>;
|
||||
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
@@ -410,6 +410,8 @@
|
||||
clock-names = "ahb", "tcon-ch0";
|
||||
clock-output-names = "tcon-data-clock";
|
||||
#clock-cells = <0>;
|
||||
assigned-clocks = <&ccu CLK_TCON0>;
|
||||
assigned-clock-parents = <&ccu CLK_PLL_MIPI>;
|
||||
resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>;
|
||||
reset-names = "lcd", "lvds";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user