USB device mode only works in 2.0
I am trying to make the up board a mass storage device and have it working partially. The problem I have now is that the device only works in 2.0 mode (480Mbps) instead of 3.0 mode (5.0Gbps). I tried Ubuntu server 18.04, 16.04 and also tried building my own kernel version 4.9.45.
The USB port works as USB 3.0 if an OTG adapter is connected and working as a host when connected to a USB 3.0 card reader (the reader is shown under 5000M root hub with lsusb -t), but I can never get it working as a device as 3.0. I am using a Type-A to 3.0 micro Type-B cable, confirmed working on other 3.0 devices.
Any suggestion would be very much appreciated. Thanks in advance.