From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A63E606A324 for ; Mon, 2 Nov 2026 06:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=nA8rWRAW; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=JUfj+mSF DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:References:To:From:Subject:Cc:Message-Id:Date:Mime-Version: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=uIqK8Eq8CEDDZnWndYGYdQLaOXQzt+asZ5awW3kpunk=; b=nA8rWRAWj8ZuYOnGDqA9C3Dv1c Z/rmxDnrB5JiiyPnSDe40IrmNoTAJ69GftlzasLluwzLzGAjWIjqbL244P8OFBHAcbZrisPDr6d1O KqcegDLIlmQeuTDI5tJ8bO6/ySF5p0CaX5aWKQ6q2ha0AMH4YaLzjndWH/gPO/go7h6vftPvqeRuy AZ5dLlh8lLHIBPG8v7RfVb5qP7Hw2xdYmBtsNWPQ+x4bcelkQrnUqeux0YA+HocLvBp8RA6E3BC3m NvQgtIEuLF0pQNB2e050pmib8jdS94vZxjptGbSWVmxBTCwoRR5o8SaaQ84+10KHZWqQUu8BYQF5a 32MECQJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xNlVg-0000000FeEe-3sfC; Mon, 02 Nov 2026 06:27:12 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xNlVe-0000000FeEM-3kPy; Mon, 02 Nov 2026 06:27:10 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 9A0F343225; Mon, 2 Nov 2026 06:27:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 208CC1F000C1; Mon, 2 Nov 2026 06:27:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793600829; bh=2wkyyxCXcw31vN0kWDvVp8R9jdhVQobQ/AyYbLR2pHk=; h=Date:Cc:Subject:From:To:References:In-Reply-To; b=JUfj+mSFyWi89QZqMgxFHU1jsY8ia6jOnc5kmdWeX8UNEKiO37kG2oTLCBfuGQd1M 93Apw1F76fupZmBgsGArRgUPPVERy7Yy4oL9lBRGzfwphsgwGL4cgMfY/Pc/BdSa7m zUEfVi9OUCWt3K6HWMtHPwyH3gd0sPRAT2foWrB7bbtorRxYYmzLrzcvehTUYOFoIT PS8/BSUBG50L86RyP9gRha77l9LsL7aWX0ve/+WlU8teBQYlng+IT/SN8FxuCSMJbX eN46VDHuGQ4r5y6o7vVp2BYOn1MorDvWQ5usgde4aRWVhiB7et6Rs3U4zKPv6Mxjwv 9731/zMoa5DcA== X-Archived-By: Mime-Version: 1.0 Date: Mon, 02 Nov 2026 14:27:04 +0800 Message-Id: Cc: , , , "Chunyan Zhang" , "Troy Mitchell" , , "linux-riscv" , "Troy Mitchell" Subject: Re: [PATCH] riscv: dts: spacemit: k3: add USB3 port A (DRD) nodes From: "Troy Mitchell" To: "Chunyan Zhang" , "Yixun Lan" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexandre Ghiti" , "Aurelien Jarno" X-Mailer: aerc 0.21.0-reader-ipc4 References: <20261030094024.3226356-1-chunyan.zhang@linux.spacemit.com> In-Reply-To: X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6480625824300076350==" Sender: "linux-riscv" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --===============6480625824300076350== Content-Type: multipart/signed; boundary=90a2fe1c88bb8110eb48ee7ba039607e9e01d3d22524d3001346e8bf68cd; micalg=pgp-sha512; protocol="application/pgp-signature" --90a2fe1c88bb8110eb48ee7ba039607e9e01d3d22524d3001346e8bf68cd Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Hi Chunyan, On Fri Oct 30, 2026 at 5:40 PM +0800, Chunyan Zhang wrote: > Describe the DWC3 controller and its USB 2.0 PHY for USB3 port A > of the K3 SoC. > > Only the U2 lane is described: Port A's SuperSpeed PHY has no driver > yet, so the port runs at high-speed (maximum-speed =3D "high-speed"). > > Enable USB3 port A with dr_mode =3D "peripheral", so it can be used as > a USB device. Port A is a Type-C port behind a FUSB301, so please note in the commit message that it's device-only until the CC controller is described. Was this tested with a C-to-C cable? That depends on the FUSB301's power-on CC mode, since nothing configures it yet. > > Signed-off-by: Chunyan Zhang > --- > arch/riscv/boot/dts/spacemit/k3-pico-itx.dts | 9 ++++++ > arch/riscv/boot/dts/spacemit/k3.dtsi | 30 ++++++++++++++++++++ > 2 files changed, 39 insertions(+) > > diff --git a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts b/arch/riscv/bo= ot/dts/spacemit/k3-pico-itx.dts > index b084a35aa00e..74d4fdf9e405 100644 Please rebase onto spacemit for-next, which already has Aurelien's USB3 phy rework. > --- a/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts > +++ b/arch/riscv/boot/dts/spacemit/k3-pico-itx.dts > @@ -323,6 +323,15 @@ &usb2_phy { > status =3D "okay"; > }; > =20 > +&usb3a_u2phy { > + status =3D "okay"; > +}; > + > +&usb3a { > + dr_mode =3D "peripheral"; > + status =3D "okay"; > +}; After the rebase these should go before &usb3b. > + > &usb3d_u2phy { > status =3D "okay"; > }; > diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/s= pacemit/k3.dtsi > index c3f2dce0969c..220dfe29bb78 100644 > --- a/arch/riscv/boot/dts/spacemit/k3.dtsi > +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi > @@ -630,6 +630,36 @@ gmac2_axi_setup: stmmac-axi-config { > }; > }; > =20 > + usb3a: usb@cad00000 { > + compatible =3D "spacemit,k3-dwc3"; > + reg =3D <0x0 0xcad00000 0x0 0x10000>; > + interrupts =3D <118 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-parent =3D <&saplic>; > + clocks =3D <&syscon_apmu CLK_APMU_USB3_PORTA_BUS>; > + clock-names =3D "usbdrd30"; > + resets =3D <&syscon_apmu RESET_APMU_USB3_A_AHB>, > + <&syscon_apmu RESET_APMU_USB3_A_VCC>, > + <&syscon_apmu RESET_APMU_USB3_A_PHY>; > + reset-names =3D "ahb", "vcc", "phy"; > + phys =3D <&usb3a_u2phy>; > + phy-names =3D "usb2-phy"; > + phy_type =3D "utmi"; > + snps,dis_enblslpm_quirk; > + snps,dis_u2_susphy_quirk; snps,dis_u3_susphy_quirk is missing too, like usb3b/c/d. --=20 Troy Mitchell --90a2fe1c88bb8110eb48ee7ba039607e9e01d3d22524d3001346e8bf68cd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSL4Ay2cExaPXAQcU2YCe+A+TM0LwUCaugtOAAKCRCYCe+A+TM0 L6tmAQD6H+sVHQCkV2Ocd85M+lpBTtSKrtx5qkrvmHZhgR1TpwD/UzoIixtIl4bI 99V9oZLJbvyGtVPtxaLmVdgI7NldqA4= =eBlM -----END PGP SIGNATURE----- --90a2fe1c88bb8110eb48ee7ba039607e9e01d3d22524d3001346e8bf68cd-- --===============6480625824300076350== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv --===============6480625824300076350==--