Here are the relevant sections I have in my device tree. Make sure your mux-int-port and mux-ext-port numbers are correct.
sound {
compatible = "fsl,imx6q-c420-sgtl5000",
"fsl,imx-audio-sgtl5000";
model = "sgtl5000-audio";
cpu-dai = <&ssi2>;
audio-codec = <&sgtl5000>;
audio-routing = "Line Out Jack", "LINE_OUT";
mux-int-port = <2>;
mux-ext-port = <5>;
};
&i2c3 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c3>;
status = "okay";
sgtl5000: sgtl5000@0a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
VDDA-supply = <®_v3p3a>;
VDDD-supply = <&sw4_reg>;
VDDIO-supply = <®_v3p3a>;
clocks = <&codec_osc>;
};
eeprom@50 {
compatible = "st-micro,24c256";
reg = <0x50>;
pagesize = <64>;
};
};