[PATCH net-next v1 0/6] Add MT7629 ethernet support

From: sean.wang
Date: Fri May 31 2019 - 20:12:10 EST


From: Sean Wang <sean.wang@xxxxxxxxxxxx>

MT7629 inlcudes two sets of SGMIIs used for external switch or PHY, and embedded
switch (ESW) via GDM1, GePHY via GMAC2, so add several patches in the series to
make the code base common with the old SoCs.

The patch 1, 3 and 6, adds extension for SGMII to have the hardware configured
for 1G, 2.5G and AN to fit the capability of the target PHY. In patch 6 could be
an example showing how to use these configurations for underlying PHY speed to
match up the link speed of the target PHY.

The patch 4 is used for automatically configured the hardware path from GMACx to
the target PHY by the description in deviceetree topology to determine the
proper value for the corresponding MUX.

The patch 2 and 5 is for the update for MT7629 including dt-binding document and
its driver.

Sean Wang (6):
dt-bindings: clock: mediatek: Add an extra required property to
sgmiisys
dt-bindings: net: mediatek: Add support for MediaTek MT7629 SoC
net: ethernet: mediatek: Extend SGMII related functions
net: ethernet: mediatek: Integrate hardware path from GMAC to PHY
variants
net: ethernet: mediatek: Add MT7629 ethernet support
arm64: dts: mt7622: Enlarge the SGMII register range

.../arm/mediatek/mediatek,sgmiisys.txt | 2 +
.../devicetree/bindings/net/mediatek-net.txt | 14 +-
arch/arm64/boot/dts/mediatek/mt7622.dtsi | 3 +-
drivers/net/ethernet/mediatek/Makefile | 3 +-
drivers/net/ethernet/mediatek/mtk_eth_path.c | 323 ++++++++++++++++++
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 97 +++---
drivers/net/ethernet/mediatek/mtk_eth_soc.h | 177 +++++++++-
drivers/net/ethernet/mediatek/mtk_sgmii.c | 105 ++++++
8 files changed, 647 insertions(+), 77 deletions(-)
create mode 100644 drivers/net/ethernet/mediatek/mtk_eth_path.c
create mode 100644 drivers/net/ethernet/mediatek/mtk_sgmii.c

--
2.17.1