Skip to contentSkip to conversation

board: ti: CAT24C256WI-GT3 require min. 5ms delay (tWR) between write/read

PATCH In review Marian Cingel 2 participants 2 messages Nov 9, 2025 – Dec 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: ti: CAT24C256WI-GT3 require min. 5ms delay (tWR) between write/read

Otherwise the custom-cape eeprom (at adress 57) reports NACK which results into "i2c_write: error waiting for data ACK (status=0x116)"
and terminates further scanning.

---
 board/ti/common/cape_detect.c | 3 +++
 1 file changed, 3 insertions(+)
board/ti/common/cape_detect.c +3 -0
index 0bd4a38..88fa6ae 100644
@@ -9,6 +9,7 @@
 #include <i2c.h>
 #include <extension_board.h>
 #include <vsprintf.h>
+#include <linux/delay.h>
 
 #include "cape_detect.h"
 
@@ -43,6 +44,8 @@ static int ti_extension_board_scan(struct udevice *dev,
 
 		/* Move the read cursor to the beginning of the EEPROM */
 		dm_i2c_write(dev, 0, &cursor, 1);
+		/* Need 5ms (tWR) to complete internal write */
+		mdelay(6);
 		ret = dm_i2c_read(dev, 0, (uint8_t *)&eeprom_header,
 				  sizeof(struct am335x_cape_eeprom_id));
 		if (ret) {
Signature · 1 line
2.7.4
#1 lore raw
Quoted 5 lines · Marian Cingel

Otherwise the custom-cape eeprom (at adress 57) reports NACK which results into "i2c_write: error waiting for data ACK (status=0x116)"
and terminates further scanning.

Applied to u-boot/next, thanks!

[1/1] board: ti: CAT24C256WI-GT3 require min. 5ms delay (tWR) between write/read

      commit: 1e8eff6d7a9ad2c605185e5b3d8c22ccd26733dc
Signature · 1 line
Tom