Re: [PATCH v2 2/6] arm64: dts: imx8mp: switch usb controller to flattened model
From: Xu Yang
Date: Wed Dec 02 2026 - 21:04:50 EST
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 <xu.yang_2@xxxxxxx> 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 <xu.yang_2@xxxxxxx>
>
> 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 <mkorpershoek@xxxxxxxxxx>
Thank you for the testing. Due to the compatibility issue, we give up on
merging this patchset at the end.
Thanks,
Xu Yang