Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- Could you post your dts-entry for the I2C? Maybe you want to add a i2c-sda-hold-time... --- Quote End --- Thanks for the fast response! Here ist the Info from the .dts for all I2C, 0 and 1 are for HPS use and 2 is for FPGA routing 3 inst implemented jet. hps_0_i2c0: i2c@0xffc04000 { compatible = "snps,designware-i2c-15.1", "snps,designware-i2c"; reg = <0xffc04000 0x00000100>; interrupt-parent = <&hps_0_arm_gic_0>; interrupts = <0 158 4>; clocks = <&l4_sp_clk>; emptyfifo_hold_master = <1>; /* embeddedsw.dts.params.emptyfifo_hold_master type NUMBER */ status = "okay"; /* embeddedsw.dts.params.status type STRING */ speed-mode = <0>; /* appended from boardinfo */ i2c-sda-falling-time-ns = <5000>; /* appended from boardinfo */ i2c-scl-falling-time-ns = <5000>; /* appended from boardinfo */ }; //end i2c@0xffc04000 (hps_0_i2c0) hps_0_i2c1: i2c@0xffc05000 { compatible = "snps,designware-i2c-15.1", "snps,designware-i2c"; reg = <0xffc05000 0x00000100>; interrupt-parent = <&hps_0_arm_gic_0>; interrupts = <0 159 4>; clocks = <&l4_sp_clk>; emptyfifo_hold_master = <1>; /* embeddedsw.dts.params.emptyfifo_hold_master type NUMBER */ status = "okay"; /* embeddedsw.dts.params.status type STRING */ }; //end i2c@0xffc05000 (hps_0_i2c1) hps_0_i2c2: i2c@0xffc06000 { compatible = "snps,designware-i2c-15.1", "snps,designware-i2c"; reg = <0xffc06000 0x00000100>; interrupt-parent = <&hps_0_arm_gic_0>; interrupts = <0 160 4>; clocks = <&l4_sp_clk>; emptyfifo_hold_master = <1>; /* embeddedsw.dts.params.emptyfifo_hold_master type NUMBER */ status = "okay"; /* embeddedsw.dts.params.status type STRING */ }; //end i2c@0xffc06000 (hps_0_i2c2) hps_0_i2c3: i2c@0xffc07000 { compatible = "snps,designware-i2c-15.1", "snps,designware-i2c"; reg = <0xffc07000 0x00000100>; interrupt-parent = <&hps_0_arm_gic_0>; interrupts = <0 161 4>; clocks = <&l4_sp_clk>; emptyfifo_hold_master = <1>; /* embeddedsw.dts.params.emptyfifo_hold_master type NUMBER */ status = "disabled"; /* embeddedsw.dts.params.status type STRING */ }; //end i2c@0xffc07000 (hps_0_i2c3) I measured the 4 signals coming out of the HPS and the SDA and SCL have 3.3V after the Buffer an the two .oe signals have 0V constantly.