From d4ac95c1bb65e5812d724c05deab738c2055bba0 Mon Sep 17 00:00:00 2001 From: Vijayavardhan Vennapusa Date: Tue, 6 Apr 2021 17:46:09 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Enable USB2 functionality for yupik IOT IDP Enable USB2 functionality for 2nd USB port on Yupik IOT IDP platform. And also set default mode to none for USB2 port as there is no provision for dynamic detection of USB modes. Change-Id: Iaf311e6f6842e3f6062659c017d49704bb5a08a4 --- qcom/yupik-iot-idp.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcom/yupik-iot-idp.dtsi b/qcom/yupik-iot-idp.dtsi index 6f7484cd3458..6b2bdff2033c 100644 --- a/qcom/yupik-iot-idp.dtsi +++ b/qcom/yupik-iot-idp.dtsi @@ -26,3 +26,12 @@ &pcie1_msi { status = "ok"; }; + +&usb1 { + qcom,default-mode-none; + status = "ok"; +}; + +&usb2_phy1 { + status = "ok"; +}; From 2b24a12d99dd7efadd95529d57879a548342460c Mon Sep 17 00:00:00 2001 From: Vijayavardhan Vennapusa Date: Tue, 6 Apr 2021 18:19:32 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add VBUS supply for USB2 port for Yupik IOT IDP Add required support to have VBUS supply enabled for USB2 port for Yupik IOT IDP platform. Change-Id: Ic541d6062ecf59b5f6c0ec9dbd5371b89fca54fc --- qcom/yupik-iot-idp.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/qcom/yupik-iot-idp.dtsi b/qcom/yupik-iot-idp.dtsi index 6b2bdff2033c..45b0b4e4718f 100644 --- a/qcom/yupik-iot-idp.dtsi +++ b/qcom/yupik-iot-idp.dtsi @@ -27,7 +27,32 @@ status = "ok"; }; +&pm7325_gpios { + usb2_vbus_boost { + usb2_vbus_boost_default: usb2_vbus_boost_default { + pins = "gpio8"; + function = "normal"; + output-low; + power-source = <0>; /* 1.8V input supply */ + }; + }; +}; + +&soc { + usb2_vbus_boost_reg: usb2_vbus_boost_reg { + compatible = "regulator-fixed"; + regulator-name = "usb2_vbus_boost_vreg"; + startup-delay-us = <4000>; + enable-active-high; + gpios = <&pm7325_gpios 8 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&usb2_vbus_boost_default>; + }; +}; + &usb1 { + vbus_dwc3-supply = <&usb2_vbus_boost_reg>; qcom,default-mode-none; status = "ok"; };