->phy_device_create--创建PHY设备,设备总线为mdio_bus_type,设备类型为mdio_bus_phy_type。 ->phy_state_machine->phy_device_register->mdiobus_register_device--将PHY设备注册到MDIO总线。->phy_device_reset--对PHY进行复位。->phy_scan_fixups--判断设备是否需要Fixup,如需要则调用fixup->run()。->de...
mdio读写phy寄存器 phytool:https://github.com/wkz/phytool.git该方式需要网卡驱动提供支持 phytoolreadIFACE/ADDR/REG phytool write IFACE/ADDR/REG <0-0xffff> phytoolprintIFACE/ADDR[/REG] Clause 22: ADDR := <0-0x1f> REG := <0-0x1f> Clause 45 (not supported by all MDIO drivers): ADDR...
管理接口:2线(MDC:管理时钟,MDIO:管理数据)。 支持10兆和100兆的总线接口速度,时钟都由PHY或FPGA提供。 16个数据线如下:(7+7+2 = 14) TX:使能,错误,时钟,数据*4。 RX:使能,错误,时钟,数据*4。 CRS载波检测,COL冲突检测。 GMII接口--(数据线: 11 * 2 + 2 == 24线) GMII采用8位接口数据,工作时...
eMac的硬件架构,在所有eMac系列电脑中均采用了苹果、IBM、摩托罗拉三大巨头联合开发的PowerPC G4 处理器 其具备独创的“极速引擎”技术进行许多运算工作的“抢占式多任务处理”技术EMAC控制从系统到物理层的数据流,MDIO控制物理层配置和监视物理层状态。 EMAC模块的全称是以太网媒体访问控制模块(EthemetMediaAccessControUe...
3.2.4.2 emac 配置说明 mdio1: mdio1@1c0b080 { compatible = "allwinner,sun4i-mdio"; #address-cells = <1>; #size-cells = <0>; reg = <0x0 0x01c0b080 0x0 0x14>; status = "okay"; phy1: ethernet-phy@1 { reg = <1>; }; }; emac0: emac0@1c0b000 { compatible = "...
还有就是A40i的EMAC和GMAC都设计了属于自己的MDC/MDIO,而不是两个共用同一个
1.首先根据原理图和phy的芯片手册,配置对应dts的拉高、拉低的gpio,配置phy id,mac mode 千兆网为rgmii,以及这个phy是和gmac0 or gmac1匹配等。 2.量对应gpio的电压,在驱动中添加kernel log看是否是预期值 3.诊断手段 通过/sys/kernel/debug下查看gmac_phyrole 是master or slave 在/sys/bus/mdio_bus/...
--- a/kernel/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/kernel/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -4444,14 +4444,14 @@ int stmmac_dvr_probe(struct device *device, goto error_mdio_register; } } - + snprintf(ndev->name, IFNAMSIZ, ndev->name, plat...
I can access theLAN8710A registers via MDIO. I have verified that theSTRAP pins are correctly set for RMII mode. TheGMac_IP_Internal_Loopbackexample code runs successfully. When I disableMAC_CONFIG_LOOPBACKin theEthCtrlConfigMacsection of the GMac driver configuration and attempt to...
Solved: Hi, experts, I found the following configuration of s32g399a-rdb.dtsi and I want to konw why it uses gmac_mdio_a_phy8(defined in gmac0_mdio