Hi,
My custom board is having EEPROM through SPI interface instead of I2C.
Is there any DTS example I can refer to support EEPROM through SPI?
How SPI eeprom will be access from uboot? through sf or eeprom command?
Khor
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
My custom board is having EEPROM through SPI interface instead of I2C.
Is there any DTS example I can refer to support EEPROM through SPI?
How SPI eeprom will be access from uboot? through sf or eeprom command?
Khor
Based on the link, I should use the SF command since I am using u-boot-2016.05 which later than 20081.5 .
This page documents the eeprom interface which is used with 2008R1.5 / u-boot-1.1.6 and older. If you're using a newer release, please see the sf page: serial-flash
I looked into SF and it looked like SF maintaining a spi_flash_params table which only support device that support Jedec ID. However my SPI eeprom doesn't have Jedec ID, it only support basic command such as WREN (Write Enable), WRDI (Write Disable) , RDSR (Read Status Register), WRSR (Write Status Register), READ and WRITE.
Wonder I should use SF command? or there is better way I can access my SPI Eeprom from U-boot? Thanks.
Khor