From 8fdcd98e924a8d449fa14cce21f189c4f397814f Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Sun, 10 Dec 2023 20:46:29 +0800 Subject: [PATCH] mediatek: power on the usb via regulator for bpi r3-mini Signed-off-by: Tianling Shen --- .../dts/mt7986a-bananapi-bpi-r3-mini.dts | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts index 9c7001f9bc..167591392b 100644 --- a/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts +++ b/target/linux/mediatek/dts/mt7986a-bananapi-bpi-r3-mini.dts @@ -97,6 +97,16 @@ regulator-boot-on; regulator-always-on; }; + + usb_vbus: regulator-usb-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpios = <&pio 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + }; }; &cpu_thermal { @@ -391,12 +401,6 @@ }; }; - usb_pwwr_en: usb-pwwr-en { - pins = "GPIO_15"; - drive-strength = <8>; - mediatek,pull-down-adv = <1>; - }; - wf_2g_5g_pins: wf-2g-5g-pins { mux { function = "wifi"; @@ -496,10 +500,9 @@ &ssusb { pinctrl-names = "default"; - pinctrl-0 = <&usb_pwwr_en>; - pinctrl-1 = <&usb_ngff_pins>; + pinctrl-0 = <&usb_ngff_pins>; vusb33-supply = <®_3p3v>; - vbus-supply = <®_5v>; + vbus-supply = <&usb_vbus>; status = "okay"; };