From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796213354; b=2hFWjKqWq1VDDuYUKtryolM+hl5m75kGLdLRitbDipparwbbiYUZattMF+UOoQZ4Bp40 HfzWoxuNu/LWotopFfBd4GITeMmh485szVlTFtbwphFHNhP/7zi/entgsrV9hToCWPT3l pTgxeuRhy5Z/XPV7K5G5W41fTTwPtMIshLa2j+tojo3g+08ZRkDM2x52RvsHPl3FCrsih b4Ttw0ih0rqh2Gig7NXq9f75rURGET+GX0ZJGCxTzgXgu1TyUwwGNfiWtHNAhVGvKI0di iFD1D5ylhWhMq8ttLWAE6b5N/4XHHknjvt8xePPnL+TVp9Xn5lYo/Juq09O3qRxaQnQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796213354; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type; bh=cmey/v9f87MlyCYszzshKkGR1apDg2INI2bVktJJuuc=; b=oetxIo8CYIA++SrRNsbCIZN4MFO525GSpHycHgWzDj10QOVOX/odRWiIA37TPptEP3Pe bouPBToB9J1JJk98AgudGY9KsqtVECsZpWS6f2OJX+LT3a+uHx/r+62EPLoRntK9oINhf ZdM01zTbmXmfUVo0V4+hwQ12feQXGo48/9epKIubcors5B4INNv2zr57cXoUcJjghg6XO 7lvzGk6p3vH8hpJ0UhR53ikeaIUzNR8uKPmH+mxybsBFWMHZRSYjb0cTLtzn70ZU+kUha s9/KtIXFzuN4dgEM6c+kI7Y2/cBc6y4clTyIjXO3L0uutpVC3lTYo2w55M4EBanB9+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F94WYKmK; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (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 64FD4606A336; Wed, 2 Dec 2026 12:09:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F94WYKmK Received: by smtp.kernel.org (Postfix) with ESMTPSA id 669BC1F0089F; Wed, 2 Dec 2026 12:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796213353; bh=cmey/v9f87MlyCYszzshKkGR1apDg2INI2bVktJJuuc=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=F94WYKmKo/rLeFLjJw8RDSG6mRcKZB1UUN9JnfbnCN8jHsDqoZA0sRjk/5IVYySqY Pk+II3UzlJsSA7yxxXZqPdqYgBfCxb8DZDg63oZBsn3covzp0dLEGK9ZuzcI0WX3cE t1qGeVB54Numn1kpuwrSe5K2sdX0GjfS4xB/ShNDk9yskCIn+wU5gE0F3+vH2Agf8S Vu2Q2sKaSSPx/F4OSleNf6LCrNABxFkF/4y6Kw6d0TL/CWHIAgyWg/95hC40AiOlGR 2Ce89BeRnu7iLDSOsLIK3XY8EHbK16QsOnHcpL0QUIcTLFdyPSvm7dCZMlmceL6Air xQZRaFCrfTqrA== From: Mattijs Korpershoek To: Xu Yang , robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, Frank.Li@nxp.com, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jun.li@nxp.com Subject: Re: [PATCH v2 2/6] arm64: dts: imx8mp: switch usb controller to flattened model In-Reply-To: <20260427082728.3641872-2-xu.yang_2@nxp.com> References: <20260427082728.3641872-1-xu.yang_2@nxp.com> <20260427082728.3641872-2-xu.yang_2@nxp.com> Date: Wed, 02 Dec 2026 13:09:11 +0100 Message-ID: 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 Hi Xu, Thank you for the patch. On Mon, Apr 27, 2026 at 16:27, Xu Yang wrote: > Switch to use flattened model for all USB controllers. To enable USB > controllers with restricted DMA access range to work correctly, add a > simple-bus to constrain the DMA address. > > Note: > This changes the USB controller compatible string from "fsl,imx8mp-dwc3" > to "nxp,imx8mp-dwc3". This requires a kernel with CONFIG_USB_DWC3_IMX > enabled; otherwise, the new DTB will not be compatible with older one. > See commit 76fc9452a6bf ("usb: dwc3: introduce flatten model driver of > i.MX Soc") > > Signed-off-by: Xu Yang I've tested this on linux-next (next-20261130). I've applied patch 1/6 and 2/6. On my toradex Verdin iMX8M Plus (freescale/imx8mp-verdin-nonwifi-ivy.dtb), I can list usb devices: [root@localhost ~]# uname -a Linux localhost 7.4.0-rc5-next-20261130+ #1 SMP PREEMPT_RT Wed Dec 2 10:42:27 CET 2026 aarch64 GNU/Linux [root@localhost ~]# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 04b4:6502 Cypress Semiconductor Corp. CY4609 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 002: ID 04b4:6500 Cypress Semiconductor Corp. We can see that the new flatten driver is used: [root@localhost ~]# lsmod | grep dwc3 dwc3_imx 20480 1 dwc3 221184 1 dwc3_imx udc_core 90112 1 dwc3 So: Tested-by: Mattijs Korpershoek Some review questions below: > > --- > Changes in v2: > - add note in the commit message > --- > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 113 ++++++++++------------ > 1 file changed, 52 insertions(+), 61 deletions(-) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > index cc0246a9c003..8b3aab14ccf1 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > @@ -2229,67 +2229,6 @@ hdmi_tx_phy: phy@32fdff00 { > }; > }; > [...] > - phy-names = "usb2-phy", "usb3-phy"; > - snps,gfladj-refclk-lpm-sel-quirk; > - snps,parkmode-disable-ss-quirk; > - }; > - }; > - > pcie0: pcie: pcie@33800000 { > compatible = "fsl,imx8mp-pcie"; > reg = <0x33800000 0x400000>, <0x1ff00000 0x80000>; > @@ -2390,6 +2329,58 @@ gpu2d: gpu@38008000 { > power-domains = <&pgc_gpu2d>; > }; > > + bus@38100000 { Why do we need an unit address here (the @38100000 part)? For the imx95 equivalent, we don't have this (it's hsio-bus instead) Looking at the commit history, adding the unit seems to add a warning and it was explicitely fixed by Frank via commit f49ad4b40070 ("arm64: dts: imx95: rename bus@4c100000 to hsio-bus") Can we do the same here? With that fixed: Reviewed-by: Mattijs Korpershoek > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + dma-ranges = <0x40000000 0x40000000 0xc0000000>; > + ranges; > + [...]