]> git.baikalelectronics.ru Git - uboot.git/commit
eth: mtk-eth: add mt7531 switch support in mediatek eth driver
authorLanden Chao <landen.chao@mediatek.com>
Tue, 18 Feb 2020 08:49:37 +0000 (16:49 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 14:09:59 +0000 (10:09 -0400)
commit20624573f9bca0d3b2b0eebe4acc54c1ea4e0f9d
treed7f5b2901d8956a72717f9c5c32f351014170d22
parent3c69c209385d1f3514dc16bf07a749716b7494a3
eth: mtk-eth: add mt7531 switch support in mediatek eth driver

mt7531 is a 7-ports switch with 5 embedded giga phys, and uses the same
MAC design of mt7530. The cpu port6 supports SGMII only. The cpu port5
supports RGMII or SGMII in different model.

mt7531 is connected to mt7622 via both RGMII and SGMII interfaces.
In this patch, mt7531 cpu port5 or port6 is configured to maximum
capability to align CPU MAC setting.

The dts has been committed in the commit 36c295b206338 ("arm: dts:
mediatek: add ethernet and sgmii dts node for mt7622")

Signed-off-by: Landen Chao <landen.chao@mediatek.com>
Tested-by: Frank Wunderlich <frank-w@public-files.de>
drivers/net/mtk_eth.c
drivers/net/mtk_eth.h