[PATCH] riscv: dts: spacemit: k1: fix the EEPROM page size

Aurelien Jarno aurelien at aurel32.net
Tue Nov 24 10:15:38 PST 2026


Hi Zixian,

On 2026-11-24 11:31, Zixian Zeng wrote:
> Hi Aurelien,
> 
> On 2026/11/24 5:58, Aurelien Jarno wrote:
> > 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.

The question of the page size has been raised in the initial review [1], 
and it seems that the GT24C02 has a 16-byte page size, while the 
GT24C02B [2] has a 8-byte page size. The BPI-F3 schematics confirms that 
the B version is used. Sorry about the mistake.

> > > 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 GT24C04A EEPROM used on k1-milkv-jupiter board doesn't seem to have
> the same issue, which you can find "Page Size: 16 bytes" in datasheet:
> https://www.giantec-semi.com/uploads/20220929/GT24C04A.pdf

Indeed you are correct, and I confirm that this is the exact version 
used on the schematics. Therefore there is no need to extend your patch, 
it can be merged that way.

> But I don't have the board, simple test would be appreciated. Perhaps I
> should include test steps in the commit message for the next revision.

Unfortunately the board has the EEPROM write protection pin connected to 
VCC, which means the write protection is enabled. Therefore testing is 
not so easy.

Regards
Aurelien

[1] https://lore.kernel.org/linux-riscv/aNLzRJcKCYOngc7z@aurel32.net/ 
[2] https://www.giantec-semi.com/juchen1123/uploads/pdf/GT24C02_DS_Au.pdf

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien at aurel32.net                     http://aurel32.net



More information about the linux-riscv mailing list