How to enable SAI3_MCLK on iMX8MP?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to enable SAI3_MCLK on iMX8MP?

跳至解决方案
552 次查看
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 项奖励
回复
1 解答
449 次查看
Eddy1
Contributor V

hi:

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
520 次查看
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 项奖励
回复
450 次查看
Eddy1
Contributor V

hi:

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

0 项奖励
回复