Read EEPROM time out

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

Read EEPROM time out

跳至解决方案
3,314 次查看
wangtsungli
Contributor IV

Hi Community,

I'm working on i.MX6 sabre-SD Quad self-designed platform and use yocto 2.0 to build my image.

According to my hardware designed, I use ATMEL series AT24C16  as my EEPROM.

Below is my DTSI settings.

&i2c1 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";

sgtl5000: sgtl5000@0a {
compatible = "fsl,sgtl5000";
reg = <0x0a>;
clocks = <&clks IMX6QDL_CLK_CKO>;/*201*/
VDDA-supply = <&reg_3p3v>;
VDDIO-supply = <&reg_3p3v>;
};

at24@50 {
compatible = "at24,24c16";
pagesize = <16>;
reg = <0x50>;
};

};

I try to cat content of EEPROM with below command.

cat /sys/devices/soc0/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0050/eeprom

However, I will get below error.

Connection timed out

Why it will time out?

How can I fix this problem?

Did my DTSI setting right?

Thanks in advance!

0 项奖励
回复
1 解答
2,821 次查看
wangtsungli
Contributor IV

Thanks for the help.

I had found that our hardware designed was wrong.

So I can't read or write EEPROM.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,821 次查看
igorpadykov
NXP Employee
NXP Employee

Hi tsung

one can check i2c signals with oscilloscope and try to debug it

in probe function of eeprom driver. May be useful to check similar thread:

iMX6 - EEPROM(AT2432) Accessing From user space 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,822 次查看
wangtsungli
Contributor IV

Thanks for the help.

I had found that our hardware designed was wrong.

So I can't read or write EEPROM.

0 项奖励
回复