USB Gadget support in DB820c

Hi Team,

I’m working with Debian image in DB820c. I want to know how to enable the db820c as device/gadget mode. I have changed the dr_mode = “peripheral” in dts file and changed USB gadget support settings in menuconfig. Then I built the kernel and flashed the image. But still the board is in Host mode.
I would like to know the procedure to enable the DB820c as gadget/device mode and operate in USB mass storage mode.

@ndec
@Loic

Thanks in advance,
Naveena

IIRC the DB820C runs the USB2.0 pins in device-only mode and the USB3 pins in host-only mode. The DB820C design isn’t flexible in this regard so the roles of the USB sockets cannot be changed. There is a hub downstream of the USB3 pins and they cannot be run in device mode.

I’m using custom board for which I need to enable device mode/USB mass storage support. The USB supports both device and host mode. But I’m not sure about the drivers to be enabled to make it as Mass storage gadget. I would like to know the drivers and controllers to be enabled for this.

@danielt
@ndec
@Loic

Thanks in advance,
Naveena