[PATCH v2 2/3] usb: mtu3: add MT8189 remote wakeup support

Louis-Alexis Eyraud louisalexis.eyraud at collabora.com
Thu Dec 3 05:37:25 PST 2026


Add specific register definitions and handling to support
remote wakeup for the MT8189 SoC.

Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud at collabora.com>
---
 drivers/usb/mtu3/mtu3_host.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c
index 8138b3f3096a..e7ab0fe81b73 100644
--- a/drivers/usb/mtu3/mtu3_host.c
+++ b/drivers/usb/mtu3/mtu3_host.c
@@ -30,6 +30,10 @@
 #define WC0_IS_P	BIT(12)	/* polarity */
 #define WC0_IS_EN	BIT(6)
 
+/* mt8189 */
+#define PERI_WK_CTRL0_8189	0x0
+#define WC0_IS_EN_P_89		BIT(18)
+
 /* mt8192 */
 #define WC0_SSUSB0_CDEN		BIT(6)
 #define WC0_IS_SPM_EN		BIT(1)
@@ -70,6 +74,7 @@ enum ssusb_uwk_vers {
 	SSUSB_UWK_V1_7, 	/* mt8196 IP0 */
 	SSUSB_UWK_V1_8, 	/* mt8196 IP1 */
 	SSUSB_UWK_V1_9, 	/* mt8196 IP2 */
+	SSUSB_UWK_V1_10,	/* mt8189 all */
 };
 
 /*
@@ -126,6 +131,11 @@ static void ssusb_wakeup_ip_sleep_set(struct ssusb_mtk *ssusb, bool enable)
 		msk = WC1_IS_EN_P2_96;
 		val = enable ? msk : 0;
 		break;
+	case SSUSB_UWK_V1_10:
+		reg = ssusb->uwk_reg_base + PERI_WK_CTRL0_8189;
+		msk = WC0_IS_EN_P_89;
+		val = enable ? msk : 0;
+		break;
 	case SSUSB_UWK_V2:
 		reg = ssusb->uwk_reg_base + PERI_SSUSB_SPM_CTRL;
 		msk = SSC_IP_SLEEP_EN | SSC_SPM_INT_EN;

-- 
2.56.1




More information about the linux-arm-kernel mailing list