[openwrt/openwrt] kernel: add kmod-phy-motorcomm

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 7 07:36:33 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/194275c6f308ede252720c3ef7d3f485d997b15e

commit 194275c6f308ede252720c3ef7d3f485d997b15e
Author: Andrew MacIntyre <andymac at pcug.org.au>
AuthorDate: Mon Dec 29 23:38:10 2025 +1100

    kernel: add kmod-phy-motorcomm
    
    The Motorcomm YT8821 2.5G PHY is being used in some devices as an
    alternative to devices like the RTL8221B.  Package it as a kmod
    so it can be used as a device package rather than requiring changes
    to the target kernel config.
    
    Signed-off-by: Andrew MacIntyre <andymac at pcug.org.au>
    Link: https://github.com/openwrt/openwrt/pull/21399
    (cherry picked from commit 96a133737433eca069e26b1730ea5a895b8f2fd8)
    Signed-off-by: Jakub Vaněk <linuxtardis at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21531
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/linux/modules/netdevices.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index c60a947978..6e20273fe4 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -525,6 +525,23 @@ endef
 
 $(eval $(call KernelPackage,phy-aquantia))
 
+
+define KernelPackage/phy-motorcomm
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Motorcomm Ethernet PHYs
+  DEPENDS:=+kmod-libphy
+  KCONFIG:=CONFIG_MOTORCOMM_PHY
+  FILES:=$(LINUX_DIR)/drivers/net/phy/motorcomm.ko
+  AUTOLOAD:=$(call AutoLoad,18,motorcomm,1)
+endef
+
+define KernelPackage/phy-motorcomm/description
+  Supports the Motorcomm 8511/8521/8531/8531S/8821 Ethernet PHYs
+endef
+
+$(eval $(call KernelPackage,phy-motorcomm))
+
+
 define KernelPackage/dsa
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Distributed Switch Architecture support




More information about the lede-commits mailing list