ARM: dts: imx6: RDU2: assign video PLL as input to LDB
authorLucas Stach <l.stach@pengutronix.de>
Fri, 13 Mar 2020 09:58:04 +0000 (10:58 +0100)
committerShawn Guo <shawnguo@kernel.org>
Mon, 16 Mar 2020 02:44:09 +0000 (10:44 +0800)
Currently we don't ensure that the LDB is clocked from the video PLL
and relied on the bootloader to do the correct setup. This isn't always
true, in which case we would run with a vastly different video clock
than the desired one. Fix this by assigning the proper parent to the
LDB.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-zii-rdu2.dtsi

index 0075637f9b0b10d30b802a2de9c1cc8e8eb63a71..20350e803377d2b49188b2a071a0d55028a625e2 100644 (file)
        };
 };
 
+&clks {
+       assigned-clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>,
+                         <&clks IMX6QDL_CLK_LDB_DI1_SEL>;
+       assigned-clock-parents = <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>,
+                                <&clks IMX6QDL_CLK_PLL5_VIDEO_DIV>;
+};
+
 &cpu0 {
        fsl,soc-operating-points = <
                /* ARM kHz  SOC-PU uV */