summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYanhong Wang <yanhong.wang@linux.starfivetech.com>2022-10-13 04:57:01 +0300
committerJianlong Huang <jianlong.huang@starfivetech.com>2022-11-03 11:31:42 +0300
commit352b4397d389e41f1d170c43a9b9139a8fbb79f2 (patch)
tree50c1c62d4d1c0d3dc68e0d290b1e9c70f5386435
parentd204f230ac075b82e4d59271369245b5c5e58ecf (diff)
downloadu-boot-352b4397d389e41f1d170c43a9b9139a8fbb79f2.tar.xz
riscv: dts: starfive: add i2c5 node in SPL
Add i2c5 device configuration to device tree which used by SPL. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
-rw-r--r--arch/riscv/dts/jh7110-u-boot.dtsi17
-rw-r--r--arch/riscv/dts/starfive_visionfive2.dts2
2 files changed, 18 insertions, 1 deletions
diff --git a/arch/riscv/dts/jh7110-u-boot.dtsi b/arch/riscv/dts/jh7110-u-boot.dtsi
index 21a14bdc4d..926b063923 100644
--- a/arch/riscv/dts/jh7110-u-boot.dtsi
+++ b/arch/riscv/dts/jh7110-u-boot.dtsi
@@ -119,3 +119,20 @@
&gmac0_rmii_refin {
u-boot,dm-spl;
};
+
+&i2c5 {
+ clock-frequency = <100000>;
+ i2c-sda-hold-time-ns = <300>;
+ i2c-sda-falling-time-ns = <3000>;
+ i2c-scl-falling-time-ns = <3000>;
+ auto_calc_scl_lhcnt;
+ status = "okay";
+ u-boot,dm-spl;
+
+ eeprom@50 {
+ compatible = "atmel,24c04";
+ reg = <0x50>;
+ pagesize = <16>;
+ u-boot,dm-spl;
+ };
+}; \ No newline at end of file
diff --git a/arch/riscv/dts/starfive_visionfive2.dts b/arch/riscv/dts/starfive_visionfive2.dts
index ae09d324e0..e8ec6dafa1 100644
--- a/arch/riscv/dts/starfive_visionfive2.dts
+++ b/arch/riscv/dts/starfive_visionfive2.dts
@@ -19,7 +19,7 @@
ethernet1=&gmac1;
mmc0=&sdio0;
mmc1=&sdio1;
- i2c5 = &i2c5;
+ i2c0 = &i2c5;
};
chosen {