增谋 邢

IMX6Q CSI0_MCLK PIN的时钟问题

Discussion created by 增谋 邢 on May 8, 2018

我用的是IMX6Q android 5.1, 现在有用到 CSI0_MCLK做为时钟 给codec sgtl5000供时钟,配置如下:

codec: sgtl5000@0a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
clocks = <&clks IMX6QDL_CLK_CKO>;
VDDA-supply = <&reg_audio>;
VDDIO-supply = <&reg_audio>;
VDDD-supply = <&reg_audio>;
gpio-pwr = <&gpio5 30 1>;
};

 

sgtl5000.c驱动里使用ret = clk_prepare_enable(sgtl5000->mclk);  后用示波器量 没有时钟输出,

Outcomes