riscv: dts: spacemit: k3-com260-ifx: add eeprom on i2c1

Enable i2c1 for k3-com260-ifx and use it for a 24c02 eeprom. This
eeprom, unlike the one connected to i2c2, is part of the carrier board.
Some boards do not have any data programmed on this eeprom from factory.

Signed-off-by: Jennifer Berringer <jberring@redhat.com>
Reviewed-by: Yixun Lan <dlan@kernel.org>
Link: https://patch.msgid.link/20260722202848.1817988-3-jberring@redhat.com
Signed-off-by: Yixun Lan <dlan@kernel.org>
This commit is contained in:
Jennifer Berringer 2026-07-22 16:28:48 -04:00 committed by Yixun Lan
parent 259f5639b4
commit b1d7f3e7da
2 changed files with 27 additions and 0 deletions

View File

@ -20,6 +20,21 @@ chosen {
};
};
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_1_cfg>;
status = "okay";
eeprom@50 {
compatible = "atmel,24c02";
pagesize = <8>;
reg = <0x50>;
read-only;
size = <256>;
status = "okay";
};
};
&sdhci0 {
pinctrl-names = "default","uhs";
pinctrl-0 = <&mmc1_cfg>;

View File

@ -78,6 +78,18 @@ gmac1-phy-0-pins {
};
};
/omit-if-no-ref/
i2c1_1_cfg: i2c1-1-cfg {
i2c1-1-pins {
pinmux = <K3_PADCONF(54, 5)>, /* i2c1 scl */
<K3_PADCONF(55, 5)>; /* i2c1 sda */
bias-pull-up = <1>;
drive-strength = <25>;
power-source = <1800>;
};
};
/omit-if-no-ref/
i2c2_1_cfg: i2c2-1-cfg {
i2c2-1-pins {