riscv: dts: spacemit: k3-com260: add eeprom on i2c2

Enable i2c2 on the K3 CoM260 compute module and use it for a 24c02
eeprom. This eeprom stores the product name, a MAC address, and a serial
number.

Signed-off-by: Jennifer Berringer <jberring@redhat.com>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://patch.msgid.link/20260722202848.1817988-2-jberring@redhat.com
Signed-off-by: Yixun Lan <dlan@kernel.org>
This commit is contained in:
Jennifer Berringer 2026-07-22 16:28:47 -04:00 committed by Yixun Lan
parent 324c9c1083
commit 259f5639b4

View File

@ -26,6 +26,38 @@ reg_5v_sys: regulator-5v-sys {
};
};
&i2c2 {
pinctrl-names = "default";
pinctrl-0 = <&i2c2_1_cfg>;
status = "okay";
eeprom@50 {
compatible = "atmel,24c02";
pagesize = <8>;
reg = <0x50>;
read-only;
size = <256>;
status = "okay";
nvmem-layout {
compatible = "onie,tlv-layout";
mac-address {
#nvmem-cell-cells = <1>;
};
num-macs {
};
product-name {
};
serial-number {
};
};
};
};
&i2c8 {
pinctrl-names = "default";
pinctrl-0 = <&i2c8_cfg>;