On 9/14/26 9:42 AM, Stefan Eichenberger wrote:
From: Stefan Eichenberger <[email protected]>

The i.MX95 SoC has two USB controllers, a DWC3 controller and a ChipIdea
controller. However, U-Boot might select a controller that is marked as
host only in the device tree when attempting to set up a USB gadget,
leading to failures in gadget mode.

Iterate over usb devices and skipping any that are marked host-only when
selecting the controller for gadget mode. This ensures that a controller
that is marked as device or otg is used for USB gadget functionality.

Verified on Verdin iMX95 hardware: "ums 0 mmc 0" now correctly flips
the ChipIdea OTG controller into device mode and enumerates on the
host PC.

What was the previous incorrect behavior ?

Does your board DT have /aliases { usb0 = &... } entry pointing to the chipidea controller already ? The controller indexing should match the aliases ordering.

[...]

Reply via email to