Read EEPROM time out

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
3,310件の閲覧回数
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!

ラベル(6)
0 件の賞賛
返信
1 解決策
2,817件の閲覧回数
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,817件の閲覧回数
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,818件の閲覧回数
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 件の賞賛
返信