Skip to content

Commit c288575

Browse files
Landen Chaodavem330
authored andcommitted
net: dsa: mt7530: Add the support of MT7531 switch
Add new support for MT7531: MT7531 is the next generation of MT7530. It is also a 7-ports switch with 5 giga embedded phys, 2 cpu ports, and the same MAC logic of MT7530. Cpu port 6 only supports SGMII interface. Cpu port 5 supports either RGMII or SGMII in different HW sku, but cannot be muxed to PHY of port 0/4 like mt7530. Due to SGMII interface support, pll, and pad setting are different from MT7530. This patch adds different initial setting, and SGMII phylink handlers of MT7531. MT7531 SGMII interface can be configured in following mode: - 'SGMII AN mode' with in-band negotiation capability which is compatible with PHY_INTERFACE_MODE_SGMII. - 'SGMII force mode' without in-band negotiation which is compatible with 10B/8B encoding of PHY_INTERFACE_MODE_1000BASEX with fixed full-duplex and fixed pause. - 2.5 times faster clocked 'SGMII force mode' without in-band negotiation which is compatible with 10B/8B encoding of PHY_INTERFACE_MODE_2500BASEX with fixed full-duplex and fixed pause. Signed-off-by: Landen Chao <[email protected]> Signed-off-by: Sean Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 27834b0 commit c288575

File tree

3 files changed

+1112
-27
lines changed

3 files changed

+1112
-27
lines changed

drivers/net/dsa/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ config NET_DSA_LANTIQ_GSWIP
3333
the xrx200 / VR9 SoC.
3434

3535
config NET_DSA_MT7530
36-
tristate "MediaTek MT7530 and MT7621 Ethernet switch support"
36+
tristate "MediaTek MT753x and MT7621 Ethernet switch support"
3737
depends on NET_DSA
3838
select NET_DSA_TAG_MTK
3939
help
40-
This enables support for the MediaTek MT7530 and MT7621 Ethernet
41-
switch chip.
40+
This enables support for the MediaTek MT7530, MT7531, and MT7621
41+
Ethernet switch chips.
4242

4343
config NET_DSA_MV88E6060
4444
tristate "Marvell 88E6060 ethernet switch chip support"

0 commit comments

Comments
 (0)