From 64d7119b9a85ed0f564dcf59b7d51226135b5574 Mon Sep 17 00:00:00 2001 From: Udipto Goswami Date: Fri, 18 Dec 2020 21:14:55 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Add pin configuration for USB3 PHY portselect on Yupik 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: I169bf35434aa2667338089a71ad8a5f90f92d62b --- qcom/yupik-pinctrl.dtsi | 15 +++++++++++++++ qcom/yupik-usb.dtsi | 3 +++ 2 files changed, 18 insertions(+) diff --git a/qcom/yupik-pinctrl.dtsi b/qcom/yupik-pinctrl.dtsi index fadbe85ab0ad..a5b78841832c 100644 --- a/qcom/yupik-pinctrl.dtsi +++ b/qcom/yupik-pinctrl.dtsi @@ -2793,5 +2793,20 @@ }; }; }; + + usb_phy_ps: usb_phy_ps { + usb3phy_portselect_default: usb3phy_portselect_default { + mux { + pins = "gpio140"; + function = "usb_phy"; + }; + + config { + pins = "gpio140"; + bias-disable; + drive-strength = <2>; + }; + }; + }; }; }; diff --git a/qcom/yupik-usb.dtsi b/qcom/yupik-usb.dtsi index 137e2b4bcd91..67b822bf441d 100644 --- a/qcom/yupik-usb.dtsi +++ b/qcom/yupik-usb.dtsi @@ -131,6 +131,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 = Date: Mon, 21 Dec 2020 10:31:46 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Remove pmic dependency on Yupik Remove the dependency on adsp charger detection on Yupik. Please note that USB HOST MODE would not be working with this patch included. Change-Id: I3679b4a2ba5e50a7eacbcce6a8067d57a0ed7958 --- qcom/yupik-usb.dtsi | 10 +--------- qcom/yupik.dtsi | 5 ----- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/qcom/yupik-usb.dtsi b/qcom/yupik-usb.dtsi index 67b822bf441d..474485e8348c 100644 --- a/qcom/yupik-usb.dtsi +++ b/qcom/yupik-usb.dtsi @@ -49,8 +49,6 @@ 0x144 /* GSI_RING_BASE_ADDR_H */ 0x1a4>; /* GSI_IF_STS */ qcom,dwc-usb3-msm-tx-fifo-size = <21288>; - usb-role-switch; - extcon = <&eud>; interconnect-names = "usb-ddr", "usb-ipa", "ddr-usb"; interconnects = <&aggre1_noc MASTER_USB3_0 &mc_virt SLAVE_EBI1>, @@ -75,13 +73,7 @@ snps,ssp-u3-u0-quirk; tx-fifo-resize; maximum-speed = "super-speed"; - dr_mode = "otg"; - }; - - port { - usb_port0: endpoint { - remote-endpoint = <&usb_port0_connector>; - }; + dr_mode = "peripheral"; }; }; diff --git a/qcom/yupik.dtsi b/qcom/yupik.dtsi index 923e3eba9e03..1db8a4404438 100644 --- a/qcom/yupik.dtsi +++ b/qcom/yupik.dtsi @@ -2072,11 +2072,6 @@ qcom,ucsi { compatible = "qcom,ucsi-glink"; - port { - usb_port0_connector: endpoint { - remote-endpoint = <&usb_port0>; - }; - }; }; altmode: qcom,altmode {