From e92bf24ac76cddf2bfe63bfbc8d49f5e0ec0ff83 Mon Sep 17 00:00:00 2001 From: Rohith Kollalsi Date: Thu, 31 Mar 2022 11:23:15 +0530 Subject: [PATCH] ARM: dts: msm: Add HS USB PHY support in Parrot Add HS USB Phy node in parrot usb in order to support device detection in HS mode. Change-Id: I3dd3b8d3869d52a44457b69b388abcd980218fdd --- qcom/parrot-rumi.dtsi | 4 ---- qcom/parrot-usb.dtsi | 28 +++++++++++++++++++++++++++- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/qcom/parrot-rumi.dtsi b/qcom/parrot-rumi.dtsi index 50fc7137..4f3e5b8e 100644 --- a/qcom/parrot-rumi.dtsi +++ b/qcom/parrot-rumi.dtsi @@ -14,10 +14,6 @@ status = "disabled"; }; - usb_nop_phy: usb_nop_phy { - compatible = "usb-nop-xceiv"; - }; - usb_emuphy: phy@a784000 { compatible = "qcom,usb-emu-phy"; reg = <0x0a784000 0x9500>; diff --git a/qcom/parrot-usb.dtsi b/qcom/parrot-usb.dtsi index e75506a0..72c010e4 100644 --- a/qcom/parrot-usb.dtsi +++ b/qcom/parrot-usb.dtsi @@ -59,6 +59,7 @@ dma-coherent; interrupts = ; + usb-phy = <&usb2_phy0>, <&usb_nop_phy>; snps,disable-clk-gating; snps,has-lpm-erratum; snps,hird-threshold = /bits/ 8 <0x0>; @@ -68,8 +69,33 @@ snps,dis_u2_susphy_quirk; tx-fifo-resize; dr_mode = "peripheral"; - maximum-speed = "super-speed"; + maximum-speed = "high-speed"; }; }; + + /* USB port related High Speed PHY */ + usb2_phy0: hsphy@88e3000 { + compatible = "qcom,usb-hsphy-snps-femto"; + reg = <0x88e3000 0x11c>, + <0x088e2000 0x4>; + reg-names = "hsusb_phy_base", + "eud_enable_reg"; + + vdd-supply = <&L5B>; + vdda18-supply = <&L23B>; + vdda33-supply = <&L25B>; + qcom,vdd-voltage-level = <0 880000 920000>; + + clocks = <&rpmhcc RPMH_CXO_CLK>; + clock-names = "ref_clk_src"; + + resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; + reset-names = "phy_reset"; + }; + + usb_nop_phy: usb_nop_phy { + compatible = "usb-nop-xceiv"; + }; + };