1
1

kernel: modules: add new driver package phy-mtk-tphy

MediaTek T-PHY controller supports multiple usb2.0, usb3.0 ports,
PCIe and SATA. ARM mediatek and ramips/mt7621 targets require this
package to make the XHCI work properly.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22094
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Shiji Yang 2026-02-19 20:06:08 +08:00 committed by Hauke Mehrtens
parent 109844e32f
commit aae80160a6

View File

@ -1935,9 +1935,25 @@ endef
$(eval $(call KernelPackage,usb-xhci-hcd))
define KernelPackage/phy-mtk-tphy
TITLE:=MediaTek T-PHY controller support
HIDDEN:=1
KCONFIG:= \
CONFIG_GENERIC_PHY=y \
CONFIG_PHY_MTK_TPHY
DEPENDS:=@(TARGET_mediatek||TARGET_ramips_mt7621)
FILES:=$(LINUX_DIR)/drivers/phy/mediatek/phy-mtk-tphy.ko
AUTOLOAD:=$(call AutoProbe,phy-mtk-tphy,1)
endef
$(eval $(call KernelPackage,phy-mtk-tphy))
define KernelPackage/usb-xhci-mtk
TITLE:=xHCI support for MediaTek SoCs
DEPENDS:=+kmod-usb-xhci-hcd
DEPENDS:= \
+kmod-usb-xhci-hcd \
+(TARGET_mediatek||TARGET_ramips_mt7621):kmod-phy-mtk-tphy
KCONFIG:=CONFIG_USB_XHCI_MTK
HIDDEN:=1
FILES:= \