eeprom: at24: add ST M24256E Additional Write lockable page support
authorMarek Vasut <marex@denx.de>
Fri, 8 Nov 2024 18:52:26 +0000 (19:52 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 4 Dec 2024 20:01:58 +0000 (14:01 -0600)
commitdcee0ed33b979567c026010d46abcc2da8fb2492
treeed395e8493ec0ca3becd0b5d56ad6864fa9232e0
parentce8b8ce8dc302b7e683223719811713c4e025dd0
eeprom: at24: add ST M24256E Additional Write lockable page support

The ST M24256E behaves as a regular M24C256, except for the E variant
which uses up another I2C address for Additional Write lockable page.
This page is 64 Bytes long and can contain additional data. Add entry
for it, so users can describe that page in DT. Note that users still
have to describe the main M24C256 area separately as that is on separate
I2C address from this page.

Unlike M24C32-D and M24C64-D, this part is specifically ST and does not
have any comparable M24* counterparts from other vendors, hence the st,
vendor prefix. Furthermore, the part name is M24256E without C between
the 24 and 256, this is not a typo. Finally, there is M24C256-D part,
which does contain 32 Bytes long Additional Write lockable page, which
is a different part and not supported by this patch.

Datasheet: https://www.st.com/resource/en/datasheet/m24256e-f.pdf

From Linux kernel commit:
339cb28b9ee6 ("eeprom: at24: add ST M24256E Additional Write lockable page support")

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/misc/i2c_eeprom.c