I'am trying to ad I2C to xillinux so I follow the tuto find here http://www.arbot.cz/post/2012/11/14/PS-I2C-in-Xillinux.aspx and posted by Vatu.I'm blocked when I have to modify my dts file because this error happen :
$dtc -I dts -O dtb -o devicetree.dts devicetree.dtb
DTC: dts->dtb on file "devicetree.dtb"
devicetree.dtb:1 syntax error
FATAL ERROR: Unable to parse input tree
I didn't understand why this error happens ...
So can I take the dts give with ZedBoard_OOB_Design and just add it
i2c0: i2c @ e0004000
compatible = "xlnx, PS7-i2c-1.00.a";
reg = <0x1000 0xE0004000>;
interrupts = <0 25 0>;
interrupt-parent = <1>;
bus-id = <0>;
input-clk = <111111111>;
i2c-clk = <100000>;
# address-cells = <1>;
# size-cells = <0>;
Or this dts file was different of xillinux dts file ?
Did someone already get this error and know how to fix it ?
thank you for your help