News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

Try to add AXI IIC to zynqberry

Started by trek123, December 24, 2019, 09:06:15 PM

Previous topic - Next topic

trek123

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.

JH

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