From 28bcac7b2225f4d3f0879385167ce9e7e6785435 Mon Sep 17 00:00:00 2001 From: Mayank Rana Date: Tue, 21 Jan 2020 16:26:55 -0800 Subject: [PATCH] ARM: dts: msm: add UCSI connector and USB port on Lahaina Add UCSI and USB port related information to allow USB role switch framework to discover connection, and provide USB role related configuration. Change-Id: Idc97cd9b4b63df0b934224226a5e58f1cec40ad9 --- qcom/lahaina-usb.dtsi | 7 +++++++ qcom/lahaina.dtsi | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/qcom/lahaina-usb.dtsi b/qcom/lahaina-usb.dtsi index b50b21854538..f140a425e78d 100644 --- a/qcom/lahaina-usb.dtsi +++ b/qcom/lahaina-usb.dtsi @@ -46,6 +46,7 @@ 0x144 /* GSI_RING_BASE_ADDR_H */ 0x1a4>; /* GSI_IF_STS */ qcom,dwc-usb3-msm-tx-fifo-size = <27696>; + usb-role-switch; interconnect-names = "usb-ddr", "usb-ipa", "ddr-usb"; interconnects = <&aggre1_noc MASTER_USB3_0 &mc_virt SLAVE_EBI1>, @@ -99,6 +100,12 @@ qcom,descriptor-fifo-size = <0x800>; }; }; + + port { + usb_port0: endpoint { + remote-endpoint = <&usb_port0_connector>; + }; + }; }; /* Primary USB port related High Speed PHY */ diff --git a/qcom/lahaina.dtsi b/qcom/lahaina.dtsi index 03580c92d14e..7db97cd1534b 100644 --- a/qcom/lahaina.dtsi +++ b/qcom/lahaina.dtsi @@ -3718,6 +3718,11 @@ qcom,ucsi { compatible = "qcom,ucsi-glink"; + port { + usb_port0_connector: endpoint { + remote-endpoint = <&usb_port0>; + }; + }; }; qcom,altmode {