How to enable SAI3_MCLK on iMX8MP?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to enable SAI3_MCLK on iMX8MP?

ソリューションへジャンプ
554件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 解決策
451件の閲覧回数
Eddy1
Contributor V

hi:

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

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
522件の閲覧回数
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 件の賞賛
返信
452件の閲覧回数
Eddy1
Contributor V

hi:

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

0 件の賞賛
返信