From cd42f7bceff3846f0e23e6d79b095708e85be476 Mon Sep 17 00:00:00 2001 From: Elson Roy Serrao Date: Thu, 8 Oct 2020 15:48:37 -0700 Subject: [PATCH] ARM: dts: msm: Add QMP PHY dt entries on sdxlemur Add hsphy and ssphy related dt nodes and the phy init sequence on sdxlemur. Change-Id: I89177fecd76f5a9ace051e118f304698e9d1e636 --- qcom/sdxlemur-usb.dtsi | 154 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) diff --git a/qcom/sdxlemur-usb.dtsi b/qcom/sdxlemur-usb.dtsi index d11cad741801..c80dc7e4b561 100644 --- a/qcom/sdxlemur-usb.dtsi +++ b/qcom/sdxlemur-usb.dtsi @@ -1,3 +1,5 @@ +#include + &soc { usb: ssusb@a600000 { compatible = "qcom,dwc-usb3-msm"; @@ -44,6 +46,7 @@ compatible = "snps,dwc3"; reg = <0x0a600000 0xcd00>; interrupts = ; + usb-phy = <&usb2_phy>, <&usb_qmp_phy>; linux,sysdev_is_parent; snps,disable-clk-gating; snps,has-lpm-erratum; @@ -60,4 +63,155 @@ usb_nop_phy: usb_nop_phy { compatible = "usb-nop-xceiv"; }; + + usb2_phy: hsphy@ff4000 { + compatible = "qcom,usb-hsphy-snps-femto"; + reg = <0xff4000 0x120>; + reg-names = "hsusb_phy_base"; + + vdd-supply = <&pmx65_l4>; + qcom,vdd-voltage-level = <0 912000 912000>; + vdda18-supply = <&pmx65_l5>; + vdda33-supply = <&pmx65_l10>; + + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>; + clock-names = "ref_clk_src", "cfg_ahb_clk"; + + resets = <&gcc GCC_QUSB2PHY_BCR>; + reset-names = "phy_reset"; + qcom,no-rext-present; + }; + + usb_qmp_phy: ssphy@ff6000 { + compatible = "qcom,usb-ssphy-qmp-v2"; + reg = <0xff6000 0x2000>, + <0xff628c 0x4>; + reg-names = "qmp_phy_base", + "pcs_clamp_enable_reg"; + + vdd-supply = <&pmx65_l4>; + qcom,vdd-voltage-level = <0 912000 912000>; + qcom,vdd-max-load-uA = <47900>; + core-supply = <&pmx65_l1>; + qcom,core-max-load-uA = <15000>; + + clocks = <&gcc GCC_USB3_PHY_AUX_CLK>, + <&gcc GCC_USB3_PHY_PIPE_CLK>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>; + clock-names = "aux_clk", "pipe_clk", "ref_clk_src", + "cfg_ahb_clk"; + + resets = <&gcc GCC_USB3_PHY_BCR>, + <&gcc GCC_USB3PHY_PHY_BCR>; + reset-names = "phy_reset", "phy_phy_reset"; + + qcom,qmp-phy-init-seq = + /* */ + ; + + qcom,qmp-phy-reg-offset = + ; + + + }; };