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