Page 1 of 1

Disabling USB subsystem on OpenWRT VoCore2

Posted: Sat Nov 20, 2021 10:35 am
by ofir
Hi,
For power measurements sake I would like to be able to disable the USB subsystem (at the hardware level if possible, e.g. clock gating).
I saw this generic OpenWRT script online https://github.com/zhangjingye03/openwrt_deep_night_sleep/blob/master/sleep.sh which shuts down
USB power by using the aliased GPIO sysfs files:
Code: Select all
echo 0 > /sys/class/gpio/$USB1_POWER/value
echo 0 > /sys/class/gpio/$USB2_POWER/value


But I am not sure if it's applicable to VoCore2.

Does anyone know how to disable the USB subsystem (either hardware level / through the driver)?


Thanks,
Ofir

Re: Disabling USB subsystem on OpenWRT VoCore2

Posted: Thu Nov 25, 2021 2:48 am
by Vonger
There is no directly way to shutdown USB. This chip is mainly designed for router but not for power save usage, it also does not have PMU, so if you want to save power, shutdown USB will not help.