Skip to content

Commit 24e31e4

Browse files
cpackham-atlnzPaolo Abeni
authored andcommitted
net: mdio: Add RTL9300 MDIO driver
Add a driver for the MDIO controller on the RTL9300 family of Ethernet switches with integrated SoC. There are 4 physical SMI interfaces on the RTL9300 however access is done using the switch ports. The driver takes the MDIO bus hierarchy from the DTS and uses this to configure the switch ports so they are associated with the correct PHY. This mapping is also used when dealing with software requests from phylib. Signed-off-by: Chris Packham <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 23f09f0 commit 24e31e4

File tree

3 files changed

+530
-0
lines changed

3 files changed

+530
-0
lines changed

drivers/net/mdio/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ config MDIO_IPQ8064
185185
This driver supports the MDIO interface found in the network
186186
interface units of the IPQ8064 SoC
187187

188+
config MDIO_REALTEK_RTL9300
189+
tristate "Realtek RTL9300 MDIO interface support"
190+
depends on MACH_REALTEK_RTL || COMPILE_TEST
191+
help
192+
This driver supports the MDIO interface found in the Realtek
193+
RTL9300 family of Ethernet switches with integrated SoC.
194+
188195
config MDIO_REGMAP
189196
tristate
190197
help

drivers/net/mdio/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ obj-$(CONFIG_MDIO_MOXART) += mdio-moxart.o
1919
obj-$(CONFIG_MDIO_MSCC_MIIM) += mdio-mscc-miim.o
2020
obj-$(CONFIG_MDIO_MVUSB) += mdio-mvusb.o
2121
obj-$(CONFIG_MDIO_OCTEON) += mdio-octeon.o
22+
obj-$(CONFIG_MDIO_REALTEK_RTL9300) += mdio-realtek-rtl9300.o
2223
obj-$(CONFIG_MDIO_REGMAP) += mdio-regmap.o
2324
obj-$(CONFIG_MDIO_SUN4I) += mdio-sun4i.o
2425
obj-$(CONFIG_MDIO_THUNDER) += mdio-thunder.o

0 commit comments

Comments
 (0)