Read EEPROM time out

cancel
Showing results for 
Search instead for 
Did you mean: 

Read EEPROM time out

Jump to solution
723 Views
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 Kudos
1 Solution
230 Views
wangtsungli
Contributor IV

Thanks for the help.

I had found that our hardware designed was wrong.

So I can't read or write EEPROM.

View solution in original post

0 Kudos
2 Replies
230 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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 Kudos
231 Views
wangtsungli
Contributor IV

Thanks for the help.

I had found that our hardware designed was wrong.

So I can't read or write EEPROM.

View solution in original post

0 Kudos