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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
916 次查看
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>;
};
};

标记 (4)
0 项奖励
回复
1 解答
887 次查看
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 项奖励
回复
3 回复数
894 次查看
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 项奖励
回复
888 次查看
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 项奖励
回复
913 次查看
jackhua
Contributor II
 
0 项奖励
回复