connecting to ESAI1 in i.MX8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

connecting to ESAI1 in i.MX8

1,163 Views
riyan_khairulin
Contributor I

I'm working with board imx8qmmek and i try to connectto radiochip with I2S through ESAI. I described it in dts-file:

esai1: esai@59810000 {
compatible = "fsl,imx8qm-esai";
reg = <0x0 0x59810000 0x0 0x10000>;
interrupts = <GIC_SPI 411 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8QM_AUD_ESAI_1_IPG>,
<&clk IMX8QM_AUD_ESAI_1_EXTAL_IPG>,
<&clk IMX8QM_AUD_ESAI_1_IPG>,
<&clk IMX8QM_CLK_DUMMY>;
clock-names = "core", "extal", "fsys", "spba";
dmas = <&edma3 6 0 1>, <&edma3 7 0 0>;
dma-names = "rx", "tx";
status = "disabled";
power-domains = <&pd_esai1>;
fsl,mode = "i2s-slave";
};

&esai1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_esai1>;
assigned-clocks = <&clk IMX8QM_ACM_ESAI0_MCLK_SEL>,
<&clk IMX8QM_AUD_PLL0_DIV>,
<&clk IMX8QM_AUD_ACM_AUD_PLL_CLK0_DIV>,
<&clk IMX8QM_AUD_ACM_AUD_REC_CLK0_DIV>,
<&clk IMX8QM_AUD_ESAI_0_EXTAL_IPG>;
assigned-clock-parents = <&clk IMX8QM_AUD_ACM_AUD_PLL_CLK0_CLK>;
assigned-clock-rates = <0>, <786432000>, <49152000>, <12288000>, <49152000>;
fsl,txm-rxs;
status = "okay";
};

sound-x28 {
compatible = "simple-audio-card";
simple-audio-card,name = "x28-audio";
simple-audio-card,format="i2s";
simple-audio-card,mclk-fs = <64>;
simple-audio-card,frame-master = <&sound2_ssi>;
simple-audio-card,bitclock-master = <&sound2_ssi>;
simple-audio-card,widgets =
"Microphone", "Mic Jack",
"Line", "Line In",
"Line", "Line Out",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"DMIC AIF", "DMic";
mux-int-port = <1>;
mux-ext-port = <4>;
sound2_ssi: simple-audio-card,cpu {
sound-dai = <&esai1>;
system-clock-frequency = <3072000>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <32>;
};

sound2codec: simple-audio-card,codec {
sound-dai = <&sound>;
};
};

But kernel don't rise the sound device and write an error:

OF: /sound-x28/simple-audio-card,cpu: could not get #sound-dai-cells for /esai@59810000
[ 4.125931] asoc-simple-card sound-x28: parse error -22
[ 4.131236] asoc-simple-card: probe of sound-x28 failed with error -22

What can I do uncorrectly?

Thank you!

Tags (2)
0 Kudos
2 Replies

920 Views
jimmychan
NXP TechSupport
NXP TechSupport

Which version of BSP are you using?

Which file you are modified?

0 Kudos

920 Views
riyan_khairulin
Contributor I

I'm using i.MX Linux Yocto Project BSP 4.14.78_1.0.0 Release.

I edited the files: fsl-imx8qm-mek.dtsi, fsl-imx8qm-device.dtsi.

0 Kudos