[PATCH] riscv: dts: spacemit: k1: fix the EEPROM page size
Aurelien Jarno
aurelien at aurel32.net
Mon Nov 23 13:58:17 PST 2026
Hi,
On 2026-11-23 12:41, Zixian Zeng wrote:
> The bananapi-f3 carries an AT24C02 compatible EEPROM GT24C02B [1]:
> 256 bytes with an 8-byte write page, which can be found in schematic[2].
> The device tree declares pagesize = <16>, which does not match the
> eeprom chip datasheet which declares pagesize 8 bytes.
Oops, I am not sure how I got that wrong. Sorry about that.
> EEPROM pagesize of k1-bananapi-cm6-io[3] and k1-orangepi-rv2[4] changed
> together, based on the chip model shown in the schematic diagram.
The k1-milkv-jupiter board is also affected with the same issue, despite
using a slightly different EEPROM (24C04).
> The TLV EEPROM on this board holds the base MAC address and the MAC count,
> so a corrupted write leaves both Ethernet ports without a MAC address,
> which is how this was found.
>
> Link: https://www.giantec-semi.com/uploads/20230414/GT24C02B.pdf [1]
> Link: https://drive.google.com/file/d/19iLJ5xnCB_oK8VeQjkPGjzAn39WYyylv/view?usp=sharing [2]
> Link: https://pan.baidu.com/s/13UTY_qM4gGuVxsZ9U7_Xpw?pwd=8888 [3]
> Link: https://drive.google.com/drive/folders/1pcI_U0C3VJKTCg8A1zj08CwNbohnONSR?usp=sharing [4]
> Fixes: bfce75e2345f ("riscv: dts: spacemit: add 24c02 eeprom on BPI-F3")
> Fixes: 46a8c01700ac ("riscv: dts: spacemit: k1: Add Banana Pi BPI-CM6 IO board")
> Fixes: ac436e6879f5 ("riscv: dts: spacemit: enable onboard eeprom for OrangePi")
> Signed-off-by: Zixian Zeng <sycamoremoon376 at gmail.com>
Thanks for fixing that.
Reviewed-by: Aurelien Jarno <aurelien at aurel32.net>
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien at aurel32.net http://aurel32.net
More information about the linux-riscv
mailing list