Hi,
I'm facing some problems trying to work with a i2c camera and linaro on a zedboard.
For first I tested the system with the bare metal OS and everything works smooth thanks to all the support file created in the sdk, then I tried to switch to linaro, but I don't understand how to use the device properly.
Using /dev/mem for a quick test I was able to send a reset signal to the device in order to verify that it was properly mapped, then I tried to add to the device tree this:
=========================================
ps7_i2c_0: ps7-i2c@e0004000 {
clock-frequency = <400000>;
clocks = <&clkc 38>;
compatible = "cdns,i2c-r1p10";
interrupt-parent = <&ps7_scugic_0>;
interrupts = <0 25 4>;
reg = <0xe0004000 0x1000>;
xlnx,has-interrupt = <0x0>;
xlnx,i2c-reset = "";
} ;
=========================================
As far as I have understand of the device tree "cdns,i2c-r1p10" should be the name of the driver associated with the peripheal, is this right?
The result was that under "/sys/devices/..." I now have "ps7-i2c@e0004000", how I'm supposed to used it now?
I have tried googling for it but with not good results... Have you some good guide, advice or tutorial on this specific argument?
Thank you in advance and sorry for the dumb question, but I think that I'm missing some crucial part here!