]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: dwc3: Add optional VBUS regulator support to SpacemiT K1
authorChukun Pan <amadeus@jmu.edu.cn>
Thu, 26 Mar 2026 10:00:10 +0000 (18:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Mar 2026 14:51:21 +0000 (16:51 +0200)
commit764c2e6e60bf17910d84e7179fee14129e053b96
tree06af1bbbc37f9d56b5994998e9fa9dcdeb5ebaae
parentc05cf9d274daf72dc7e433480cf2e0e888f6bd89
usb: dwc3: Add optional VBUS regulator support to SpacemiT K1

Some SpacemiT K1 boards (like OrangePi R2S) provide USB VBUS
through a controllable regulator. Add support for the optional
vbus-supply property so the regulator can be properly managed
in host mode instead of left always-on. Note that this doesn't
apply to USB Hub downstream ports with different VBUS supplies.

The enabled and disabled actions of the regulator are handled
automatically by devm_regulator_get_enable_optional().

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Link: https://patch.msgid.link/20260326100010.3588454-2-amadeus@jmu.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-generic-plat.c