sgtl5000 failed to mount on i2c :error reading chip id -5

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

sgtl5000 failed to mount on i2c :error reading chip id -5

Jump to solution
854 Views
jackhua
Contributor II

I attempted to load sgtl5000 on i2c4 but failed, but the i2c bus is working normally. What is the general reason for this error

 

[ 5.294201] sgtl5000 4-000a: Error reading chip id -5
[ 5.301170] sgtl5000: probe of 4-000a failed with error -5
[ 5.315547] ioremap_prot(): 0x98600000 -> 0xffffffc80028d000
[ 5.324588] id:28->4352
[ 5.327562] id:28->12544
[ 5.330945] aic-dma 91000000.dma-controller: private_candidate: dma0chan0 busy
[ 5.331155] aic-dma 91000000.dma-controller: private_candidate: dma0chan1 busy
[ 5.331772] aic-dma 91000000.dma-controller: private_candidate: dma0chan0 busy
[ 5.331896] aic-dma 91000000.dma-controller: private_candidate: dma0chan1 busy
[ 5.332008] aic-dma 91000000.dma-controller: private_candidate: dma0chan2 busy
[ 5.338228] aic_sgtl5000-audio soundCard: Sound card register failed -517
[ 5.647763] aic_sgtl5000-audio soundCard: Sound card register failed -517
[ 6.008324] aic_sgtl5000-audio soundCard: Sound card register failed -517
[ 6.044257] clk: Disabling unused clocks
[ 6.050652] ALSA device list:
[ 6.054286] No soundcards found.

 

this is my dts:

&i2c4 {
status = "okay";
sgtl5000: sgtl5000@a {
compatible = "fsl,sgtl5000";
clocks = <&cmu CLK_I2S0>;
reg = <0x0a>;
};
};

Tags (4)
0 Kudos
Reply
1 Solution
825 Views
jackhua
Contributor II

This issue has been resolved now because we did not notice that SGTL5000 requires 8 sysmclks to communicate before establishing i2c communication

View solution in original post

0 Kudos
Reply
3 Replies
832 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @jackhua,

I hope you are doing well.

Can you please mention which i.MX Processor is interfaced with sgtl5000?

Please also share the full device tree for further debugging.

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply
826 Views
jackhua
Contributor II

This issue has been resolved now because we did not notice that SGTL5000 requires 8 sysmclks to communicate before establishing i2c communication

0 Kudos
Reply
851 Views
jackhua
Contributor II
 
0 Kudos
Reply