=> mdio mdio - MDIO utility commands Usage: mdio list - List MDIO buses mdio read <phydev> [<devad>.]<reg> - read PHY's register at <devad>.<reg> mdio write <phydev> [<devad>.]<reg> <data> - write PHY's register at <devad>.<reg> mdio rx <phydev> [<devad>.]<reg> - read PHY's extended register at <devad>.<reg> mdio wx <phydev> [<devad>.]<reg> <data> - write PHY's extended register at <devad>.<reg> <phydev> may be: <busname> <addr> <addr> <eth name> <addr> <devad>, and <reg> may be ranges, e.g. 1-5.4-0x1f. => mdio list FSL_MDIO0: FSL_MDIO1: 4 - Generic 10G PHY <--> DPMAC14@xgmii 8 - Generic 10G PHY <--> DPMAC13@xgmii => mii dev FSL_MDIO1
mdio通过MMD读取id寄存器
devad:device设备地址
=> mdio read DPMAC13@xgmii 3.2 Reading from bus FSL_MDIO1 PHY at address 8: 3.2 - 0x2b => mdio read DPMAC13@xgmii 3.3 Reading from bus FSL_MDIO1 PHY at address 8: 3.3 - 0x9ab