码迷,mamicode.com
首页 > 其他好文 > 详细

---rk平台读取i2c总线的速率

时间:2019-05-18 09:55:38      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:ref   ase   技术   push   with   copy   uil   scope   hid   

 

 

‘t have scope to measure clock rate, but you still can give it a try. 技术图片 
---------------------------------------------------------------------------------------------------
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

---rk平台读取i2c总线的速率

标签:ref   ase   技术   push   with   copy   uil   scope   hid   

原文地址:https://www.cnblogs.com/bzhao/p/10884453.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!