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

Posted bzhao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了---rk平台读取i2c总线的速率相关的知识,希望对你有一定的参考价值。

 

 

‘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/[email protected]/clock-frequency"   

P.S. mapping table as below:
[email protected] ->I2C0
[email protected] ->I2C1
[email protected] ->I2C2
[email protected] ->I2C3
[email protected] ->I2C4
[email protected] ->I2C5

以上是关于---rk平台读取i2c总线的速率的主要内容,如果未能解决你的问题,请参考以下文章

RK3399平台开发系列讲解(I2C子系统)4.50I2C物理总线详解

I2C总线出错

I2C通讯协议

linux驱动之i2c总线驱动调用分析基于linux4.4

SylixOS iMX6平台I2C总线驱动

SylixOS 基于STM32平台的GPIO模仿I2C总线的驱动开发流程