From d1a2f807c0030f36a780c8132740417124c94243 Mon Sep 17 00:00:00 2001 From: Pratham Pratap Date: Wed, 15 Jul 2020 20:57:05 +0530 Subject: [PATCH] ARM: dts: msm: Add pin configuration for USB3 PHY portselect on Shima TLMM pin 81 is used to indicate to the USB3/DP Combo PHY the orientation that which the PMIC detected a USB-C connection. Select this pinctrl from the usb_qmp_dp_phy device and ensure it is selecting the "usb_phy" pin function. Change-Id: I587c17d490630751fcef42fa8b703110d5c8eab3 --- qcom/shima-pinctrl.dtsi | 15 +++++++++++++++ qcom/shima-usb.dtsi | 3 +++ 2 files changed, 18 insertions(+) diff --git a/qcom/shima-pinctrl.dtsi b/qcom/shima-pinctrl.dtsi index 1c5682ae43d3..678dc6ea0bac 100644 --- a/qcom/shima-pinctrl.dtsi +++ b/qcom/shima-pinctrl.dtsi @@ -2946,6 +2946,21 @@ }; }; }; + + usb_phy_ps: usb_phy_ps { + usb3phy_portselect_default: usb3phy_portselect_default { + mux { + pins = "gpio81"; + function = "usb_phy"; + }; + + config { + pins = "gpio81"; + bias-disable; + drive-strength = <2>; + }; + }; + }; }; }; diff --git a/qcom/shima-usb.dtsi b/qcom/shima-usb.dtsi index e718a9b0f16c..cdad8d1260ea 100644 --- a/qcom/shima-usb.dtsi +++ b/qcom/shima-usb.dtsi @@ -132,6 +132,9 @@ <&gcc GCC_USB3_PHY_PRIM_BCR>; reset-names = "global_phy_reset", "phy_reset"; + pinctrl-names = "default"; + pinctrl-0 = <&usb3phy_portselect_default>; + qcom,qmp-phy-reg-offset =