Hi,
I want to use the PS I2C_0 to communicate through the PMOD interface with Aptina MT9V034 image sensor, using linux. I created a design where I2C_0 is mapped to MIO10/11, I exported the design to SDK, and created a FSBL.
In my test, I exploited the linux image e DTB file provided in zedboard_CTT_v14.4_130322.zip.
I decompiled the DTB file and I added i2c0 in to DTS:
i2c0:i2c@e0004000 {
compatible = "xlnx,PS7-i2c-1.00.a";
reg = <0xE0004000 0x1000>;
interrupts = <0 25 0>;
interrupt-parent = <1>;
bus-id = <0>;
input-clk = <50000000>;
i2c-clk = <100000>;
#address-cells = <1>;
#size-cells = <0>;
};
Then I recompiled it in to DTB file and booted linux, but in /dev/i2c there was no device. The CONFIG_I2C_CHARDEV linux option is enabled.
I tried to created i2c0 device by
mknod /dev/i2c-0 c 89 0
but it don't work.
Any ideas?
Thanks in advance!