How to enable SAI3_MCLK on iMX8MP?

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

How to enable SAI3_MCLK on iMX8MP?

Jump to solution
326 Views
Eddy1
Contributor V

we want  to output a clock e.g. on the `SAI3_MCLK` pin?it was found that sai3_mclk can be output normally on 8mini, but 8mp has been unable to output sai3_mclk.What has to be configured else to output the MCLK signal?  I require it for using an SGTL5000 which needs MCLK for its i2c communication.

0 Kudos
1 Solution
223 Views
Eddy1
Contributor V

hi:

Thank you for your response. I have resolved the issue. It requires modifying the clock divider.

View solution in original post

0 Kudos
2 Replies
294 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

The imx8mp-evk.dts has enabled the sai3_mclk, you can refer it.

&sai3 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sai3>;
	assigned-clocks = <&clk IMX8MP_CLK_SAI3>;
	assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
	assigned-clock-rates = <12288000>;
	clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_IPG>, <&clk IMX8MP_CLK_DUMMY>,
		 <&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_MCLK1>, <&clk IMX8MP_CLK_DUMMY>,
		 <&clk IMX8MP_CLK_DUMMY>;
	clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3";
	fsl,sai-mclk-direction-output;
	status = "okay";
};
	codec: wm8960@1a {
		compatible = "wlf,wm8960";
		reg = <0x1a>;
		clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIO_BLK_CTRL_SAI3_MCLK1>;
		clock-names = "mclk";
		wlf,shared-lrclk;
		wlf,hp-cfg =  2 3>;
		wlf,gpio-cfg = <1 3>;
		SPKVDD1-supply = <&reg_audio_pwr>;
	};
0 Kudos
224 Views
Eddy1
Contributor V

hi:

Thank you for your response. I have resolved the issue. It requires modifying the clock divider.

0 Kudos