ls1021a-iot ST eeprom

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

ls1021a-iot ST eeprom

617 Views
williamanderson
Contributor III

Hello,

I am using the factory kernel and .dtb on the ls1021a-iot board and I am unable to access the ST 64KB eeprom from  i2c interface.

I see DTS entries on i2c0 but the ST device and address 51H are not listed. 

based on what i read in the driver documentation I added

a child to the i2c0 node for the eeprom and regenerated the DTB.

eeprom@51{

    compatability="st,24512";

    reg=<0x51>;

    pagesize=128;

};

But this did not help.  I get an error returned when when I try and read the device.

but i2cdetect seems to see it,

eval1:/home/wanderson# i2cdetect -r 0

WARNING! This program can confuse your I2C bus, cause data loss and worse!

I will probe file /dev/i2c-0 using read byte commands.

I will probe address range 0x03-0x77.

Continue? [Y/n] y

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:          -- -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- --

20: -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- --

30: -- -- -- -- -- 35 -- -- -- 39 -- -- -- 3d -- --

40: -- -- -- -- UU UU -- -- 48 -- -- -- UU -- -- --

50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: 60 -- -- -- -- -- -- -- -- 69 -- -- -- -- -- --

70: -- -- -- -- -- -- -- --                        

Any suggestions

Labels (1)
Tags (1)
0 Kudos
Reply
0 Replies