From: solodecode Date: Fri, 3 Jul 2026 20:01:42 +0000 (+0300) Subject: mediatek: filogic: add USB VBUS regulator for Globitel BT-R320 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F24063%2Fhead;p=thirdparty%2Fopenwrt.git mediatek: filogic: add USB VBUS regulator for Globitel BT-R320 USB VBUS on the BT-R320 is controlled by GPIO14. Add a fixed regulator and hook it up to the xHCI controller. GPIO_ACTIVE_HIGH was tested on the device: the dummy regulator warning is gone and a USB device enumerates. Signed-off-by: solodecode Link: https://github.com/openwrt/openwrt/pull/24063 Signed-off-by: Robert Marko --- diff --git a/target/linux/mediatek/dts/mt7981b-globitel-bt-r320.dts b/target/linux/mediatek/dts/mt7981b-globitel-bt-r320.dts index b3cad53c16d..9d868ab0653 100644 --- a/target/linux/mediatek/dts/mt7981b-globitel-bt-r320.dts +++ b/target/linux/mediatek/dts/mt7981b-globitel-bt-r320.dts @@ -27,6 +27,16 @@ reg = <0 0x40000000 0 0x40000000>; }; + usb_vbus: regulator-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpios = <&pio 14 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + }; + gpio-keys { compatible = "gpio-keys"; @@ -221,5 +231,6 @@ }; &xhci { + vbus-supply = <&usb_vbus>; status = "okay"; };