In-between the MAC & PHY there can be a mode converter, which converts one mode to another (e.g. GMII-to-RGMII). The converter, can be passive (i.e. no driver or OS/SW information required), so the MAC & PHY need to be configured differently. For the `stmmac` driver, this is implemented via a `mac-mode` property in the device-tree, which configures the MAC into a certain mode, and for the PHY a `phy_interface` field will hold the mode of the PHY. The mode of the PHY will be passed to the PHY and from there-on it work in a different mode. If unspecified, the default `phy-mode` will be used for both.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -131,6 +131,7 @@ struct plat_stmmacenet_data { · 130 unmodified lines | |||
| 131 | int bus_id; | 131 | int bus_id; |
| 132 | int phy_addr; | 132 | int phy_addr; |
| 133 | int interface; | 133 | int interface; |
| 134 | int phy_interface; | ||
| 134 | struct stmmac_mdio_bus_data *mdio_bus_data; | 135 | struct stmmac_mdio_bus_data *mdio_bus_data; |
| 135 | struct device_node *phy_node; | 136 | struct device_node *phy_node; |
| 136 | struct device_node *phylink_node; | 137 | struct device_node *phylink_node; |