Skip to content

Commit f6ac5f2

Browse files
dangowrtfrank-w
authored andcommitted
net: pcs: add driver for MediaTek USXGMII PCS
Add driver for USXGMII PCS found in the MediaTek MT7988 SoC and supporting USXGMII, 10GBase-R and 5GBase-R interface modes. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
1 parent 396de07 commit f6ac5f2

5 files changed

Lines changed: 510 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15275,7 +15275,9 @@ M: Daniel Golle <daniel@makrotopia.org>
1527515275
L: netdev@vger.kernel.org
1527615276
S: Maintained
1527715277
F: drivers/net/pcs/pcs-mtk-lynxi.c
15278+
F: drivers/net/pcs/pcs-mtk-usxgmii.c
1527815279
F: include/linux/pcs/pcs-mtk-lynxi.h
15280+
F: include/linux/pcs/pcs-mtk-usxgmii.h
1527915281

1528015282
MEDIATEK ETHERNET PHY DRIVERS
1528115283
M: Daniel Golle <daniel@makrotopia.org>

drivers/net/pcs/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ config PCS_MTK_LYNXI
3939
This module provides helpers to phylink for managing the LynxI PCS
4040
which is part of MediaTek's SoC and Ethernet switch ICs.
4141

42+
config PCS_MTK_USXGMII
43+
tristate "MediaTek USXGMII PCS"
44+
select FWNODE_PCS
45+
select PCS_MTK_LYNXI
46+
select PHYLINK
47+
imply PHY_MTK_PEXTP
48+
help
49+
This module provides a driver for MediaTek's USXGMII PCS supporting
50+
10GBase-R, 5GBase-R and USXGMII interface modes.
51+
1000Base-X, 2500Base-X and Cisco SGMII are supported on the same
52+
differential pairs via an embedded LynxI PCS.
53+
4254
config PCS_RZN1_MIIC
4355
tristate "Renesas RZ/N1 MII converter"
4456
depends on OF && (ARCH_RZN1 || COMPILE_TEST)

drivers/net/pcs/Kconfig.orig

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
#
3+
# PCS Layer Configuration
4+
#
5+
6+
menu "PCS device drivers"
7+
8+
config OF_PCS
9+
tristate
10+
depends on OF
11+
depends on PHYLINK
12+
help
13+
OpenFirmware PCS accessors
14+
15+
config PCS_XPCS
16+
tristate "Synopsys DesignWare Ethernet XPCS"
17+
select PHYLINK
18+
help
19+
This module provides a driver and helper functions for Synopsys
20+
DesignWare XPCS controllers.
21+
22+
config PCS_LYNX
23+
tristate
24+
help
25+
This module provides helpers to phylink for managing the Lynx PCS
26+
which is part of the Layerscape and QorIQ Ethernet SERDES.
27+
28+
config PCS_MTK_LYNXI
29+
tristate
30+
select REGMAP
31+
help
32+
This module provides helpers to phylink for managing the LynxI PCS
33+
which is part of MediaTek's SoC and Ethernet switch ICs.
34+
35+
config PCS_MTK_USXGMII
36+
tristate "MediaTek USXGMII PCS"
37+
select OF_PCS
38+
select PCS_MTK_LYNXI
39+
select PHY_MTK_PEXTP
40+
select PHYLINK
41+
help
42+
This module provides a driver for MediaTek's USXGMII PCS supporting
43+
10GBase-R, 5GBase-R and USXGMII interface modes.
44+
1000Base-X, 2500Base-X and Cisco SGMII are supported on the same
45+
differential pairs via an embedded LynxI PHY.
46+
47+
config PCS_RZN1_MIIC
48+
tristate "Renesas RZ/N1 MII converter"
49+
depends on OF && (ARCH_RZN1 || COMPILE_TEST)
50+
help
51+
This module provides a driver for the MII converter that is available
52+
on RZ/N1 SoCs. This PCS converts MII to RMII/RGMII or can be set in
53+
pass-through mode for MII.
54+
55+
endmenu

drivers/net/pcs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-plat.o \
99
obj-$(CONFIG_PCS_XPCS) += pcs_xpcs.o
1010
obj-$(CONFIG_PCS_LYNX) += pcs-lynx.o
1111
obj-$(CONFIG_PCS_MTK_LYNXI) += pcs-mtk-lynxi.o
12+
obj-$(CONFIG_PCS_MTK_USXGMII) += pcs-mtk-usxgmii.o
1213
obj-$(CONFIG_PCS_RZN1_MIIC) += pcs-rzn1-miic.o

0 commit comments

Comments
 (0)