AnsweredAssumed Answered

SGTL5000 hangs I2C bus Issue

Question asked by Pinkesh Pachchigar on Mar 31, 2016
Latest reply on Apr 4, 2016 by Artur Petukhov

Hello ,

We have a custom board and SGTL500 chip .And for this we have programmed board with bare-metal not Linux .

As per discussed in the mentioned link , after power cycle we need to fill SGTL registers with default values .

https://community.freescale.com/message/482530#comment-482531

ASoC: sgtl5000: Fix driver probe after reset · wandboard-org/linux@a648586 · GitHub

In our environment ,When we try to write reg with defaults value that too fails.

We have use PLL with integer divisor and fractional divisor equal to 16 and 786 respectively.

SYS_FS = 8 KHz 

Provided System main clock = 12 MHz,

What needs to be done to resolve this issue ?? Please let me know.

SGTL5000 registers are configured in the following order

ANA_POWER   0x4060
LINREG_CTRL   0x6C
REF_CTRL   0x1F2
SHORT_CTRL   0x4446
ANA_CTRL   0x122 (Headphone Unmute)
CLK_TOP_CTRL   0x0
PLL_CTRL   0x8312
ANA_POWER   0x5BA
CLK_CTRL   0x003B
DIG_POWER   0x63
SSS_CTRL   0x70
ADCDAC_CTRL   0x0
DAC_VOL   0x3C3C
DAP_CTRL   0x0
I2S_CTRL   0x1B0
MIC_CTRL   0x170
ANA_HP_CTRL   0x1E1E
ANA_ADC_CTRL   0x0
ANA_STATUS   0x17

 

- Pinkesh

Outcomes