Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: trek123 on December 24, 2019, 09:06:15 PM

Title: Try to add AXI IIC to zynqberry
Post by: trek123 on December 24, 2019, 09:06:15 PM
Hello everyone. I'm trying to add my petalinux project axii_iic ip block. My design is shown in the post and module which is added to device tree is:

/{
   axi_iic_0@41600000 {
      compatible = "xlnx,xps-iic-2.00.a";
      clocks = <&clkc 15>;
      interrupts = < 0 29 4 >;
      reg = < 0x41600000 0x10000 >;
      interrupt-names = "iic2intc_irpt";
      interrupt-parent = <&intc>;
      #size-cells = <0>;
      #address-cells = <1>;
   };
};


I can boot my Zynqberry board succesfully but when I enter the command "dmesg | grep i2c" and result is :

[    0.723518] xiic-i2c 41600000.axi_iic_0: can't request region for resource [mem 0x41600000-0x4160ffff]
[    0.731471] xiic-i2c: probe of 41600000.axi_iic_0 failed with error -16

I search on the internet for days but I cannot figure out what is the problem.
Title: Re: Try to add AXI IIC to zynqberry
Post by: JH on January 06, 2020, 09:46:17 AM
Hi,
did you only add device tree or did you reload also new HDF with your new address assignment?
As I know I2C device  tree entry should be add automatically with HDF import, so it's normally not needed manually.
The address is correct?

br
John