Rock 4 SE OTG/USB_Gadget Not Working

Reproduction:
Take latest release of Debian for SE from here : https://github.com/radxa/debos-radxa/releases/download/20220820-0621/rockpi-4b-debian-bullseye-xfce4-arm64-20220820-0811-gpt.img.xz
Flash successfully with balenaEtcher.

Configure USB Gadget:
echo “dtoverlay=dwc2” | sudo tee -a /boot/config.txt
echo “dwc2” | sudo tee -a /etc/modules
echo “libcomposite” | sudo tee -a /etc/modules
sudo touch /usr/bin/usb
sudo chmod +x /usr/bin/usb

Open /etc/rc.local and add a call to ./usr/bin/usb before the script executes the command “exit 0”.

Specify functionality in /usr/bin/usb file

cd /sys/kernel/config/usb_gadget/

mkdir -p usb
cd usb
echo 0x1d6b > idVendor # Linux Foundation
echo 0x0104 > idProduct # Multifunction Composite Gadget
echo 0x0100 > bcdDevice # v1.0.0
echo 0x0200 > bcdUSB # USB2

mkdir -p strings/0x409
echo "fedcba9876543210" > strings/0x409/serialnumber
echo "Tobias Girstmair" > strings/0x409/manufacturer
echo "iSticktoit.net USB Device" > strings/0x409/product

mkdir -p functions/hid.usb0
mkdir -p functions/hid.usb1

mkdir -p configs/c.1
echo 250 > configs/c.1/MaxPower

# Keyboard
echo 1 > functions/hid.usb0/protocol
echo 1 > functions/hid.usb0/subclass
echo 8 > functions/hid.usb0/report_length
echo -ne \\x05\\x01\\x09\\x06\\xa1\\x01\\x05\\x07\\x19\\xe0\\x29\\xe7\\x15\\x00\\x25\\x01\\x75\\x01\\x95\\x08\\x81\\x02\\x95\\x01\\x75\\x08\\x81\\x03\\x95\\x05\\x75\\x01\\x05\\x08\\x19\\x01\\x29\\x05\\x91\\x02\\x95\\x01\\x75\\x03\\x91\\x03\\x95\\x06\\x75\\x08\\x15\\x00\\x25\\x65\\x05\\x07\\x19\\x00\\x29\\x65\\x81\\x00\\xc0 > functions/hid.usb0/report_desc
ln -s functions/hid.usb0 configs/c.1
# End Keyboard

# Mouse
# HID Discriptor for Mouse Obtained Here: https://gist.github.com/dweinstein/7aa5bbc88364af75d5a4
echo 1 > functions/hid.usb1/protocol
echo 1 > functions/hid.usb1/subclass
echo 3 > functions/hid.usb1/report_length
echo -ne \\x05\\x01\\x09\\x02\\xa1\\x01\\x09\\x01\\xa1\\x00\\x05\\x09\\x19\\x01\\x29\\x03\\x15\\x00\\x25\\x01\\x95\\x03\\x75\\x01\\x81\\x02\\x95\\x01\\x75\\x05\\x81\\x03\\x05\\x01\\x09\\x30\\x09\\x31\\x15\\x81\\x25\\x7f\\x75\\x08\\x95\\x02\\x81\\x06\\xc0\\xc0 > functions/hid.usb1/report_desc
ln -s functions/hid.usb1 configs/c.1
# End Mouse

ls /sys/class/udc > UDC

Restart.
/dev/hidg* is not present

Edit: I have ordered a USB-A to USB-A cable, as I understand USB-A to USB-C doesn’t work properly.

Update: USB-A to USB-A cable does not resolve the issue.

I have been able to enable OTG and set a device descriptor (despite not yet working) by loading dwc3 instead of dwc2.

I changed USB plug and my device descriptor started to be polled correctly. Also, USB-A to USB-C cable works fine.