Skip to content

Commit 7dc54d3

Browse files
clementlegerdavem330
authored andcommitted
net: pcs: add Renesas MII converter driver
Add a PCS driver for the MII converter that is present on the Renesas RZ/N1 SoC. This MII converter is reponsible for converting MII to RMII/RGMII or act as a MII pass-trough. Exposing it as a PCS allows to reuse it in both the switch driver and the stmmac driver. Currently, this driver only allows the PCS to be used by the dual Cortex-A7 subsystem since the register locking system is not used. Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c823c2b commit 7dc54d3

File tree

4 files changed

+547
-0
lines changed

4 files changed

+547
-0
lines changed

drivers/net/pcs/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,12 @@ config PCS_LYNX
1818
This module provides helpers to phylink for managing the Lynx PCS
1919
which is part of the Layerscape and QorIQ Ethernet SERDES.
2020

21+
config PCS_RZN1_MIIC
22+
tristate "Renesas RZ/N1 MII converter"
23+
depends on OF && (ARCH_RZN1 || COMPILE_TEST)
24+
help
25+
This module provides a driver for the MII converter that is available
26+
on RZ/N1 SoCs. This PCS converts MII to RMII/RGMII or can be set in
27+
pass-through mode for MII.
28+
2129
endmenu

drivers/net/pcs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pcs_xpcs-$(CONFIG_PCS_XPCS) := pcs-xpcs.o pcs-xpcs-nxp.o
55

66
obj-$(CONFIG_PCS_XPCS) += pcs_xpcs.o
77
obj-$(CONFIG_PCS_LYNX) += pcs-lynx.o
8+
obj-$(CONFIG_PCS_RZN1_MIIC) += pcs-rzn1-miic.o

0 commit comments

Comments
 (0)