Hi,
I am trying to configure sai3 port for pico-imx7 platform to use external mic.
Below is my configuration for sai3 in dtsi file:
sai3 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai3>;
assigned-clocks = <&clks IMX7D_SAI3_ROOT_SRC>,
<&clks IMX7D_SAI3_ROOT_CLK>;
assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
assigned-clock-rates = <3072000>;
status = "okay";
};
pinctrl_sai3: sai3grp {
fsl,pins = <
MX7D_PAD_UART3_TX_DATA__SAI3_TX_BCLK 0x1f
MX7D_PAD_UART3_CTS_B__SAI3_TX_SYNC 0x1f
MX7D_PAD_UART3_RTS_B__SAI3_TX_DATA0 0x30
>;
};
But with this configuration, if i build and flash image in the board, I am getting the following log:
switch to partitions #0, OK
mmc0(part 0) is current device
reading uEnv.txt
14 bytes read in 9 ms (1000 Bytes/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
reading boot.scr
** Unable to read file boot.scr **
reading zImage
6133040 bytes read in 151 ms (38.7 MiB/s)
Booting from mmc ...
baseboard is pi
reading imx7d-pico_pi.dtb
43915 bytes read in 17 ms (2.5 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x5d9530 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300db8a
Starting kernel ...
And its not proceeding further. Please provide proper configuration for sai3.
Thanks in advance..
Regards,
Ganapathirao.P
Hi Ganapathirao
hanging " Starting kernel ..." does not relate to sai3, it may be caused by wrong image,
please follow steps on
The imx7d-pico board is now supported in FSL Community BSP - i.MXDev Blog
If this is new board, then first it is necessary to run ddr test and then rebuild image with
new ddr settings found from tester.
i.MX6/7 DDR Stress Test Tool V2.70
for sai3 example one can look at linux/arch/arm/boot/dts/imx7d-sdb.dts
linux-imx.git - i.MX Linux Kernel
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
Thank you for your reply.
As you mentioned, the issue I faced only because wrong image, now the board is getting booted successfully.
The actual issue is, I am trying to add new sound card to PICO-IMX7 through sai3 port. For this I have added codec driver file
and configuring dtsi file with following configuration:
sound {
compatible = "fsl,imx-ics52000",
"fsl,imx-audio-ics52000";
model = "audio-ics52000";
audio-cpu = <&sai3>;
audio-codec = <&card_codec>;
};
card_codec: ics52000 {
compatible = "invensense,ics52000";
status = "okay";
};
&sai3 {
#sound-dai-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai3>;
assigned-clocks = <&clks IMX7D_SAI3_ROOT_SRC>,
<&clks IMX7D_SAI3_ROOT_CLK>;
assigned-clock-parents = <&clks IMX7D_PLL_AUDIO_POST_DIV>;
assigned-clock-rates = <3072000>;
status = "okay";
};
pinctrl_sai3: sai3grp {
fsl,pins = <
MX7D_PAD_UART3_TX_DATA__SAI3_TX_BCLK 0x14
MX7D_PAD_UART3_CTS_B__SAI3_TX_SYNC 0x14
MX7D_PAD_UART3_RTS_B__SAI3_TX_DATA0 0x14
>;
};
So with this configuration I am getting the following errors in boot log:
[ 3.067596] imx-ics52000 sound: failed to find SSI platform device in imx-ics52000
[ 3.073896] imx-ics52000: probe of sound failed with error -22
Kindly provide your support regarding this.
Thanks & Regards
Ganapathirao.P