Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: imx8mp-beacon-kit: Fix audio_pll2 clock

Commit 16c984524862 ("arm64: dts: imx8mp: don't initialize audio clocks
from CCM node") removed the Audio clocks from the main clock node, because
the intent is to force people to setup the audio PLL clocks per board
instead of having a common set of rates since not all boards may use
the various audio PLL clocks for audio devices.

This resulted in an incorrect clock rate when attempting to playback
audio, since the AUDIO_PLL2 wasn't set any longer. Fix this by
setting the AUDIO_PLL2 rate inside the SAI3 node since it's the SAI3
that needs it.

Fixes: 16c984524862 ("arm64: dts: imx8mp: don't initialize audio clocks from CCM node")
Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Adam Ford and committed by
Shawn Guo
161af16c b739681b

+3 -2
+3 -2
arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts
··· 381 381 &sai3 { 382 382 pinctrl-names = "default"; 383 383 pinctrl-0 = <&pinctrl_sai3>; 384 - assigned-clocks = <&clk IMX8MP_CLK_SAI3>; 384 + assigned-clocks = <&clk IMX8MP_CLK_SAI3>, 385 + <&clk IMX8MP_AUDIO_PLL2> ; 385 386 assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>; 386 - assigned-clock-rates = <12288000>; 387 + assigned-clock-rates = <12288000>, <361267200>; 387 388 fsl,sai-mclk-direction-output; 388 389 status = "okay"; 389 390 };