设备树 phy-handle

本文介绍Xilinx GMII至RGMII转换器内核,该内核支持10/100/1000Mb/s三种模式,并通过MDIO接口配置工作速度。转换器位于以太网MAC与外部PHY之间,通过配置转换器寄存器实现在不同速度模式间的动态切换。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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: ethernet-phy@0 {
			......
		};
		gmiitorgmii: gmiitorgmii@8 {
			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>;
};
};
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值