HI, sorry i didnt answer before, i had some issues with the computer and with petalinux so i wasnt able to test the solution.
Still doesnt work. petalinux-config was ok, i tryied to modify the device-tree like in the example to use the xlnx driver but the linux doesnt register the /dev/i2c module.
This is my current configuration. If i remove "cdns,i2c-r1p10" then when booting i have no /dev/i2c-0.
i2c@e0004000 {
compatible = "cdns,i2c-r1p10", "xlnx,axi-iic-2.0", "xlnx,xps-iic-2.00.a", "xlnx,axi-iic-2.1";
status = "okay";
clocks = <0x1 0x26>;
interrupts = <0x0 0x19 0x4>;
reg = <0xe0004000 0x1000>;
#address-cells = <0x1>;
#size-cells = <0x0>;
clock-frequency = <100000>;
phandle = <0xe>;
};
I added one more compatible according to this driver but still doesnt detect it as xiic-i2c so i dont know if its a driver issue or another issue. Always the i2c-detect -r -y returns "--". In putty the log says "cdns-i2c e0005000.i2c: timeout waiting on completion". Also i added PULLUP for the JC ports but the same.