SGTL5000 codec is not working in im6ul custom board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SGTL5000 codec is not working in im6ul custom board

995 Views
saisuryanarayan
Contributor I

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?

0 Kudos
1 Reply

590 Views
igorpadykov
NXP Employee
NXP Employee

Hi saisurya

please check karo tx6ul board :
https://github.com/RobertCNelson/device-tree-rebasing/blob/master/src/arm/imx6ul-tx6ul.dtsi

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos