From 9a7e958a1990b11d687489ff2eb9deb1d8ad15eb Mon Sep 17 00:00:00 2001 From: Udipto Goswami Date: Fri, 29 Oct 2021 10:55:42 +0530 Subject: [PATCH] ARM: dts: msm: Add pin configuration for USB3 PHY portselect on Diwali TLMM pin 122 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 for Diwali. Change-Id: I8afa2dcd9a4304f390f61eff08c034fadcc7b74f --- qcom/diwali-pinctrl.dtsi | 16 ++++++++++++++++ qcom/diwali-usb.dtsi | 3 +++ 2 files changed, 19 insertions(+) diff --git a/qcom/diwali-pinctrl.dtsi b/qcom/diwali-pinctrl.dtsi index 7f76139c..ac85642f 100644 --- a/qcom/diwali-pinctrl.dtsi +++ b/qcom/diwali-pinctrl.dtsi @@ -1854,4 +1854,20 @@ }; }; }; + + usb_phy_ps: usb_phy_ps { + usb3phy_portselect_default: usb3phy_portselect_default { + mux { + pins = "gpio122"; + function = "usb_phy"; + }; + + config { + pins = "gpio122"; + bias-disable; + drive-strength = <2>; + }; + }; + }; + }; diff --git a/qcom/diwali-usb.dtsi b/qcom/diwali-usb.dtsi index 6d140302..9d6cf64d 100644 --- a/qcom/diwali-usb.dtsi +++ b/qcom/diwali-usb.dtsi @@ -150,6 +150,9 @@ "pipe_clk_ext_src", "ref_clk_src", "com_aux_clk"; + pinctrl-names = "default"; + pinctrl-0 = <&usb3phy_portselect_default>; + qcom,qmp-phy-reg-offset =