Disable USB Power

Hi, is it possible to disable the 5V Powerline of the usb ports? i want to hard reset a device that is connected via USB. Currently this only works by unplugging the device for a few seconds but i wonder if there is the possibility to do this in software.
In the scematic power to the usb 3.0 ports is enabled by GPIO1_A3 which should be number 35 if im not wrong.
Im using armbian and want to control it with a python script in the end.
Thanks in advance!

Maybe this can help?

1 Like

close, but not quite. i need to really cut power for a few seconds since there is a 12V converter connected that needs some time to empty the caps.

I seriously doubt the usb driver in the kernel will survive that and that it would be possible to do this from userland, but might be wrong.

Maybe this could help:

But you need an USB switch that supports this feature, its optional to my knowledge.

1 Like

Yeah, i already found uhubctl, but it doesn’t list rock pis as compatible, only raspi’s.
It Just seemed from the schematic, that USB Power could be easily controlled over GPIO1_A3, but i can’t access it over the standard way described in the wiki.

Just try it, if this functionality is implemented in the rockchip driver it should just work. Otherwise I doubt you can control the GPIO, as it is probably “occupied” by the driver. Then only the option wait for an updated driver (if the hw supports that mode which is likely) or adding an extra hub exists.