[PATCH] usb: dwc3-generic: Fix the iMX8MQ support

Bedel, Alban alban.bedel at aerq.com
Wed Apr 20 09:01:12 CEST 2022


Hi Angus,
On Tue, 2022-04-19 at 07:34 -0700, Angus Ainslie wrote:
> Hi Alban,
> On 2022-04-19 01:07, Alban Bedel wrote:
> > The binding of iMX8MQ USB controller doesn't use child nodes like
> > the other devices supported in this driver. To support it split the
> > child nodes parsing to its own function and add a field to the
> > platform data to indicate that we should just use the top node.
> > 
> 
> I'm not clear on what this is fixing. Doesn't the original code deal 
> with a devicetree stanza that has the information in either the node
> or the parent.

I have now see your commit c08db05455bc ("usb: dwc3: dwc3-generic:
check the parent nodes") which added the compatible for the imx8mq and
reference the librem5 DTS. This DTS has `port` subnodes to define the
connection to a type C connector. So with the compatible string you
added the glue driver would interpret the port nodes as DWC3 nodes,
hence the need to get properties from the parent node.

I think we should revert this patch and add support for standalone DWC3
devices instead. We could also improve the glue driver to only handle
subnode with the proper compatible.

Alban
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3627 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220420/9bb3a5bc/attachment.bin>


More information about the U-Boot mailing list