SGTL5000

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

SGTL5000

Jump to solution
1,461 Views
jingyangxie
Contributor V

I have a imx6q custom board with using sgtl5000 for sound card ,I configed the devicetree and build the kernel 3.14.52,when I use command "aplay xxx.wav",I cound not hear any sound ,can any one give any advice ?

here are some configure:

&ssi1 {
 fsl,mode = "i2s-slave";
 status = "okay";
};

&audmux {
 pinctrl-names = "default";
 pinctrl-0 = <&pinctrl_audmux>;
 status = "okay";
};

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

sound {
  compatible = "fsl,imx6q-sabresd-sgtl5000",
        "fsl,imx-audio-sgtl5000";
  model = "imx6q-sabresd-sgtl5000";
  cpu-dai = <&ssi1>;
  audio-codec = <&codec>;
  audio-routing =
   "MIC_IN", "Mic Jack",
   "Mic Jack", "Mic Bias",
   "Headphone Jack", "HP_OUT";
  mux-int-port = <1>;
  mux-ext-port = <3>;
 };

pinctrl_audmux: audmuxgrp {
   fsl,pins = <
    MX6QDL_PAD_CSI0_DAT7__AUD3_RXD  0x130b0
    MX6QDL_PAD_CSI0_DAT4__AUD3_TXC  0x130b0
    MX6QDL_PAD_CSI0_DAT5__AUD3_TXD  0x110b0
    MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS  0x130b0
   >;
  };

Labels (2)
0 Kudos
1 Solution
971 Views
igorpadykov
NXP Employee
NXP Employee

sgtl5000 is not used on nxp i.MX6 reference boards, there are no examples for sgtl5000

with them. For sgtl5000 examples please refer to boundary devices schematic

BD-SL-i.MX6 sabre_lite-revD.pdf p.7

i.MX6 ARM Development Board 

https://boundarydevices.com/wp-content/uploads/2014/11/sabre_lite-revD.pdf 

use boundary devices linux kernels and choose agtl5000 settings for that board, use them

as example

Wiki - Boundary Devices 

Best regards
igor

View solution in original post

5 Replies
971 Views
igorpadykov
NXP Employee
NXP Employee

Hi jingyang

what bsp used in the case, please check BD bsps where sgtl5000 is well supported

Audio output selection under Linux on i.MX6 - Boundary Devices 

please check with oscillosope clock signals, in particular MCLK.

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

0 Kudos
971 Views
jingyangxie
Contributor V

Hi,I have check the board,the MCLK is 24MHz,I don't sure the sch is right .can you help me check it? sch.jpg

0 Kudos
972 Views
igorpadykov
NXP Employee
NXP Employee

sgtl5000 is not used on nxp i.MX6 reference boards, there are no examples for sgtl5000

with them. For sgtl5000 examples please refer to boundary devices schematic

BD-SL-i.MX6 sabre_lite-revD.pdf p.7

i.MX6 ARM Development Board 

https://boundarydevices.com/wp-content/uploads/2014/11/sabre_lite-revD.pdf 

use boundary devices linux kernels and choose agtl5000 settings for that board, use them

as example

Wiki - Boundary Devices 

Best regards
igor

971 Views
jingyangxie
Contributor V

0 Kudos
971 Views
jingyangxie
Contributor V

Hi,igorpadkov

   the bsp is 3.14.52,and the schematic is below:

0 Kudos