History

net: stmmac: implement support for passive mode converters via dt

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.

Alexandru Ardelean committed 7 years ago

Commit 0060c871 parent c1609943 files · +35 −2Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/stmmac.h+1−0
@@ -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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t