Can the Axon RK3588 USB Host Port Power Be Controlled via Software?

I wanted to know whether the USB host ports on the Axon board support software-controlled power switching.

Specifically:

  • Can the 5V power (VBUS) of a USB host port be turned ON/OFF through software?
  • Is there any GPIO or power-switch IC connected to the USB ports that allows VBUS control?
  • If yes, is there a recommended method (GPIO, sysfs, device tree, kernel driver, or any API) to control it?
  • If not, is the recommended approach to control the LED illumination using a GPIO-driven MOSFET instead of the USB port?

My goal is to synchronize the LED illumination with image acquisition, so I need reliable software control over the light source.

Assuming You are talking about USB 2.0, And Mentioning Documentation to turned it ON/OFF.

1. Using uhubctl

sudo apt install uhubctl

Connected USB Pendrive on Upper side of USB 2.0 Port.

❯ lsusb -t
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 001: Dev 004, If 0, Class=Mass Storage, Driver=usb-storage, 480M
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=ohci-platform/1p, 12M

Run below command to turn off

sudo uhubctl -l 1 -p 1 -a off 

For Turn on

sudo uhubctl -l 1 -p 1 -a on 

2 Using /sys/class/usb

Upper USB 2.0 Port : usb1
Bottom USB 2.0 Port : usb3

 echo 1 > /sys/bus/usb/devices/usb1/authorized
 echo 0 > /sys/bus/usb/devices/usb1/authorized


Further Reference