[PATCH 2/3] riscv: dts: spacemit: add 24c02 eeprom on BPI-F3
Aurelien Jarno
aurelien at aurel32.net
Tue Sep 23 12:38:02 PDT 2025
Hi Troy,
On 2025-09-23 09:42, Troy Mitchell wrote:
> On Mon, Sep 22, 2025 at 06:49:35AM +0200, Aurelien Jarno wrote:
> > On 2025-09-22 11:21, Yixun Lan wrote:
> > It seems to only contains board infos (mac addresses), but if there are
> > other use cases, that can indeed be dropped.
> Then you can split the EEPROM into different parts.
> Each part can be described as an individual nvmem cell in the device tree.
> Some of them can be marked as read-only, while others remain writable.
>
> Documentation/devicetree/bindings/eeprom/at24.yaml +15:
> ```
> - $ref: /schemas/nvmem/nvmem-deprecated-cells.yaml
> ```
As pointed by Vivian the best for that is to use "onie,tlv-layout". I'll
do that in the V2.
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien at aurel32.net http://aurel32.net
More information about the linux-riscv
mailing list