Skip to content

Commit 7715621

Browse files
aurel32Yixun Lan
authored andcommitted
riscv: dts: spacemit: add 24c04 eeprom on Milk-V Jupiter
The Milk-V Jupiter board includes a 24c04 eeprom on the i2c2 bus. The eeprom contains an ONIE TLV table, which on the board I tested only provides a product-name entry. Expose it 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: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Yixun Lan <dlan@kernel.org> Link: https://lore.kernel.org/r/20260326183745.1370642-3-aurelien@aurel32.net Signed-off-by: Yixun Lan <dlan@kernel.org>
1 parent 334e64a commit 7715621

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,28 @@
108108
status = "okay";
109109
};
110110

111+
&i2c2 {
112+
pinctrl-0 = <&i2c2_0_cfg>;
113+
pinctrl-names = "default";
114+
status = "okay";
115+
116+
eeprom@50 {
117+
compatible = "atmel,24c04";
118+
reg = <0x50>;
119+
vcc-supply = <&buck3_1v8>; /* EEPROM_VCC18 */
120+
pagesize = <16>;
121+
read-only;
122+
size = <512>;
123+
124+
nvmem-layout {
125+
compatible = "onie,tlv-layout";
126+
127+
product-name {
128+
};
129+
};
130+
};
131+
};
132+
111133
&i2c8 {
112134
pinctrl-0 = <&i2c8_cfg>;
113135
pinctrl-names = "default";

0 commit comments

Comments
 (0)