IMX8M Mini SAI5 Status Query

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

IMX8M Mini SAI5 Status Query

789 Views
sreedhar_appala
Contributor IV

Hi,

We are working with IMX8M Mini based EVK HW and NXP Audio Board.

I am working with 4.14.98.2_0_0 sumo version.

For recording/capture we used SAI5 interface. In the dts file: fsl-imx8mm-evk.dts

&sai5 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai5>;
assigned-clocks = <&clk IMX8MM_CLK_SAI5_SRC>,
<&clk IMX8MM_CLK_SAI5_DIV>;
assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
assigned-clock-rates = <0>, <49152000>;
clocks = <&clk IMX8MM_CLK_SAI5_IPG>, <&clk IMX8MM_CLK_DUMMY>,
<&clk IMX8MM_CLK_SAI5_ROOT>, <&clk IMX8MM_CLK_DUMMY>,
<&clk IMX8MM_CLK_DUMMY>, <&clk IMX8MM_AUDIO_PLL1_OUT>,
<&clk IMX8MM_AUDIO_PLL2_OUT>;
clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3", "pll8k", "pll11k";
fsl,sai-asynchronous;
status = "disabled";
};

For making use of SAI5, I changed the status to okay.

status = "okay";

Recording is working fine , tested using arecord utility.

But for me recording is working for status = disabled also.

Could you please clarify me why recording is working for status = disabled.

Thank you,

Sreedhar

0 Kudos
2 Replies

693 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Sreedhar,

See below, please!

1. Question on status="okay" and "disabled"
For a device, even though you set it in device tree, and you don't handle it in probe function of the device drier, the driver will still be loaded.
so open sound/soc/fsl/fsl_sai.c, you will find it not be handled.

2. suggest you do a test
(1) Power off the board
(2) remove audio board.
(3) power on and boot the board
(4) check if the device exists
/proc/device-tree/  

Hope above information is helpful for you.

Have a nice day!

B.R,

weidong

0 Kudos

693 Views
sreedhar_appala
Contributor IV

Thank you weidong

0 Kudos