Hi Arun,
There is a utility called `lsusb` that you can add to your Yocto image. Add the following IMAGE_INSTALL line to gsrd-socfpga/agilex5_dk_a5e065bb32aes1-gsrd-rootfs/conf/local.conf:
# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
# track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you.
CONF_VERSION = "2"
# support lsusb
IMAGE_INSTALL:append = " usbutils"
Then rebuilt your SD card image with
bitbake gsrd-console-image
The output I see when the PNY USB stick I linked above is plugged in:
root@agilex5dka5e065bb32aes1:~# lsusb --tree
/: Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 480M
/: Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci-hcd/1p, 10000M
|__ Port 001: Dev 002, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
root@agilex5dka5e065bb32aes1:~#
This shows that there are 2 USB hosts, and that bus 2 is the USB 3 host. If you poll the devices and look at usb2 instead of usb1, we see USB 3 compatibility.
root@agilex5dka5e065bb32aes1:~# cat /sys/devices/platform/soc\@0/11000000.usb1/xhci-hcd.0.auto/usb2/2-1/version
3.20