From: E Shattow <e@freeshell.de>
To: u-boot@lists.u-boot-project.org,
Sumit Garg <sumit.garg@kernel.org>, Yixun Lan <dlan@kernel.org>,
Tom Rini <trini@konsulko.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Subject: [PATCH 2/4] riscv: dts: spacemit: add 24c02 eeprom on K3 Pico-ITX board
Date: Sun, 18 Oct 2026 18:40:19 -0700 [thread overview]
Message-ID: <20261019014044.698294-3-e@freeshell.de> (raw)
In-Reply-To: <20261019014044.698294-1-e@freeshell.de>
From: Aurelien Jarno <aurelien@aurel32.net>
The K3 Pico-ITX board includes a 24c02 eeprom, that stores the product
name, the part name, the MAC address of the network interfaces and the
board's serial number. These values are also exposed via an
onie,tlv-layout nvmem layout.
The eeprom is marked as read-only since its contents are not supposed to
be modified.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://patch.msgid.link/20260623204431.498700-4-aurelien@aurel32.net
Signed-off-by: Yixun Lan <dlan@kernel.org>
[ upstream commit: 930491838c55c41317da9f263e3e9b013cb9aaa8 ]
(cherry picked from commit 3146b373c9699a456fa58b56a23d1127096cbc86)
---
.../src/riscv/spacemit/k3-pico-itx.dts | 30 +++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts b/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
index dde6028a5ef3..143bf6f41260 100644
--- a/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
+++ b/dts/upstream/src/riscv/spacemit/k3-pico-itx.dts
@@ -47,6 +47,36 @@
pinctrl-names = "default";
pinctrl-0 = <&i2c2_1_cfg>;
status = "okay";
+
+ eeprom@50 {
+ compatible = "atmel,24c02";
+ reg = <0x50>;
+ pagesize = <8>;
+ read-only;
+ size = <256>;
+ status = "okay";
+
+ nvmem-layout {
+ compatible = "onie,tlv-layout";
+
+ mac-address {
+ #nvmem-cell-cells = <1>;
+ };
+
+ num-macs {
+ };
+
+ part-number {
+ };
+
+ product-name {
+ };
+
+ serial-number {
+ };
+
+ };
+ };
};
&i2c8 {
--
2.53.0
next prev parent reply other threads:[~2026-10-19 1:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-19 1:40 [PATCH 0/4] Enable eeprom tlv command for SpacemiT K3 in main app E Shattow
2026-10-19 1:40 ` [PATCH 1/4] riscv: dts: spacemit: enable the i2c2 adapter on K3 Pico-ITX board E Shattow
2026-10-20 17:39 ` E Shattow
2026-10-19 1:40 ` E Shattow [this message]
2026-10-20 17:39 ` [PATCH 2/4] riscv: dts: spacemit: add 24c02 eeprom " E Shattow
2026-10-19 1:40 ` [PATCH 3/4] riscv: dts: spacemit: add i2c aliases " E Shattow
2026-10-20 17:40 ` E Shattow
2026-10-19 1:40 ` [PATCH 4/4] configs: spacemit: k3: enable eeprom tlv command in main app E Shattow
2026-10-20 17:41 ` E Shattow
2026-10-21 6:28 ` Yixun Lan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261019014044.698294-3-e@freeshell.de \
--to=e@freeshell.de \
--cc=aurelien@aurel32.net \
--cc=dlan@kernel.org \
--cc=sumit.garg@kernel.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox