AnsweredAssumed Answered

IMX6 audio clock

Question asked by will o'neill on Jan 29, 2019
Latest reply on Jan 30, 2019 by igorpadykov

Hi,

I have an imx6qp-based custom board which uses an sgtl5000 codec.  I'm using a build of Linux based on the 4.14.62-imx_4.14.62_1.0.0_beta branch of linux-imx.  The master clock on the sgtl5000 is sourced from the I2S clock output, so I need this clock to be active before I go to load the driver module for the sgtl5000.   Is there a way to configure the dts to force the clock on?  I have this at the moment:

 

    sound-sgtl5000 {
        compatible = "fsl,imx-audio-sgtl5000";
        model = "imx-sgtl5000";
        esai-controller = <&esai>;
        asrc-controller = <&asrc>;
        ssi-controller = <&ssi2>;
        audio-codec = <&codec>;
        audio-routing =
            "MIC_IN", "Mic Jack",
            "Mic Jack", "Mic Bias",
            "Headphone Jack", "HP_OUT";
        mux-int-port = <1>;
        mux-ext-port = <4>;
    };

 

&ssi2 {
    assigned-clocks = <&clks IMX6QDL_CLK_SSI2_SEL>;
    assigned-clock-parents = <&clks IMX6QDL_CLK_PLL4_AUDIO_DIV>;
    assigned-clock-rates = <0>;
    fsl,mode = "i2s-master";
    status = "okay";
};

 

Thanks,

Will.

Outcomes