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.
解決済! 解決策の投稿を見る。
hi:
Thank you for your response. I have resolved the issue. It requires modifying the clock divider.
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 = <®_audio_pwr>;
};
hi:
Thank you for your response. I have resolved the issue. It requires modifying the clock divider.