From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.251.105.195 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796305060; b=jSwmIqxPws3azsUwbTwyzwWDcsG9+YBXOQf/YAmDo2VScUneeWUl07WOwD/LsN285Bev mpTAIPX0ZuiYQR+OodN4dfdFRcSMQt99SRHiKmmiyyRiSp2L3PxnTLX/NA2waS7MuKQAY NokKIKcTm1GcdVuVN+1PZ+xo1x5enWCSs0HxVNZH3TEq6MRViESE8mr63aGhAX5MeXzDc YUfeIcLdLiTRoroqQnE3TDDGTRDlr3LyiWWDs1Mn9csct5QNsyc6GP6nJ2caY8xJX8zdA 9ebvDokOnDcA9pkAT3uiyuQlbTzimjWNX+0CxdGy6XyDXcd4wsx9woadR/1EIlG3fwA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796305060; h=DMARC-Filter:DKIM-Signature:Received:From:Subject:Date:Message-Id: MIME-Version:Content-Type:Content-Transfer-Encoding:X-B4-Tracking: X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature:X-Developer-Key; bh=nJWWfbpu/V56+mxNgd1uQxmwaTB8oFh/DO/egeJA8Ik=; b=LwfoOorxDhS9wFbe6nQGQAuNpSFDoX8xSOpb4NmqMN3IEFtwPEtrYJqPWjI3KPDgBd4b IpXOjItGTFw/9nL5nUW2YUG1IWT0p8U55egdoMeyktdhdlMlN6YUGh6uTImccOrjd1G0Z tdohwIeghsy3g/DMFuDQ7DSWJG+BYBQTLE2VPb9bbEXTSYrBARC/O5fxLvWPV8yqq19/a Q2doYUt50IT79+pT0rcKxSIPG0C3mcDPjJirEURBmvP/EGapioZSkVgVqNpVcoDcUdyAb GM7eA3cvg+PHbras3RdYbnh/Mbwy7erPNCSuDXqd/X3aEBWxaGL9LIABGqD8twtYBcw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=BIGnOb4o; arc=none smtp.remote-ip=148.251.105.195 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF416606A322; Thu, 3 Dec 2026 13:37:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CF416606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=mail header.b=BIGnOb4o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1796305058; bh=citycqc8r/GCbOAQF2BwNGZebydRKybF5kkSJt2GjU0=; h=From:Subject:Date:To:Cc:From; b=BIGnOb4oqXW7WEVMNCVFTrWq43FTj3OvJFAFyzqoRV3vkMzrshh8L74xmcr9uo2ii MmPNztNhww1kg4WMy1bwTE2sLMhfa0RR+fpX4WkQ61csUDHMCJYkG89rS0q2B4Kpl1 5gkn/67DzV4mOvhTgfH/bErpOi+rxWh10MzG7WHxy096I603ZVaTYhfVC9Zt3FndJO 0PzY9ezndGFQUTrNtYkqZeU9WdxIrTJAAfRwV8gxuTS/cdNdqDCTfYAeJupamtfjD3 vWJjNyAhCbUMOsCIRPxtzCM5IoiLNdDIsikRQ2e2/9+Jqml1QguGCq4v+0krd/RqTE DRsjQNPtwUb7Q== Received: from yukiji.home (unknown [100.64.0.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: laeyraud) by bali.collaboradmins.com (Postfix) with ESMTPSA id 4E9FF17E0192; Thu, 03 Dec 2026 14:37:37 +0100 (CET) From: Louis-Alexis Eyraud Subject: [PATCH v2 0/3] Add USB support for Mediatek MT8189 SoC Date: Thu, 03 Dec 2026 14:37:23 +0100 Message-Id: <20261203-mt8189-add-usb-support-v2-0-9021c5fe2acc@collabora.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/3WOzQqDMBCEX0X23C0m/nvqexQPSdzWgBqbRLGI7 95U6bGXhdnhm5kNHFlNDupoA0uLdtqMQfBLBKoT45NQt0EDj3nOWBLj4EtWVijaFmcn0c3TZKx HwctEZFnKiryCAE+WHno9gu/NqS295pDvzydI4QiVGQbt62ik1ePREQ58gU47b+z7GLawg/j5/ zYsDGPMirQSksekyvSmTN8Laay4hiJo9n3/AKHUdw7xAAAA X-Change-ID: 20261130-mt8189-add-usb-support-a283a5541769 To: Chunfeng Yun , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Mathias Nyman Cc: kernel@collabora.com, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Louis-Alexis Eyraud , Mingjin Ge X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796305057; l=3064; i=louisalexis.eyraud@collabora.com; s=20250113; h=from:subject:message-id; bh=citycqc8r/GCbOAQF2BwNGZebydRKybF5kkSJt2GjU0=; b=5TD6p57rgvbSi0LUNICqf1VhKkW9+EmxvPMi5ADArZj6oNYcvAKjxCgKZrdc/kA0nVPH5c6B7 nqrHCbFAgtCDO0mMZj8MrZXBa767wSwNnTfhd5zxf5XupP58tIIJbgP X-Developer-Key: i=louisalexis.eyraud@collabora.com; a=ed25519; pk=CHFBDB2Kqh4EHc6JIqFn69GhxJJAzc0Zr4e8QxtumuM= This patch series adds the USB support for Mediatek MT8189 SoC and its variants (MT8371 and MT8391). The MT8189 SoC has five USB controllers, with different capabilities: - 0: Supports USB 3.2 Gen1 and USB 2.0 dual role capability - 1: Supports USB 2.0 host only capability - 2: Supports USB 2.0 host only capability - 3: Supports USB 3.2 Gen1 host only and USB 2.0 host only capability - 4: Supports USB 2.0 host only capability Only the first controller (0) is behind the Mediatek USB3 DRD Controller (MTU3). The series is a continuation of a previous one ([1]) that was never completed. The review [2] points several required fixes but no new revision was sent on mailing lists. Though, the MT8189 compatible was added later to the Mediatek xHCI bindings as a patch by 23bba7f33bb1 ("dt-bindings: usb: Support MediaTek MT8189 xhci") but the remote wakeup support changes in the xhci-mtk driver were not submitted. About the differences with [1], the original patch was rebased on current linux-next tree. Its title and description were reworded and the SSUSB_UWK_V1_10 definition value was modified so its matches mediatek,syscon-wakeup parameter value defined for MT8189 in the Mediatek xHCI bindings ([3]). Since only one controller of the five is behind MTU3 controller, as stated in review [2], new patches were added to add the MT8189 comptible and the remote wakeup support for MT8189 in the MTU3 bindings and driver. The series been tested with a kernel based on linux-next tree (tag: next-20261202) on the Mediatek Genio 720-EVK (MT8391) and 520-EVK (MT8371) boards. [1]: https://lore.kernel.org/linux-mediatek/20251203013521.2038888-1-mingjin.ge@mediatek.com/ [2]: https://lore.kernel.org/linux-mediatek/a709ada6-eb68-4609-ae8c-b3bb8bcf01ae@collabora.com/ [3]: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml?h=next-20261130#n172 Signed-off-by: Louis-Alexis Eyraud --- Changes in v2: - Rebased onto next-20261202 - Fixed in patch 1 the two issues detected by Sashiko for the "mediatek,syscon-wakeup" parameter: - new MT8189 value description - preexisting enum indentation issue - Link to v1: https://lore.kernel.org/r/20261202-mt8189-add-usb-support-v1-0-5749ab20ec84@collabora.com --- Louis-Alexis Eyraud (2): dt-bindings: usb: mtu3: Add support for MT8189 SoC usb: mtu3: add MT8189 remote wakeup support Mingjin Ge (1): usb: xhci-mtk: add MT8189 remote wakeup support Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml | 4 +++- drivers/usb/host/xhci-mtk.c | 10 ++++++++++ drivers/usb/mtu3/mtu3_host.c | 10 ++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) --- base-commit: 368dbf53b0d21903f0b6d13a223c0a40ac7c2da8 change-id: 20261130-mt8189-add-usb-support-a283a5541769 Best regards, -- Louis-Alexis Eyraud