mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
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:
parent
259f5639b4
commit
b1d7f3e7da
|
|
@ -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>;
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user