phy-handle = <ðphy1>; phy-reset-gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; phy-reset-duration = <200>; status = "okay"; mdio { #address-cells= <1>; #size-cells = <0>; ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; smsc,disable-energy-detect; reg = ...
phy-mode ="rgmii-id";--和PHY接口类型,表示使用的是RGMII接口,有PHY提供RX和TX延迟,MAC不需要添加RX和TX延时内容。max-speed = <0x3e8>;--以Mbit/s为单位的最高速率,即1000Mbit/s。phy-handle = <0x6a>;--指向PHY设备句柄。mdio0 {--描述MDIO总线。#address-cells = <0x01>; #size-cells = <0...
phy-handle = <ðphy1>; status = "okay"; mdio { #address-cells = <1>; #size-cells = <0>; ethphy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <2>; }; ethphy1: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; }; }; ...
按OSI 7层网络模型划分,网卡PHY 芯片(图中的RTL8201F)位于物理层,对应的软件层就是本文讨论的 PHY 驱动层;而 MAC 位于 数据链路层,也是通常软件上所说的网卡驱动层,它不是本文的重点,不做展开。另外,可通过 MDIO 接口对 PHY 芯片进行配置(如PHY芯片寄存器读写),而 PHY 和 MAC 通过 MII/RMII 进行数据传输...
phy-handle:指定MAC与PHY之间通信的配置信息; mdio:关于MDC/MDIO通信相关配置信息; 可以参照PHY的datasheet和具体的原理图,查看上面几项配置信息,是否正确。最终发现,mdio中的reg项配置错误,该项指定了PHY的地址,用于MAC和PHY之间的通信。本文用到的KSZ8081RNB这款PHY芯片,默认PHY地址为1,而mdio中的reg将其配置...
我们可以在 Linux 内核构建过程中选择是否编译或加载与 Motorcomm PHY 相关的功能模块*/ 在终端输入 make menuconfig,进入以下路径: -> Device Drivers -> Network devicesupport(NETDEVICES [=y])-> PHY Device support andinfrastructure(PHYLIB [=y])-> <*> Motorcomm PHYs//将 YT8511 驱动编译进内...
phy-handle = <ðphy1>;phy-supply = < _peri_3v3>;status = "okay";mdio {#address-cells = <1>;#size-cells = <0>;ethphy0: ethernet-phy@2 {compatible = "ethernet-phy-id0022.1560";reg = <2>;...};ethphy1: ethernet-phy@1 {compatible = "ethernet-phy-id0022.1560";reg = <1>...
phy-handle = ; xlnx,eth-mode = ; xlnx,has-mdio = ; xlnx,ptp-enet-clock = ; mdio { #address-cells = ; #size-cells = ; phy@0 { compatible = "marvell,88e1111"; device_type = "ethernet-phy"; reg = ; linux,phandle = ; phandle = ; }; }; }; 当对dts修改完成后,再次使用...
phy-handle = <&phy0>; mdio0 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy0: ethernet-phy@0 { reg = <0>; }; }; }; 管脚定义 在内核中STM32MP1默认管脚定义在文件arch/arm/dts/stm32mp15-pinctrl.dtsi中,查看文件中是否有需要的管脚定义: ...
phy-handle = <&phy0>; mdio0 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy0: ethernet-phy@0 { reg = <0>; }; }; }; 管脚定义 在内核中STM32MP1默认管脚定义在文件 arch/arm/dts/stm32mp15-pinctrl.dtsi中,查看文件中是否有需要的管脚定义: ...