diff --git a/target/linux/ramips/mt7621/config-6.12 b/target/linux/ramips/mt7621/config-6.12 index dac61e6ba1..b59d25420d 100644 --- a/target/linux/ramips/mt7621/config-6.12 +++ b/target/linux/ramips/mt7621/config-6.12 @@ -229,6 +229,7 @@ CONFIG_PHYLIB=y CONFIG_PHYLIB_LEDS=y CONFIG_PHYLINK=y CONFIG_PHY_MT7621_PCI=y +# CONFIG_PHY_MTK_TPHY is not set # CONFIG_PHY_RALINK_USB is not set CONFIG_PINCTRL=y CONFIG_PINCTRL_AW9523=y diff --git a/target/linux/ramips/patches-6.12/130-phy-mediatek-allow-building-T-PHY-driver-for-MT7621-.patch b/target/linux/ramips/patches-6.12/130-phy-mediatek-allow-building-T-PHY-driver-for-MT7621-.patch new file mode 100644 index 0000000000..8dc5a39545 --- /dev/null +++ b/target/linux/ramips/patches-6.12/130-phy-mediatek-allow-building-T-PHY-driver-for-MT7621-.patch @@ -0,0 +1,24 @@ +From 939c662ec8a221aedde213583e07e8c0cac810af Mon Sep 17 00:00:00 2001 +From: Shiji Yang +Date: Thu, 19 Feb 2026 14:23:56 +0800 +Subject: [PATCH] phy: mediatek: allow building T-PHY driver for MT7621 MIPS + SoC + +MT7621 also has compatible T-PHY which attached to the XHCI interface. + +Signed-off-by: Shiji Yang +--- + drivers/phy/mediatek/Kconfig | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/phy/mediatek/Kconfig ++++ b/drivers/phy/mediatek/Kconfig +@@ -26,7 +26,7 @@ config PHY_MTK_XFI_TPHY + + config PHY_MTK_TPHY + tristate "MediaTek T-PHY Driver" +- depends on ARCH_MEDIATEK || COMPILE_TEST ++ depends on ARCH_MEDIATEK || SOC_MT7621 || COMPILE_TEST + depends on OF && OF_ADDRESS + depends on HAS_IOMEM + select GENERIC_PHY