xref: /linux/Documentation/ABI/testing/sysfs-class-net-phydev (revision 8be4d31cb8aaeea27bde4b7ddb26e28a89062ebf)
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
29*170e4e39SYajun DengWhat:		/sys/class/mdio_bus/<bus>/<device>/c45_phy_ids/mmd<n>_device_id
30*170e4e39SYajun DengDate:		June 2025
31*170e4e39SYajun DengKernelVersion:	6.17
32*170e4e39SYajun DengContact:	netdev@vger.kernel.org
33*170e4e39SYajun DengDescription:
34*170e4e39SYajun Deng		This attribute contains the 32-bit PHY Identifier as reported
35*170e4e39SYajun Deng		by the device during bus enumeration, encoded in hexadecimal.
36*170e4e39SYajun Deng		These C45 IDs are used to match the device with the appropriate
37*170e4e39SYajun Deng		driver. These files are invisible to the C22 device.
38*170e4e39SYajun Deng
3986f22d04SFlorian FainelliWhat:		/sys/class/mdio_bus/<bus>/<device>/phy_interface
4086f22d04SFlorian FainelliDate:		February 2014
4186f22d04SFlorian FainelliKernelVersion:	3.15
4286f22d04SFlorian FainelliContact:	netdev@vger.kernel.org
4386f22d04SFlorian FainelliDescription:
44a6cd0d2dSFlorian Fainelli		This attribute contains the PHY interface as configured by the
45a6cd0d2dSFlorian Fainelli		Ethernet driver during bus enumeration, encoded in string.
46a6cd0d2dSFlorian Fainelli		This interface mode is used to configure the Ethernet MAC with the
47a6cd0d2dSFlorian Fainelli		appropriate mode for its data lines to the PHY hardware.
4854a19b4dSMauro Carvalho Chehab
49a6cd0d2dSFlorian Fainelli		Possible values are:
5054a19b4dSMauro Carvalho Chehab
5186f22d04SFlorian Fainelli		<empty> (not available), mii, gmii, sgmii, tbi, rev-mii,
5286f22d04SFlorian Fainelli		rmii, rgmii, rgmii-id, rgmii-rxid, rgmii-txid, rtbi, smii
5386f22d04SFlorian Fainelli		xgmii, moca, qsgmii, trgmii, 1000base-x, 2500base-x, rxaui,
54c125ca09SRussell King		xaui, 10gbase-kr, unknown
5586f22d04SFlorian Fainelli
56c920f745SIoana CiorneiWhat:		/sys/class/mdio_bus/<bus>/<device>/phy_standalone
57c920f745SIoana CiorneiDate:		May 2019
58c920f745SIoana CiorneiKernelVersion:	5.3
59c920f745SIoana CiorneiContact:	netdev@vger.kernel.org
60c920f745SIoana CiorneiDescription:
61c920f745SIoana Ciornei		Boolean value indicating whether the PHY device is used in
62c920f745SIoana Ciornei		standalone mode, without a net_device associated, by PHYLINK.
63c920f745SIoana Ciornei		Attribute created only when this is the case.
64b0bade51SFlorian Fainelli
65b0bade51SFlorian FainelliWhat:		/sys/class/mdio_bus/<bus>/<device>/phy_dev_flags
66b0bade51SFlorian FainelliDate:		March 2021
67b0bade51SFlorian FainelliKernelVersion:	5.13
68b0bade51SFlorian FainelliContact:	netdev@vger.kernel.org
69b0bade51SFlorian FainelliDescription:
70b0bade51SFlorian Fainelli		32-bit hexadecimal number representing a bit mask of the
71b0bade51SFlorian Fainelli		configuration bits passed from the consumer of the PHY
72b0bade51SFlorian Fainelli		(Ethernet MAC, switch, etc.) to the PHY driver. The flags are
73b0bade51SFlorian Fainelli		only used internally by the kernel and their placement are
74b0bade51SFlorian Fainelli		not meant to be stable across kernel versions. This is intended
75b0bade51SFlorian Fainelli		for facilitating the debugging of PHY drivers.
76