SGTL5000 SGTL5000_CHIP_ID read fail

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

SGTL5000 SGTL5000_CHIP_ID read fail

1,328 Views
Anira
Contributor II

Hi All,

i am working on SGTL5000 bring up, still the module is not functional. following are my observations.

MCLK- fed to SGTL5000 is 11.36 MHz,

i2c detect is showing the sgtl5000 chip active in i2c bus, 

but SGTL5000_CHIP_ID read chip ID is failed.

sgtl5000.c - sound/soc/codecs/sgtl5000.c - Linux source code

/* read chip information */
ret = regmap_read(sgtl5000->regmap, SGTL5000_CHIP_ID, &reg);
if (ret) {
dev_err(&client->dev, "Error reading chip id %d\n", ret);
goto disable_clk;
}

Any suggestion why its failing, ?

Labels (3)
Tags (3)
0 Kudos
6 Replies

1,168 Views
Anira
Contributor II

Hi Igor,


the sgtl5000 bring on stm32mp1 cpu using i2s 

some time speaker-test utility is getting passed, some times i hear lot of noisy with no audio

speaker-test --device hw:0,0 --rate 48000 --channels 2 --format S16_LE --test wav

 

what will start point to debug,

0 Kudos

1,300 Views
Anira
Contributor II

sgtl5000 i2c query works  confirmed by i2cdetect -y 0,  but no reply from SGTL5000

Error reading chip id -6


sgtl5000.c - sound/soc/codecs/sgtl5000.c - Linux source code (v4.8) - Bootlin

/* read chip information */
ret = regmap_read(sgtl5000->regmap, SGTL5000_CHIP_ID, &reg);
if (ret) {
dev_err(&client->dev, "Error reading chip id %d\n", ret);
goto disable_clk;
}

0 Kudos

378 Views
jackhua
Contributor II

Hi Anira,I have encountered the same situation as you. May I ask how you resolved it at that time? Can you explain the method?

0 Kudos

387 Views
jackhua
Contributor II

Hello Anira, have you solved this problem? I also encountered the same problem. The i2c cannot mount the sgtl5000, which is also an error reported by the chip ID

0 Kudos

1,320 Views
igorpadykov
NXP Employee
NXP Employee

Hi Anit

 

reason may be  SGTL5000 Silicon Errata - Errata

 

Best regards
igor

0 Kudos

1,310 Views
Anira
Contributor II

Hi Igor,

This is my existing design, which is confusing to me what to, may you elaborate what's the software solution here ?

Anira_1-1629659274984.png

 

 

 

0 Kudos