Hi Ti,
We are using Linux RT SDK 07.01.00.18 and tried to access EEPROM via i2c command in u-boot.
However, we always got below error:
Hit any key to stop autoboot: 0
=>
=>
=> i2c probe
Valid chip addresses: 60
=> i2c bus
Bus 0: i2c@42120000 (active 0)
60: generic_60, offset len 1, flags 0
Bus 1: i2c@40b00000
Bus 2: i2c@2000000
50: eeprom@50, offset len 1, flags 0
Bus 3: i2c@2010000
Bus 4: i2c@2020000
Bus 5: i2c@2030000
=> i2c bus 2
Bus 2: i2c@2000000 (active 2)
50: eeprom@50, offset len 1, flags 0
=> i2c md 0x50 0 10
i2c_write: error waiting for data ACK (status=0x116)
Error reading the chip: -121
=> i2c md 0x50 0 10
i2c_write: error waiting for data ACK (status=0x116)
Error reading the chip: -121
Below are our dts setting in k3-am654-base-board.dts.
&main_i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&main_i2c0_pins_default>;
clock-frequency = <400000>;
u-boot,dm-spl;
eeprom: eeprom@50 {
compatible = "atmel,24c16a";
reg = <0x50>;
pagesize = <16>;
u-boot,dm-spl;
};
};
And we also enable CONFIG_I2C_EEPROM=y in am65x_evm_a53_defconfig.
Is there any setting or config lost?
Thanks.
Eric