This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to change I2C speed
#2
Tongue 
Hi chobio

i don't have scope to measure clock rate, but you still can give it a try. Tongue
---------------------------------------------------------------------------------------------------
please follow up https://tinkerboarding.co.uk/wiki/index....are#Kernel to download kernel of Tinkerboard.
and push my attachment(you can modify frequency as you want) to kernel/arch/arm/boot/dts/overlays/

then, you can start to build kernel. after building, copy kernel/arch/arm/boot/dts/overlays/i2c-clock-freq.dtbo to /boot/overlays/ of tinkerboard.
and modify /boot/hw_intf.conf as below

intf:i2c1=on
intf:i2c4=on
intf:dtoverlay=i2c-clock-freq

after rebooting, check with "xxd /proc/device-tree/i2c@ff650000/clock-frequency"  

P.S. mapping table as below:
i2c@ff650000 ->I2C0
i2c@ff140000 ->I2C1
i2c@ff660000 ->I2C2
i2c@ff150000 ->I2C3
i2c@ff160000 ->I2C4
i2c@ff170000 ->I2C5


Attached Files
.gz   i2c-clock-freq-overlay.dts.tar.gz (Size: 319 bytes / Downloads: 26)

Reply


Messages In This Thread
How to change I2C speed - by chobio - 03-02-2018, 06:52 AM
RE: How to change I2C speed - by scorpiochang - 03-02-2018, 10:30 AM
- - by ThomasNex - 12-06-2020, 05:47 PM
RE: How to change I2C speed - by chobio - 03-07-2018, 02:31 PM
RE: How to change I2C speed - by scorpiochang - 03-07-2018, 03:39 PM
RE: How to change I2C speed - by u26 - 03-08-2018, 08:31 AM
RE: How to change I2C speed - by scorpiochang - 03-08-2018, 09:02 AM
RE: How to change I2C speed - by u26 - 03-08-2018, 09:08 AM
RE: How to change I2C speed - by scorpiochang - 03-08-2018, 10:18 AM
RE: How to change I2C speed - by chobio - 03-08-2018, 09:00 PM
RE: How to change I2C speed - by scorpiochang - 03-09-2018, 06:20 AM
RE: How to change I2C speed - by u26 - 03-09-2018, 11:10 AM
RE: How to change I2C speed - by 1SeeSee1 - 03-09-2018, 12:06 PM
RE: How to change I2C speed - by u26 - 03-09-2018, 12:52 PM
RE: How to change I2C speed - by simkard - 12-15-2019, 10:45 AM
RE: How to change I2C speed - by Userpc1010 - 04-17-2020, 12:34 AM
RE: How to change I2C speed - by Userpc1010 - 10-30-2020, 01:55 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)