186f22d04SFlorian FainelliWhat: /sys/class/mdio_bus/<bus>/<device>/attached_dev 286f22d04SFlorian FainelliDate: May 2017 386f22d04SFlorian FainelliKernelVersion: 4.13 486f22d04SFlorian FainelliContact: netdev@vger.kernel.org 586f22d04SFlorian FainelliDescription: 686f22d04SFlorian Fainelli Symbolic link to the network device this PHY device is 786f22d04SFlorian Fainelli attached to. 886f22d04SFlorian Fainelli 986f22d04SFlorian FainelliWhat: /sys/class/mdio_bus/<bus>/<device>/phy_has_fixups 1086f22d04SFlorian FainelliDate: February 2014 1186f22d04SFlorian FainelliKernelVersion: 3.15 1286f22d04SFlorian FainelliContact: netdev@vger.kernel.org 1386f22d04SFlorian FainelliDescription: 14a6cd0d2dSFlorian Fainelli This attribute contains the boolean value whether a given PHY 15a6cd0d2dSFlorian Fainelli device has had any "fixup" workaround running on it, encoded as 16a6cd0d2dSFlorian Fainelli a boolean. This information is provided to help troubleshooting 17a6cd0d2dSFlorian Fainelli PHY configurations. 1886f22d04SFlorian Fainelli 1986f22d04SFlorian FainelliWhat: /sys/class/mdio_bus/<bus>/<device>/phy_id 2086f22d04SFlorian FainelliDate: November 2012 2186f22d04SFlorian FainelliKernelVersion: 3.8 2286f22d04SFlorian FainelliContact: netdev@vger.kernel.org 2386f22d04SFlorian FainelliDescription: 24a6cd0d2dSFlorian Fainelli This attribute contains the 32-bit PHY Identifier as reported 25a6cd0d2dSFlorian Fainelli by the device during bus enumeration, encoded in hexadecimal. 26a6cd0d2dSFlorian Fainelli This ID is used to match the device with the appropriate 27a6cd0d2dSFlorian Fainelli driver. 2886f22d04SFlorian Fainelli 2986f22d04SFlorian FainelliWhat: /sys/class/mdio_bus/<bus>/<device>/phy_interface 3086f22d04SFlorian FainelliDate: February 2014 3186f22d04SFlorian FainelliKernelVersion: 3.15 3286f22d04SFlorian FainelliContact: netdev@vger.kernel.org 3386f22d04SFlorian FainelliDescription: 34a6cd0d2dSFlorian Fainelli This attribute contains the PHY interface as configured by the 35a6cd0d2dSFlorian Fainelli Ethernet driver during bus enumeration, encoded in string. 36a6cd0d2dSFlorian Fainelli This interface mode is used to configure the Ethernet MAC with the 37a6cd0d2dSFlorian Fainelli appropriate mode for its data lines to the PHY hardware. 3854a19b4dSMauro Carvalho Chehab 39a6cd0d2dSFlorian Fainelli Possible values are: 4054a19b4dSMauro Carvalho Chehab 4186f22d04SFlorian Fainelli <empty> (not available), mii, gmii, sgmii, tbi, rev-mii, 4286f22d04SFlorian Fainelli rmii, rgmii, rgmii-id, rgmii-rxid, rgmii-txid, rtbi, smii 4386f22d04SFlorian Fainelli xgmii, moca, qsgmii, trgmii, 1000base-x, 2500base-x, rxaui, 44c125ca09SRussell King xaui, 10gbase-kr, unknown 4586f22d04SFlorian Fainelli 46c920f745SIoana CiorneiWhat: /sys/class/mdio_bus/<bus>/<device>/phy_standalone 47c920f745SIoana CiorneiDate: May 2019 48c920f745SIoana CiorneiKernelVersion: 5.3 49c920f745SIoana CiorneiContact: netdev@vger.kernel.org 50c920f745SIoana CiorneiDescription: 51c920f745SIoana Ciornei Boolean value indicating whether the PHY device is used in 52c920f745SIoana Ciornei standalone mode, without a net_device associated, by PHYLINK. 53c920f745SIoana Ciornei Attribute created only when this is the case. 54*b0bade51SFlorian Fainelli 55*b0bade51SFlorian FainelliWhat: /sys/class/mdio_bus/<bus>/<device>/phy_dev_flags 56*b0bade51SFlorian FainelliDate: March 2021 57*b0bade51SFlorian FainelliKernelVersion: 5.13 58*b0bade51SFlorian FainelliContact: netdev@vger.kernel.org 59*b0bade51SFlorian FainelliDescription: 60*b0bade51SFlorian Fainelli 32-bit hexadecimal number representing a bit mask of the 61*b0bade51SFlorian Fainelli configuration bits passed from the consumer of the PHY 62*b0bade51SFlorian Fainelli (Ethernet MAC, switch, etc.) to the PHY driver. The flags are 63*b0bade51SFlorian Fainelli only used internally by the kernel and their placement are 64*b0bade51SFlorian Fainelli not meant to be stable across kernel versions. This is intended 65*b0bade51SFlorian Fainelli for facilitating the debugging of PHY drivers. 66