AnsweredAssumed Answered

could you tell me how to make it right:MCLK1 pin has no output

Question asked by wang LanWei on Jan 1, 2017

i  used imx6ul with 24MHZ Crystal,the pin 37(MCLK1) work as SOC_MCLK to output.But however i tried to change my codes,it never output any clock,could you tell me how to set it,thanks!

 

my devices tree is this:

 

sound {
compatible = "fsl,imx6ul-evk-wm8978",
"fsl,imx-audio-wm8978";
model = "wm8978-audio";
cpu-dai = <&sai2>;
audio-codec = <&codec>;
asrc-controller = <&asrc>;
codec-master;
gpr = <&gpr>;
/*
* hp-det = <hp-det-pin hp-det-polarity>;
* hp-det-pin: JD1 JD2 or JD3
* hp-det-polarity = 0: hp detect high for headphone
* hp-det-polarity = 1: hp detect high for speaker
*/
hp-det = <3 0>;
hp-det-gpios = <&gpio5 4 0>;

widgets =
"Microphone", "Mic Jack",
"Line", "Line In",
"Line", "Line Out",
"Speaker", "Speaker",
"Headphone", "Headphone Jack";
audio-routing =

 

...

 

&sai2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai2>;

assigned-clocks = <&clks IMX6UL_CLK_SAI2_SEL>,
<&clks IMX6UL_CLK_SAI2>;
assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;
assigned-clock-rates = <0>, <12288000>;
fsl,mode = "i2s-master";
status = "okay";
};

 

even if i edit it like this:

assigned-clock-rates = <12288000>;

 

it doesn't work as well.

My codec is slave.Do i have to set anything more?

 

 

Original Attachment has been moved to: imx6ul-14x14-evk.dts.zip

Outcomes