Commit f5402fff authored by Adam Ford's avatar Adam Ford Committed by Shawn Guo

arm64: dts: imx8mn-beacon: Migrate sound card to simple-audio-card

Instead of using a custom glue layer connecting the wm8962 CODEC
to the SAI3 sound-dai, migrate the sound card to simple-audio-card.
Signed-off-by: default avatarAdam Ford <aford173@gmail.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 69e2f37a
...@@ -74,18 +74,30 @@ reg_usb_otg_vbus: regulator-usb { ...@@ -74,18 +74,30 @@ reg_usb_otg_vbus: regulator-usb {
enable-active-high; enable-active-high;
}; };
sound { sound-wm8962 {
compatible = "fsl,imx-audio-wm8962"; compatible = "simple-audio-card";
model = "wm8962-audio"; simple-audio-card,name = "wm8962";
audio-cpu = <&sai3>; simple-audio-card,format = "i2s";
audio-codec = <&wm8962>; simple-audio-card,widgets = "Headphone", "Headphones",
audio-routing = "Microphone", "Headset Mic",
"Headphone Jack", "HPOUTL", "Speaker", "Speaker";
"Headphone Jack", "HPOUTR", simple-audio-card,routing = "Headphones", "HPOUTL",
"Ext Spk", "SPKOUTL", "Headphones", "HPOUTR",
"Ext Spk", "SPKOUTR", "Speaker", "SPKOUTL",
"AMIC", "MICBIAS", "Speaker", "SPKOUTR",
"IN3R", "AMIC"; "Headset Mic", "MICBIAS",
"IN3R", "Headset Mic";
simple-audio-card,cpu {
sound-dai = <&sai3>;
};
simple-audio-card,codec {
sound-dai = <&wm8962>;
clocks = <&clk IMX8MN_CLK_SAI3_ROOT>;
frame-master;
bitclock-master;
};
}; };
}; };
...@@ -183,6 +195,7 @@ wm8962: audio-codec@1a { ...@@ -183,6 +195,7 @@ wm8962: audio-codec@1a {
0x0000 /* 4:FN_DMICCDAT */ 0x0000 /* 4:FN_DMICCDAT */
0x0000 /* 5:Default */ 0x0000 /* 5:Default */
>; >;
#sound-dai-cells = <0>;
}; };
}; };
......
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