当前位置:网站首页>PHY drive commissioning --- mdio/mdc interface Clause 22 and 45 (I)
PHY drive commissioning --- mdio/mdc interface Clause 22 and 45 (I)
2022-07-05 06:53:00 【Enlaihe】
Recently, I was debugging a Phy The driver , From no clue to a little understanding, I have experienced too much pain , So I decided to write this series to record . Special thanks to countless excellent bloggers for their selfless dedication. Many excellent blogs have given me great help . In this series , I will also reprint some excellent blog posts ( A link will be attached ), And add your own understanding , If part of the content has infringement , Please contact me .
summary
management MII Interface MDIO The interface is a two-wire serial interface , Used to correct PHY Chips, etc The physical layer Information operation management .
MDIO The history of
MDIO yes Management Data Input/Output Abbreviation , There are two wires , They are bidirectional MDIO And unidirectional MDC, It is used in the upper and middle layers of Ethernet equipment The physical layer Management of . The reason why we can manage these PHY chip , It's because I can be right PHY Access and modify various registers of the chip .
MDIO The interface was originally created by IEEE RFC802.3 Medium 22 As defined in Clause No , In the original definition , A single MDIO Interface can access 32 Different PHY In the equipment 32 A register , These registers provide status and control information , for example : Connection status 、 Transmission speed capability 、 The currently selected transmission speed 、 Power down during low voltage consumption 、 Full duplex or half duplex 、 Automatic negotiation 、 Error prompt and feedback information, etc .
In order to satisfy the 10G The popularity and development of Ethernet equipment , stay IEEE 802.3ae Of 45 In Clause No MDIO The interface provides additional specifications :
- Can pass 32 Port access 32 Different devices 65536 A register ;
- For the visit 10G Ethernet provides additional OP Code and ST code , Thus, the register address can be accessed directly ;
- End to end error signal ;
- Loopback mode control ;
- Low voltage electrical standards .
How it works
MDIO The bus has two signals : Manage data clock (MDC) And manage data entry / Output (MDIO).
MDIO There are specific terms in the interface that define the various devices on the bus . drive MDIO The device of the bus is defined as the station management entity (STA). And be MDC The managed target device is called MDIO Managed devices (MMD).
STA initialization MDIO All communications , At the same time, it is responsible for driving the clock MDC.MDC The frequency of can be as high as 2.5 MHz.
22 Clause No
22 Clause No MDIO The frame format of communication is defined as follows :
45 Clause No
To make up for it 22 Defects as defined in Clause No ,45 Support for low voltage equipment has been added to Clause No , As low as 1.2V, At the same time, the frame format is expanded , Access to more devices and registers .
45 Number MDIO The format of communication frame is as follows :
The first 45 The main change in Clause No. 1 is how to access registers . In the 22 in , A single frame specifies the address and data to be read or written , At the same time, these works have been completed .45 Change this paradigm , The first address frame is sent to the specified address frame MMD And registers , The second frame is then sent to perform read or write .
The advantage of adding this sequential circular access is 45 The terms are backwards compatible 22 The terms of , Allow interoperability of devices . secondly , By creating a registration address for the framework , Address space from 5 Bit increase to 16 position , This makes STA visit 65536 Two different registers .
To do this , Some changes have been made in the components of the data frame . Defined a new ST Code (00), Used to identify No 45 Data frame of clause No . The operation code is extended to the specified address frame , Write frame , Read frame , Or read and read incremental address frames . Because the register address is no longer needed , This field is replaced by the content that specifies the target device type . After expansion, it also allows STA Access in addition to PHY Other equipment than .
Reprint blog address : Understand and MDIO/MDC Interface related 22 Number 、45 Clause No
边栏推荐
- Mid 2022 documentary -- the experience of an ordinary person
- SRE核心体系了解
- ROS2——ROS2对比ROS1(二)
- PHY驱动调试之 --- MDIO/MDC接口22号和45号条款(一)
- Integer to 8-bit binary explanation (including positive and negative numbers) scope of application -127~+127
- 程序中的负数存储及类型转换
- Empire help
- Marvell 88E1515 PHY loopback模式测试
- Ros2 - first acquaintance with ros2 (I)
- La redirection de l'applet Wechat ne déclenche pas onload
猜你喜欢
随机推荐
Interpretation of the earliest sketches - image translation work sketchygan
mysql设置触发器问题
你心目中的数据分析 Top 1 选 Pandas 还是选 SQL?
kata container
Xavier CPU & GPU high load power consumption test
Skywalking全部
About vscode, "code unreachable" will be displayed when calling sendline series functions with pwntools“
Unity 之 ExecuteAlways正在取代ExecuteInEditMode
Positive height system
Log4qt usage of logbase in QT project
程序中的负数存储及类型转换
并发编程 — 如何中断/停止一个运行中的线程?
GDB code debugging
Ros2 - node (VII)
代码中的英语全部
[Chongqing Guangdong education] National Open University 2018 autumn 0702-22t contemporary Chinese political system reference questions
LSA Type Explanation - lsa-5 (type 5 LSA - autonomous system external LSA) and lsa-4 (type 4 LSA - ASBR summary LSA) explanation
全局变量和静态变量的初始化
Architecture
睿智的目标检测59——Pytorch Focal loss详解与在YoloV4当中的实现