SGTL5000 SGTL5000_CHIP_ID read fail

cancel
Showing results for 
Search instead for 
Did you mean: 

SGTL5000 SGTL5000_CHIP_ID read fail

237 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
4 Replies

77 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

209 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

229 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Anit

 

reason may be  SGTL5000 Silicon Errata - Errata

 

Best regards
igor

0 Kudos

219 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