Page 1 of 1

New /dev/*** -> 2nd i2c Port - how to do it?

PostPosted: Sat Sep 24, 2016 5:30 am
by daniel_dbb
Hello,

I am new in Parallella world and would like to install additional, 2nd, i2c Port next to existing Port 0.
Does someone have a link or procedure what to first and how?
I started with i2c tools, FGPA and MIO configuration but I am not sure if this is the right start. Then I tried to rewrite devicetree ...
It would be nie if I (we) could get Example which could be used also for integrating other devices to Linux? :)

Thanks for any help!

Kind regards,
Daniel

Re: New /dev/*** -> 2nd i2c Port - how to do it?

PostPosted: Sun Sep 25, 2016 11:16 am
by sebraa
You need to create a I2C controller, and synthesize it for the FPGA (creating a new bitstream). Then, you need to change the device-tree to tell Linux about it, so that it can load the appropriate device driver.

There are some examples of how to create new devices within the FPGA and use them from Linux, but not for I2C (and, as far as I am aware, without support for the Epiphany).