arm64: dts: imx8mp-beacon-kit: Fix audio_pll2 clock
authorAdam Ford <aford173@gmail.com>
Sat, 19 Aug 2023 10:50:02 +0000 (05:50 -0500)
committerShawn Guo <shawnguo@kernel.org>
Sun, 24 Sep 2023 12:41:57 +0000 (20:41 +0800)
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>
arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts

index 06e91297fb163b8a8488f3f2c0bf419bcf90ba5d..acd265d8b58ed9c8399d63794caacc1f229732d1 100644 (file)
 &sai3 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_sai3>;
-       assigned-clocks = <&clk IMX8MP_CLK_SAI3>;
+       assigned-clocks = <&clk IMX8MP_CLK_SAI3>,
+                         <&clk IMX8MP_AUDIO_PLL2> ;
        assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;
-       assigned-clock-rates = <12288000>;
+       assigned-clock-rates = <12288000>, <361267200>;
        fsl,sai-mclk-direction-output;
        status = "okay";
 };