Browse Source

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>
Yanhong Wang 1 year ago
parent
commit
352b4397d3
2 changed files with 18 additions and 1 deletions
  1. 17 0
      arch/riscv/dts/jh7110-u-boot.dtsi
  2. 1 1
      arch/riscv/dts/starfive_visionfive2.dts

+ 17 - 0
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;
+	};
+};

+ 1 - 1
arch/riscv/dts/starfive_visionfive2.dts

@@ -19,7 +19,7 @@
 		ethernet1=&gmac1;
 		mmc0=&sdio0;
 		mmc1=&sdio1;
-		i2c5 = &i2c5;
+		i2c0 = &i2c5;
 	};
 
 	chosen {