From: Sean Wang <sean.w...@mediatek.com> By default, GMAC0 is connected to built-in switch called MT7530 through the proprietary interface called Turbo RGMII (TRGMII). TRGMII also supports well for RGMII as generic external PHY uses but requires some slight changes to the setup of TRGMII and doesn't have well support on current driver.
So this patchset 1) provides the slight changes of the setup for RGMII can work through TRGMII 2) adds additional setting "trgmii" about phy-mode on device tree to make GMAC0 distinguish which mode it runs 3) changes dynamically source clock, TX/RX delay and interface mode on TRGMII for adapting various link Sean Wang (3): net: ethernet: mediatek: add extension of phy-mode for TRGMII net: ethernet: mediatek: add support for GMAC0 connecting with external PHY through TRGMII net: ethernet: mediatek: add the dts property to set if TRGMII supported on GMAC0 .../devicetree/bindings/net/mediatek-net.txt | 5 +- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 57 ++++++++++++++++++++-- drivers/net/ethernet/mediatek/mtk_eth_soc.h | 32 ++++++++++++ 3 files changed, 90 insertions(+), 4 deletions(-) -- 1.9.1