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=1796287307; b=i0DA+34BrQwXPhL/Io9MwYpu4oX2+qhMkeubHWQxmW7R6+e3tGZrxDtmzLdjRTs+yL+g Z1L2Kptc2BowE+fQDmOqAgI1CdkDTzbFJWC29s5P3VbUpUCVvTHBK6j9G7y2C8xcNJOd2 RKPzRkcH0qFGtOMHqBDlq9MFiU1Yu9r7OwJxez9SR+oVTC5pwQ8FCZ0dZzF21iTB/ObTf 0jSQNx4xyobI6TVIXesgqPogHR46WySn2g9yQN4NGgtEgw5t9c39ID9+1KU5fH/o9YPbI SUr+PZrFdgnRnPsEBMHAHuDdxCaCWJ+NsGoX0zzByMQfQ4IVRy5Qk4SIpMYfBpxpptQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796287307; h=Received:DKIM-Signature:From:To:Cc:Subject:In-Reply-To:References: Date:Message-ID:MIME-Version:Content-Type; bh=r6JcWldk62+fZNnxgQ9oruWdIUi6zOl/rNQvcRKjO9g=; b=BF1DaJsdYhVmERt3/SmhqniWWJBUoTVjTNCwYpqni1xbT8CeXPdK52pIkmRP971g5eiA y9Yc79rkGJgwBXoDNFamn6j3JghGTtQriXSnjeKxyTix9xMFFdyYQG/lw/cFEGRwHH0P5 PxvoWfgEITAFkw3k589Oz9wK1Vi1fbRcCrXqqBTWMiAjL+h3HPmLKF/xOFj8zVr0nPeQB Yyef0hhlwuMlZ+OkQUVt1JHmPAHoNAhslhbxMoXjd5rjgxIPKxA9IdaxnqkNnoaCKpcwQ aeEVIcqGeWlX1JiyEWnDsOLzDRILVQqRp59+qR650YwIol6Fw/4ikEZ+SbJ89/RcFqA== 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="WRiBJuz/"; 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 7F011606A322; Thu, 3 Dec 2026 08:41:47 +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=WRiBJuz/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94E361F000C1; Thu, 3 Dec 2026 08:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796287307; bh=r6JcWldk62+fZNnxgQ9oruWdIUi6zOl/rNQvcRKjO9g=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=WRiBJuz//ct/mFJAWIHIrd0QJR0cvrCta2dcMZk9PlS/7GebI7donfUHkO+eoZZv9 NdFoXaOPI2/gb+EfNqGWJRYsZ7VtCSftR53QU7xkDSr5noE68SFbRCiCjaL5Oew/P1 cDwbaBpaZjkbpNFdvo2eQyOiem/rFqwS2weE3xEHuVkfKkGqCQq38GVweOQOAoJUfl OfwSg2Iu1AXrYu4DmK/NhW3fdXkQMPDa2kTNBotGOIwImI0Uyfk0ypOQHuCsgs/0Dm bYQ5MkRzrLnpizHg4C+0fpXqR+DAVhPbvJngQBDBKkoTbwJuu2gI43YxEp/ZS3arox ftCs3viXdo1CA== From: Mattijs Korpershoek To: Xu Yang Cc: 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, 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: References: <20260427082728.3641872-1-xu.yang_2@nxp.com> <20260427082728.3641872-2-xu.yang_2@nxp.com> Date: Thu, 03 Dec 2026 09:41:44 +0100 Message-ID: X-Mailing-List: imx@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain On Thu, Dec 03, 2026 at 10:01, Xu Yang wrote: > Hi Mattijs, > > On Wed, Dec 02, 2026 at 01:09:11PM +0100, Mattijs Korpershoek wrote: >> 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 > > Thank you for the testing. Due to the compatibility issue, we give up on > merging this patchset at the end. Oh, I see, thank you for letting me know. > > Thanks, > Xu Yang