Platform forum

Enabling SGTL5000 in OpenRex dtsi file

shafy.s , 04-05-2017, 11:28 AM

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
robertferanec , 04-06-2017, 11:05 AM
Please ask Suriken on our OpenRex dedicated forum. He was able to make it:
Use our interactive Discord forum to reply or ask new questions.
Discord invite
Discord forum link (after invitation)

Didn't find what you were looking for?