From b965a60780cf8d465f456be429c9253757dba02a Mon Sep 17 00:00:00 2001 From: Uttkarsh Aggarwal Date: Fri, 18 Oct 2024 15:19:45 +0530 Subject: [PATCH] ARM: dts: msm: Add pin configuration for USB3 PHY portselect on Tuna TLMM pin is used to notify USB3/DP Combo PHY about the orientation. Select this pinctrl from the usb_qmp_dp_phy and ensure it is selecting the "usb0_phy_ps" pin function for Tuna. Change-Id: I69f4004b00dcba0140871171b6c8b08471ae6aee Signed-off-by: Uttkarsh Aggarwal --- qcom/tuna-pinctrl.dtsi | 27 +++++++++++++++++++++++++++ qcom/tuna-usb.dtsi | 3 +++ 2 files changed, 30 insertions(+) diff --git a/qcom/tuna-pinctrl.dtsi b/qcom/tuna-pinctrl.dtsi index 61496114..aadf6988 100644 --- a/qcom/tuna-pinctrl.dtsi +++ b/qcom/tuna-pinctrl.dtsi @@ -1969,7 +1969,34 @@ drive-strength = <2>; }; }; + usb_phy_ps: usb_phy_ps { + usb3phy_portselect_default: usb3phy_portselect_default { + mux { + pins = "gpio122"; + function = "usb0_phy_ps"; + }; + config { + pins = "gpio122"; + bias-pull-down; + drive-strength = <2>; + }; + }; + + usb3phy_portselect_gpio: usb3phy_portselect_gpio { + mux { + pins = "gpio122"; + function = "gpio"; + }; + + config { + pins = "gpio122"; + drive-strength = <2>; + bias-pull-down; + input-enable; + }; + }; + }; /* touchscreen pins */ pmx_ts_active { ts_active: ts_active { diff --git a/qcom/tuna-usb.dtsi b/qcom/tuna-usb.dtsi index ca4fee3e..3581be99 100644 --- a/qcom/tuna-usb.dtsi +++ b/qcom/tuna-usb.dtsi @@ -152,6 +152,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 =