Clearfog base cn9130 : read tlv eeprom info into Linux

Hy,

I need to get some informations stored into the eeprom tlv

If i well understand the dts, the eeprom is on the I2C bus 0 address 0x53

When i tried to access with i2c command, it returns the device is busy.

# i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- --
50: -- -- -- UU -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- 64 -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
#
# i2cdump -y 0 0x53
No size specified (using byte-data access)
Error: Could not set address to 0x53: Device or resource busy
# i2cget -y 0 0x53 0x0
Error: Could not set address to 0x53: Device or resource busy

is it normal?

Thanks by advance :slight_smile:

Yes this is normal. It is because the device is bound to the kernel eeprom driver. You can access the eeprom through the standard sysfs interface exposed by the kernel.