RockPi E USB on GPIO stopped working

I had a hat designed using USB on the GPIO pins. Now it’s stopped working. Any ideas about what happened.

Please post more information on the issue you’re facing.

The USB on the GPIO pins are USB OTG, you can set it in device tree as HOST mode.

Refer this:

I loaded Armbian and the USB on GPIO was already set to HOST. (see below) Am I missing a step to enable the 40 pin GPIO USB? Thank you in advance!

usb@ff580000 {
compatible = “rockchip,rk3328-usb\0rockchip,rk3066-usb\0snps,dwc2”;
reg = <0x00 0xff580000 0x00 0x40000>;
interrupts = <0x00 0x17 0x04>;
clocks = <0x02 0x14d>;
clock-names = “otg”;
dr_mode = “host”;
g-np-tx-fifo-size = <0x10>;
g-rx-fifo-size = <0x118>;
g-tx-fifo-size = <0x100 0x80 0x80 0x40 0x20 0x10>;
phys = <0x5a>;
phy-names = “usb2-phy”;
status = “okay”;
phandle = <0x9d>;

So I’m not much of a coder but I’ll post my solution. The GPIO pins were working fine. They are very clearly OTG. I found a “trick” on the internet. It said to plug a USB hub into the GPIO and it will force the USB on the GPIO to act as a host. I can confirm it works very well. My issue was my device(USB to Serial) was flipping the USB on the GPIO to “device” and not “host”.

1 Like