欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

设备树 phy-handle

程序员文章站 2024-01-23 15:03:34
...
XILINX GMIITORGMII Converter Driver Device Tree Bindings
--------------------------------------------------------

The Gigabit Media Independent Interface (GMII) to Reduced Gigabit Media
Independent Interface (RGMII) core provides the RGMII between RGMII-compliant
Ethernet physical media devices (PHY) and the Gigabit Ethernet controller.
This core can be used in all three modes of operation(10/100/1000 Mb/s).
The Management Data Input/Output (MDIO) interface is used to configure the
Speed of operation. This core can switch dynamically between the three
Different speed modes by configuring the conveter register through mdio write.

This converter sits between the ethernet MAC and the external phy.
MAC <==> GMII2RGMII <==> RGMII_PHY

For more details about mdio please refer phy.txt file in the same directory.

Required properties:
- compatible	: Should be "xlnx,gmii-to-rgmii-1.0"
- reg		: The ID number for the phy, usually a small integer
- phy-handle	: Should point to the external phy device.
		  See ethernet.txt file in the same directory.

Example:
	mdio {
		#address-cells = <1>;
		#size-cells = <0>;
		phy: [email protected] {
			......
		};
		gmiitorgmii: [email protected] {
			compatible = "xlnx,gmii-to-rgmii-1.0";
			reg = <8>;
			phy-handle = <&phy>;
		};
	};

以下内容是谷歌翻译

XILINX GMIITORGMII转换器驱动程序设备树绑定
-------------------------------------------------- ------

千兆媒体独立接口(GMII),以减少千兆媒体
独立接口(RGMII)内核在符合RGMII的情况下提供RGMII
以太网物理媒体设备(PHY)和千兆位以太网控制器。
该内核可用于所有三种操作模式(10/100/1000 Mb / s)。
管理数据输入/输出(MDIO)接口用于配置
操作速度。该核心可以在这三个之间动态切换
通过mdio写配置对流寄存器,可实现不同的速度模式。

该转换器位于以太网MAC和外部phy之间。
MAC <==> GMII2RGMII <==> RGMII_PHY

有关mdio的更多详细信息,请参考同一目录中的phy.txt文件。

必需的属性:
-兼容:应为“ xlnx,gmii至rgmii-1.0”
-reg:phy的ID号,通常是一个小整数
-phy句柄:应指向外部phy设备。
请参阅同一目录中的ethernet.txt文件。

例:
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy:ethernet-phy @ 0 {
......
};
gmiitorgmii:gmiitorgmii @ 8 {
兼容=“ xlnx,gmii-rgmii-1.0”;
reg = <8>;
phy-handle = <&phy>;
};
};
相关标签: Linux 设备树