Hi
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 ?
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).