[PATCH] rockchip: Enable usb gadget on Radxa ROCK 5C
Arnaud Patard
arnaud.patard at collabora.com
Wed Mar 26 10:32:29 CET 2025
Hi,
On Wed, 2025-03-26 at 10:25 +0900, FUKAUMI Naoki wrote:
> Hi Arnaud,
>
> Basically, the Type-A OTG port of the Radxa ROCK series is intended
> to
> be used in HOST mode (unless there is a HOST/DEVICE switch).
yeah, I know that by default, it's intended as host but it's not hard
to hook a cable to use the port in device mode to use the gadget from
u-boot. Having to patch u-boot just to enable it is not very practical
imho. I would expect that enabling the gadget driver would make things
"just work". It is also easy to forget to set the 'maximum-speed' on
the phy node to make it work.
So, is there a way to achieve this goal ? I could have put the
modification around tests like "#if defined(CONFIG_USB_GADGET)" but I'm
not sure if it's a good idea/practice or not.
Arnaud
More information about the U-Boot
mailing list