GL-B1300 USB Power Control GPIO

I would like to use the router with OpenWRT as a managing device controlling peripherals.

One of the goal is to power control the peripherals by controlling the USB port power.
On the PCB GL-B1300_V1.33, the USB power are managed by 2 IC U49 and U50.
U49 is populated and a signal seems to be controlling it.

Would it be possible to control this signal via GPIO ?
If so which GPIO ?
Which configuration (device tree/pin mux) would be needed ?

For internal USB, U50 is not populated and power is always applied via a shunt resistor.
Would it be possible to know compatible IC for U50 and which GPIO is the control for that ?

What is the load current ability for the 5v rail ?

Thank you for the support.
Best Regards

GPIO0 controls usb power.
When not configure dts, use the following command,

# export gpio0(base address 412+0)
echo 412 >/sys/class/gpio/export 

# usb power off
echo low >/sys/class/gpio/gpio412/direction 

# usb power on
echo high >/sys/class/gpio/gpio412/direction 

U50 is compatilbe with U49, also need extra resister like U49.
It’s controlled by GPIO1(echo 413 >/sys/class/gpio/export).

1.5 A

1 Like

Thanks for this answer, I would not have found it. I was able to control USB power.

On my system GPIO base is 0.

root@OpenWrt:/sys/devices/platform/soc/1000000.pinctrl/gpio/gpiochip0# uname -a
Linux OpenWrt 4.14.221 #0 SMP Mon Feb 15 15:22:37 2021 armv7l GNU/Linux
root@OpenWrt:/sys/devices/platform/soc/1000000.pinctrl/gpio/gpiochip0# cat base ngpio

Would you be able to share what reference U49 (6pin IC) is ? so I can place one on U50 instead of a resistor.

U49 is MP65151DJ. U49 is MP65151DJ.