SAI2 as master in imx8qxp/dx

cancel
Showing results for 
Search instead for 
Did you mean: 

SAI2 as master in imx8qxp/dx

96 Views
afridi20
Contributor III

Hi,                                                                                                                                                                          Is it possible to use SAI2 as a master and generate bit/frame sync clock for other slave device? The data sheet shows SAI2 is receive only and contains pinmux as ADMA_SAI2_RXC, ADMA_SAI2_RXD and ADMA_SAI2_RXFS. Kindly comment on this if SAI2 can act as master and produce clock to slave device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SAI2 node added in imx8xmek.dtsi:                                                                                                                                                                                                                                                                                             pinctrl_sai2: sai2grp {
fsl,pins = <
IMX8QXP_CSI_D03_CI_PI_D05 0x96000000 /*ADMA_SAI2_RXC*/
IMX8QXP_CSI_D04_CI_PI_D06 0x96000000 /*ADMA_SAI2_RXD*/
IMX8QXP_CSI_D05_CI_PI_D07 0x96000000 /*ADMA_SAI2_RXFS*/
>;
};                                                                                                                                                                          &sai2 {
#sound-dai-cells = <0>;
assigned-clocks = <&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_PLL>,
<&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_SLV_BUS>,
<&clk IMX_SC_R_AUDIO_PLL_0 IMX_SC_PM_CLK_MST_BUS>,
<&sai2_lpcg 0>; /* FIXME: should be sai1, original code is 0 */
assigned-clock-rates = <786432000>, <49152000>, <12288000>, <49152000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;
status = "okay";
};
Thank you in advance. Eagerly waiting for reply.

0 Kudos
0 Replies