Reputation: 11
I am using linux based kits and I have a problem about changing i2c speed. Do you know how to change in linux which has the version 3.4.39
Upvotes: 1
Views: 5620
Reputation: 89
Since you are using ARM, you can define the I2C speed at boot time in the devicetree. I am making some assumptions here (eg. that you are using U-boot as bootloader), but embedded systems tend to look very similar.
Disassemble your devicetree to dts-format (device-tree-source)
Change the i2c-speed parameter (Search for "i2c" and "clock-frequency" clock-frequency = < some_speed_in_HZ >;"
on the next reboot, in the bootloader menu choose my_devicetree.dtb as devicetree-file and it should work.
Upvotes: 1