Skip to contentSkip to conversation

net: phy: add driver for MaxLinear MxL86110 PHY

PATCH Applied [email protected] 2 participants 2 messages May 21, 2025 – May 27, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v6 1/1 net: phy: add driver for MaxLinear MxL86110 PHY

From: Stefano Radaelli <[email protected]>

Add support for the MaxLinear MxL86110 Gigabit Ethernet PHY, a low-power, cost-optimized transceiver supporting 10/100/1000 Mbps over twisted-pair copper, compliant with IEEE 802.3.

The driver implements basic features such as:
- Device initialization
- RGMII interface timing configuration
- Wake-on-LAN support
- LED initialization and control via /sys/class/leds

This driver has been tested on multiple Variscite boards, including:
- VAR-SOM-MX93 (i.MX93)
- VAR-SOM-MX8M-PLUS (i.MX8MP)

Example boot log showing driver probe:

[    7.692101] imx-dwmac 428a0000.ethernet eth0:
	PHY [stmmac-0:00] driver [MXL86110 Gigabit Ethernet] (irq=POLL)

---
v6:
- Fix comments
- Remove superfluous semicolon

v5: https://lore.kernel.org/netdev/[email protected]/
- Remove redundant macro
- Remove unnecessary cast
- Remove superfluous semicolons
- Rename unlocked accessors with '__' prefix to match kernel naming conventions
- Add locked variants of extended register accessors

v4: https://lore.kernel.org/netdev/[email protected]/
- Limited lines to 80 columns where possible.
- kernel-doc: fixed 'Returns:' format in function comments.
- Fixed invalid '< 0' checks on unsigned variables by using signed int.

v3: https://lore.kernel.org/netdev/[email protected]/
- Simplified return handling, removed unnecessary goto/ret=0 patterns
- Added comments where MDIO lock is assumed
- Replaced read-modify-write sequences with _modify_
in broadcast and LED blink configuration

v2: https://lore.kernel.org/netdev/[email protected]/
- Add net-next support
- Improved locking management and validation with CONFIG_PROVE_LOCKING
- General cleanup and simplification

v1: https://lore.kernel.org/netdev/[email protected]/

 MAINTAINERS                 |   1 +
 drivers/net/phy/Kconfig     |  12 +
 drivers/net/phy/Makefile    |   1 +
 drivers/net/phy/mxl-86110.c | 616 ++++++++++++++++++++++++++++++++++++
 4 files changed, 630 insertions(+)
 create mode 100644 drivers/net/phy/mxl-86110.c
MAINTAINERS +1 -0
index 536a81712c71..f6768a12b2f1 100644
@@ -14653,6 +14653,7 @@ MAXLINEAR ETHERNET PHY DRIVER
 M:	Xu Liang <[email protected]>
 L:	[email protected]
 S:	Supported
+F:	drivers/net/phy/mxl-86110.c
 F:	drivers/net/phy/mxl-gpy.c
 
 MCAN MMIO DEVICE DRIVER
drivers/net/phy/Kconfig +12 -0
index 127a9fd0feb9..7b9b0baa311a 100644
@@ -263,6 +263,18 @@ config MAXLINEAR_GPHY
 	  Support for the Maxlinear GPY115, GPY211, GPY212, GPY215,
 	  GPY241, GPY245 PHYs.
 
+config MAXLINEAR_86110_PHY
+	tristate "MaxLinear MXL86110 PHY support"
+	help
+	 Support for the MaxLinear MXL86110 Gigabit Ethernet
+	 Physical Layer transceiver.
+	 The MXL86110 is commonly used in networking equipment such as
+	 routers, switches, and embedded systems, providing the
+	 physical interface for 10/100/1000 Mbps Ethernet connections
+	 over copper media.
+	 If you are using a board with the MXL86110 PHY connected to your
+	 Ethernet MAC, you should enable this option.
+
 source "drivers/net/phy/mediatek/Kconfig"
 
 config MICREL_PHY
drivers/net/phy/Makefile +1 -0
index 7de69320a3a7..416128553a2a 100644
@@ -67,6 +67,7 @@ obj-$(CONFIG_MARVELL_PHY)	+= marvell.o
 obj-$(CONFIG_MARVELL_88Q2XXX_PHY)	+= marvell-88q2xxx.o
 obj-$(CONFIG_MARVELL_88X2222_PHY)	+= marvell-88x2222.o
 obj-$(CONFIG_MAXLINEAR_GPHY)	+= mxl-gpy.o
+obj-$(CONFIG_MAXLINEAR_86110_PHY)	+= mxl-86110.o
 obj-y				+= mediatek/
 obj-$(CONFIG_MESON_GXL_PHY)	+= meson-gxl.o
 obj-$(CONFIG_MICREL_KS8995MA)	+= spi_ks8995.o
drivers/net/phy/mxl-86110.c new file +616 -0

616 lines not on this page · raw message

base-commit: e6b3527c3b0a676c710e91798c2709cc0538d312
prerequisite-patch-id: 2335ebcc90360b008c840e7edf7e34a595880edf

Signature · 1 line
2.43.0
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 6 lines · On Wed, 21 May 2025 23:28:15 +0200 you wrote:

From: Stefano Radaelli <[email protected]>

Add support for the MaxLinear MxL86110 Gigabit Ethernet PHY, a low-power, cost-optimized transceiver supporting 10/100/1000 Mbps over twisted-pair copper, compliant with IEEE 802.3.

Quoted 7 lines

The driver implements basic features such as:
- Device initialization
- RGMII interface timing configuration
- Wake-on-LAN support
- LED initialization and control via /sys/class/leds

[...]

Here is the summary with links:
- [net-next,v6] net: phy: add driver for MaxLinear MxL86110 PHY

    https://git.kernel.org/netdev/net-next/c/b2908a989c59

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html