• Alexandru Ardelean's avatar
    net: stmmac: implement support for passive mode converters via dt · 0060c878
    Alexandru Ardelean authored
    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.
    Signed-off-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    0060c878
stmmac_platform.c 22.5 KB