I need to:
- turn off -> sleep some seconds -> turn on the USB power of beaglebone black
to be able to hardware-reset a device that is connected to USB (Huawei E220 Modem)
Already tried soft-reset (with unbind/bind and with authorize 0/1), but software reset is not enough to make the device to work well again; the device has some weird bug, that is triggered by a long-time usage (after a few days connected).
Many answers were found using /sys/debug/omap_mux, but this device does not exist anymore in new kernels.
Since this question took a pair of days to get a workable answer, I decided to post it here, with the answer, so it may be useful for others.