AnsweredAssumed Answered

SGTL5000 codec is not working in im6ul custom board

Question asked by saisurya narayan on Oct 14, 2016
Latest reply on Oct 16, 2016 by igorpadykov

Hi Team,

 

We are working on Imx6ul based target board.In that we are using sgtl5000 codec.we have made appropriate changes in dts file.But when we boot the board it is failing to register the sound card.

 

i am getting the following error

 

sgtl5000: probe of 1-000a failed with error -5
fsl-asrc 2034000.asrc: driver registered
imx-sgtl5000 sound: snd_soc_register_card failed (-517)

 

here are my dts changes

 

    sound {
        compatible = "fsl,imx-audio-sgtl5000";
        model = "imx6ul-sgtl5000";
        cpu-dai = <&sai1>;
        audio-codec = <&codec>;
        asrc-controller = <&asrc>;
        codec-master;
        gpr = <&gpr>;
        audio-routing =
            "LINE_IN", "Line In Jack",
            "MIC_IN", "Mic Jack",
            "Mic Jack", "Mic Bias",
            "Headphone Jack", "HP_OUT";
    };

 

&i2c2 {
    clock-frequency = <100000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_i2c2>;
    status = "okay";

 

    codec: sgtl5000@0a {
           compatible = "fsl,sgtl5000";
           reg = <0x0a>;
           #sound-dai-cells = <0>;
           VDDA-supply = <&reg_3p3v>;
           VDDIO-supply = <&reg_3p3v>;
       clocks = <&sys_mclk>;
       };

 

clocks {
    sys_mclk: clock {
    compatible = "fixed-clock";
    #clock-cells = <0>;
    clock-frequency = <25000000>;
   };

 

please correct me if i am doing any wrong.is there anything missing?

Outcomes