From eaa6e050d005cb2d309680f1facff8fd20da4e8d Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Thu, 4 Mar 2021 15:47:42 +0800 Subject: [PATCH] ARM: dts: msm: add fixed-regulator to supply USB2 VBUS on Lahaina HHG Lahaina HHG device has a built-in joystick connected on USB2 port, the VBUS is supplied by a fixed-regulator controlled by PM8350 GPIO8 and its output voltage needs to be enabled always. Add the regulator device node and config it as always-on. Change-Id: I4877be73294939e4823965795a00053ebd84e572 --- qcom/lahaina-hhg.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qcom/lahaina-hhg.dtsi b/qcom/lahaina-hhg.dtsi index 34f46a9a2a32..81240c4e035c 100644 --- a/qcom/lahaina-hhg.dtsi +++ b/qcom/lahaina-hhg.dtsi @@ -91,6 +91,19 @@ status = "ok"; }; }; + + joystick_usb_vbus: joystick_usb_vbus_regulator { + compatible = "regulator-fixed"; + regulator-name = "joystick_usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-enable-ramp-delay = <600>; + gpio = <&pm8350_gpios 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + pinctrl-names = "default"; + pinctrl-0 = <&usb2_vbus_boost_default>; + }; }; &usb1 {