当前位置:网站首页>Summary of communication mode and detailed explanation of I2C drive
Summary of communication mode and detailed explanation of I2C drive
2022-06-23 08:26:00 【Be good to me】
1. Common mode of communication

2.I2C Bus
2.1 I2C Bus hardware connection

2.2 I2C Software architecture

2.3 I2C Subsystem implementation process
(1)i2c adapter establish i2c client;
(2)i2c adapter Medium i2c client And i2c driver adopt i2c core Complete registration matching ;
(3)i2c driver Transfer the data of the upper application to i2c client;
(4)i2c client adopt i2c adapter Find the corresponding i2c algorithm, And transmit data ;
(5)i2c The controller generates SCL and SDA.
3. I2C Device tree implementation

Where nodes i2c_4 It means that the 4 Group i2c controller ( Each group of controllers has SCL and SDA), Two sets of i2c controller :i2c_4 and i2c_5, among i2c_4 The address for 78b8000,i2c_5 The address for 78b9000.
i2c_4 Represents the adapter node , Its address is 0x78b8000( stay mdm9607 On chip ),wcd9xxx_codec Indicates specific equipment ( It's also a chip ) node , His address is 0x0d( On the device chip ).
3.1 View device nodes
1) stay /sys/firmware/devicetree/base( Shortcut Directory /proc/device-tree) Under the table of contents : Is presented in a directory structure dtb file . The root node corresponds to base Catalog , Each node corresponds to a directory , Each attribute corresponds to a file ;
2) stay /sys/devices/platform Under the table of contents : It shows all the registered platform devices . If there is... Under the equipment of_node, Just to prove this platform_device It is created by passing parameters from the device tree ; If it were not so of_node A link file for , Then it is not created from the device tree file , It may be created during kernel compilation or by installing modules .
3.2 Example
(1) All device trees are in /proc/device-tree Under the table of contents , and i2c Hang on to soc Next , Therefore, in /proc/device-tree /soc The node name can be seen under :
adopt cat compatible You can view the device name attribute :
边栏推荐
- 爬虫框架
- Install a WGet for your win10
- Which one is better for rendering renderings? 2022 latest measured data (IV)
- Commonly used bypass methods for SQL injection -ctf
- kibana 重建index后,如何恢复Visualizations和 Dashboards
- 你有一串代码,但是不支持低版本Go时;判断Go版本号,您值得拥有!
- INT 104_ LEC 06
- 如何评价代码质量
- Regular expression use cases
- Deep learning ----- different methods to implement lenet-5 model
猜你喜欢

PCB电路板特性检查项目都有哪些?

Basic use of check boxes and implementation of select all and invert selection functions

谈谈 @Autowired 的实现原理

Implementation principle and source code analysis of ThreadPoolExecutor thread pool

Tensorboard的使用

走好数据中台最后一公里,为什么说数据服务API是数据中台的标配?

渲染效果图哪家好?2022最新实测(四)

Apache Solr arbitrary file read replication
![[paper notes] catching both gray and black swans: open set supervised analog detection*](/img/52/787b25a9818cfc6a1897af81d41ab2.png)
[paper notes] catching both gray and black swans: open set supervised analog detection*

A record of "from scratch" in college student accounts
随机推荐
usb peripheral 驱动 - debug
81 sentences worth repeating
Set the time zone in ci4 (CodeIgniter 4)
Vulnhub | dc: 4 | [actual combat]
Set interface and set sub implementation classes
transform的结构及用法
Derivation and loading of the trained random forest model
Imperva- method of finding regular match timeout
Odoo project sends information to wechat official account or enterprise wechat
看了5本书,我总结出财富自由的这些理论
After easynvr video is enabled, no video file is generated. How to solve this problem?
You have a string of code, but do not support the lower version of go; Judge the go version number, you deserve it!
A record of "from scratch" in college student accounts
“方脸老师”董宇辉再回应热度下降:把农产品直播做好让农民受益 考虑去支教
Do not put files with garbled names into the CFS of NFS protocol
The rtsp/onvif protocol video platform easynvr startup service reports an error "service not found". How to solve it?
训练后的随机森林模型导出和加载
Generate code 39 extension code in batch through Excel file
After reading five books, I summarized these theories of wealth freedom
值得反复回味的81句高人高语