From 2598a596696bfa3ee53ccd641ced6b8bef01282a Mon Sep 17 00:00:00 2001 From: "Huan.Feng" Date: Mon, 13 Dec 2021 13:45:00 +0800 Subject: [PATCH] modified dts file for jh7110 i2c --- arch/riscv/boot/dts/starfive/starfive_jh7110.dts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/starfive/starfive_jh7110.dts b/arch/riscv/boot/dts/starfive/starfive_jh7110.dts index 12e1fa4..81d1311 100755 --- a/arch/riscv/boot/dts/starfive/starfive_jh7110.dts +++ b/arch/riscv/boot/dts/starfive/starfive_jh7110.dts @@ -352,6 +352,22 @@ status = "okay"; }; + i2c0: i2c@10030000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,designware-i2c"; + reg = <0x0 0x10030000 0x0 0x10000>; + interrupt-parent = <&plic>; + interrupts = <35>; + /*clocks = <&hfclk>; */ + 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"; + }; + /*emmc*/ sdio0:sdio0@16010000{ compatible = "snps,dw-mshc"; @@ -498,7 +514,7 @@ clocks = <&ahb1clk>; clock-names = "apb_pclk"; dmas = <&dma 14 1>, <&dma 15 1>; - dma-names = "rx","tx"; + dma-names = "rx","tx"; #address-cells = <1>; #size-cells = <0>; arm,primecell-periphid = <0x00041022>; -- 2.7.4