Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:c_hardware_i2c [2017/01/19 13:26] odroid [I2C] |
en:c_hardware_i2c [2017/06/20 13:18] brian.kim [How to change the I2C clock speed] |
||
---|---|---|---|
Line 48: | Line 48: | ||
Change the DTB file for i2c-2 (i2c channel #2) | Change the DTB file for i2c-2 (i2c channel #2) | ||
<code> | <code> | ||
- | dtput -t i /media/boot/meson64_odroidc2.dtb /i2c@c11087c0 master_i2c_speed "100000" | + | fdtput -t i /media/boot/meson64_odroidc2.dtb /i2c@c11087c0 master_i2c_speed "100000" |
sync | sync | ||
reboot | reboot | ||
Line 55: | Line 55: | ||
If you want to go back to original 300Khz mode, change "100000" to "300000".\\ | If you want to go back to original 300Khz mode, change "100000" to "300000".\\ | ||
- | **Actual I2C clock speed** (Measured with oscilloscope)\\ | + | **Actual I2C clock speed** (Measured with an oscilloscope)\\ |
In 300Khz mode : 270Khz \\ | In 300Khz mode : 270Khz \\ | ||
In 100Khz mode : 80Khz \\ | In 100Khz mode : 80Khz \\ |