AnsweredAssumed Answered

sgtl5000 not working with imx6ul target board

Question asked by Sourabh Das on Oct 4, 2016
Latest reply on Nov 22, 2017 by 龚军 龚


We are having sgtl5000 in our target board. Our audio codec is connected to the I2S1 line and I2C2 line of the processor. I given entry in the board dts file like this:


sound {                                

    compatible = "fsl,imx6ul-sgtl5000",
    model = "imx6ul-sgtl5000";
    ssi-controller = <&sai1>;
    audio-codec = <&codec>;
    audio-routing =
        "MIC_IN", "Mic Jack",
        "Mic Jack", "Mic Bias",
        "Headphone Jack", "HP_OUT",
        "Line Out Jack", "LINE_OUT";
    mux-int-port = <2>;
    mux-ext-port = <3>;


&sai1 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_sai1>;

    assigned-clocks = <&clks IMX6UL_CLK_SAI1_SEL>,
        <&clks IMX6UL_CLK_SAI1>;
    assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;     /* need to be check */
    assigned-clock-rates = <0>, <12288000>;

    status = "okay";


  codec: sgtl5000@a {
        compatible = "fsl,sgtl5000";
        reg = <0x0a>;
        clocks = <&clks IMX6UL_CLK_SAI1>;


But while the kernel is booting, it is showing:

sgtl5000: probe of 1-000a failed with error -5
imx-sgtl5000 sound: audmux internal port setup failed
imx-sgtl5000: probe of sound failed with error -22
ALSA device list:
  No soundcards found.