]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8mp-beacon-kit: Fix Stereo Audio on WM8962
authorAdam Ford <aford173@gmail.com>
Sun, 14 Jul 2024 17:20:17 +0000 (12:20 -0500)
committerShawn Guo <shawnguo@kernel.org>
Mon, 12 Aug 2024 03:36:16 +0000 (11:36 +0800)
The L/R clock needs to be controlled by the SAI3 instead of the
CODEC to properly achieve stereo sound. Doing this allows removes
the need for unnecessary clock manipulation to try to get the
CODEC's clock in sync with the SAI3 clock, since the CODEC can cope
with a wide variety of clock inputs.

Fixes: 161af16c18f3 ("arm64: dts: imx8mp-beacon-kit: Fix audio_pll2 clock")
Fixes: 69e2f37a6ddc ("arm64: dts: imx8mp-beacon-kit: Enable WM8962 Audio CODEC")
Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-beacon-kit.dts

index 17e2c19d8455136a256bc927997cffc189ce05b7..cc9b81d4618868f83a0d2197fa495d700bdedade 100644 (file)
 
                simple-audio-card,cpu {
                        sound-dai = <&sai3>;
+                       frame-master;
+                       bitclock-master;
                };
 
                simple-audio-card,codec {
                        sound-dai = <&wm8962>;
-                       clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO1>;
-                       frame-master;
-                       bitclock-master;
                };
        };
 };
 &sai3 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_sai3>;
-       assigned-clocks = <&clk IMX8MP_CLK_SAI3>,
-                         <&clk IMX8MP_AUDIO_PLL2> ;
-       assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>;
-       assigned-clock-rates = <12288000>, <361267200>;
+       assigned-clocks = <&clk IMX8MP_CLK_SAI3>;
+       assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
+       assigned-clock-rates = <12288000>;
        fsl,sai-mclk-direction-output;
        status = "okay";
 };