Commit 4e69cd83 authored by Adam Ford's avatar Adam Ford Committed by Shawn Guo

arm64: dts: imx8mp-beacon-kit: Fix Stereo Audio on WM8962

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: 161af16c ("arm64: dts: imx8mp-beacon-kit: Fix audio_pll2 clock")
Fixes: 69e2f37a ("arm64: dts: imx8mp-beacon-kit: Enable WM8962 Audio CODEC")
Signed-off-by: default avatarAdam Ford <aford173@gmail.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 203ed203
...@@ -211,13 +211,12 @@ sound-wm8962 { ...@@ -211,13 +211,12 @@ sound-wm8962 {
simple-audio-card,cpu { simple-audio-card,cpu {
sound-dai = <&sai3>; sound-dai = <&sai3>;
frame-master;
bitclock-master;
}; };
simple-audio-card,codec { simple-audio-card,codec {
sound-dai = <&wm8962>; sound-dai = <&wm8962>;
clocks = <&clk IMX8MP_CLK_IPP_DO_CLKO1>;
frame-master;
bitclock-master;
}; };
}; };
}; };
...@@ -507,10 +506,9 @@ &pcie_phy { ...@@ -507,10 +506,9 @@ &pcie_phy {
&sai3 { &sai3 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai3>; 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_PLL1_OUT>;
assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL2_OUT>; assigned-clock-rates = <12288000>;
assigned-clock-rates = <12288000>, <361267200>;
fsl,sai-mclk-direction-output; fsl,sai-mclk-direction-output;
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment