These patches converts mediatek driver to phylink api. SGMII support is only tested with fixed speed of 2.5Gbit on a Bananapi R64. Frank tested these patches on this Bananapi R64 (mt7622) and Bananapi R2 (mt7623). Tested on hardware: mt7621, mt7622 and mt7623. René van Dorst (3): net: ethernet: mediatek: Add basic PHYLINK support net: ethernet: mediatek: Re-add support SGMII dt-bindings: net: ethernet: Update mt7622 docs and dts to reflect the new phylink API .../arm/mediatek/mediatek,sgmiisys.txt | 2 - .../dts/mediatek/mt7622-bananapi-bpi-r64.dts | 28 +- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 1 - drivers/net/ethernet/mediatek/Kconfig | 2 +- drivers/net/ethernet/mediatek/mtk_eth_path.c | 72 +-- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 486 ++++++++++++------ drivers/net/ethernet/mediatek/mtk_eth_soc.h | 67 ++- drivers/net/ethernet/mediatek/mtk_sgmii.c | 65 ++- 8 files changed, 436 insertions(+), 287 deletions(-) To: <netdev@xxxxxxxxxxxxxxx> Cc: Sean Wang <sean.wang@xxxxxxxxxxxx> Cc: Andrew Lunn <andrew@xxxxxxx> Cc: David S. Miller <davem@xxxxxxxxxxxxx> Cc: Florian Fainelli <f.fainelli@xxxxxxxxx> Cc: Rob Herring <robh+dt@xxxxxxxxxx> Cc: devicetree@xxxxxxxxxxxxxxx Cc: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx> Cc: Russell King <linux@xxxxxxxxxxxxxxx> Cc: linux-mediatek@xxxxxxxxxxxxxxxxxxx Cc: linux-mips@xxxxxxxxxxxxxxx Cc: John Crispin <john@xxxxxxxxxxx> -- 2.20.1