Skip to content

Commit 8c89886

Browse files
dbalutaShawn Guo
authored andcommitted
arm64: dts: imx93-11x11-frdm: Add MQS audio support
Enable Medium Quality Sound (MQS) output on the i.MX93 FRDM 11x11 board by adding sound card description and enabling sai1 and mqs1 dts nodes, together with necessary clocks and pinmux. This supports audio playback via SAI1 DAI which is connected to the MQS1 block. Co-developed-by: Tom Zheng <haidong.zheng@nxp.com> Signed-off-by: Tom Zheng <haidong.zheng@nxp.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com> Tested-by: Francesco Valla <francesco@valla.it> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 2da6336 commit 8c89886

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/imx93-11x11-frdm.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@
8181
no-map;
8282
};
8383
};
84+
85+
sound-mqs {
86+
compatible = "fsl,imx-audio-mqs";
87+
model = "mqs-audio";
88+
audio-cpu = <&sai1>;
89+
audio-codec = <&mqs1>;
90+
};
8491
};
8592

8693
&adc1 {
@@ -315,6 +322,27 @@
315322
status = "okay";
316323
};
317324

325+
&mqs1 {
326+
pinctrl-names = "default";
327+
pinctrl-0 = <&pinctrl_mqs1>;
328+
clocks = <&clk IMX93_CLK_MQS1_GATE>;
329+
clock-names = "mclk";
330+
status = "okay";
331+
};
332+
333+
&sai1 {
334+
#sound-dai-cells = <0>;
335+
clocks = <&clk IMX93_CLK_SAI1_IPG>, <&clk IMX93_CLK_DUMMY>,
336+
<&clk IMX93_CLK_SAI1_GATE>, <&clk IMX93_CLK_DUMMY>,
337+
<&clk IMX93_CLK_DUMMY>, <&clk IMX93_CLK_AUDIO_PLL>;
338+
clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3", "pll8k";
339+
assigned-clocks = <&clk IMX93_CLK_SAI1>;
340+
assigned-clock-parents = <&clk IMX93_CLK_AUDIO_PLL>;
341+
assigned-clock-rates = <24576000>;
342+
fsl,sai-mclk-direction-output;
343+
status = "okay";
344+
};
345+
318346
&usbotg1 {
319347
adp-disable;
320348
disable-over-current;
@@ -479,6 +507,13 @@
479507
>;
480508
};
481509

510+
pinctrl_mqs1: mqs1grp {
511+
fsl,pins = <
512+
MX93_PAD_PDM_CLK__MQS1_LEFT 0x31e
513+
MX93_PAD_PDM_BIT_STREAM0__MQS1_RIGHT 0x31e
514+
>;
515+
};
516+
482517
pinctrl_pcal6524: pcal6524grp {
483518
fsl,pins = <
484519
MX93_PAD_CCM_CLKO2__GPIO3_IO27 0x31e

0 commit comments

Comments
 (0)