How Change I2C clock on Cyclone V HPS , Terasic DE10-Nano
We use Terasic DE10-NANO with Linux Console (kernel 4.5), copied from DE10-Nano Kit .
It works fine.
We recently started using LTC I2C interface for our I2C device with no success.
After some investigations we found that CLOCK of LTC I2C is 400 KHz (fast mode), but our I2C device works with CLOCK 100 KHz (standard mode). This is the problem.
How we can change CLOCK of LTC I2C from 400 KHz to 100 KHz?
We found that we need to configure some HPS registers to enable the standard mode.
Here is the Cyclone V HPS Register Address Map of I2C: HPS I2C Config Register
To change the register value we need to modify Linux device tree and insert this change into Preloader or Uboot sources and that prepare image. I not speciqalist in Linux configuration. Please help to do that.
Hi Tiwari
Thank you for the help
Link that you send me, HOWTO Create a Devicetree for Cyclone V SoC, is good, but our team found a way to do that much more simpler and faster. I described all the details in attached Word document and also other files for reference.
Note: attatched .dts file ise renamed to .dts.txt to be attached here
Bast Regards,
Yakov