Announcement

Collapse
No announcement yet.

Enabling SGTL5000 in OpenRex dtsi file

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Enabling SGTL5000 in OpenRex dtsi file

    Hi,

    I could find that there is no entry for the SGTL5000 codec in the dtsi file for openrex.
    Using some other imx6 boards as reference I tried the following entries in the dtsi file under i2c2

    sound {
    compatible = "fsl,snd-soc-imx-sgtl5000", "fsl,imx-audio-sgtl5000";
    model = "snd-soc-imx-sgtl5000";
    ssi-controller = <&ssi2>;
    audio-codec = <&codec>;
    audio-routing =
    "MIC_IN", "Mic Jack",
    "Mic Jack", "Mic Bias",
    "LINE_IN", "Line In Jack",
    "Headphone Jack", "HP_OUT",
    "Ext Spk", "LINE_OUT";
    mux-int-port = <2>;
    mux-ext-port = <3>;

    };


    codec: sgtl5000@0a {
    compatible = "fsl,sgtl5000";
    reg = <0x0a>;
    clocks = <&clks 201>;
    VDDA-supply = <&sw2_reg>;
    VDDIO-supply = <&sw2_reg>;
    VDDD-supply = <&vgen3_reg>;
    };

    But the Kernel boot message is showing the following error

    sgtl5000: probe of 1-000a failed with error -5
    fsl-asrc 2034000.asrc: driver registered
    imx-sgtl5000 sound.21: phandle missing or invalid
    imx-sgtl5000: probe of sound.21 failed with error -22



    Can you please provide the correct dtsi entry for the codec ? I am using the openrex quad variant
    Last edited by shafy.s; 04-05-2017, 10:41 AM.

  • #2
    Please ask Suriken on our OpenRex dedicated forum. He was able to make it:

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎