From e55d554ce767e8ccb4de53c1cea3a1bde1330fc5 Mon Sep 17 00:00:00 2001 From: Udipto Goswami Date: Wed, 11 Nov 2020 17:30:17 +0530 Subject: [PATCH] ARM: dts: msm: add UCSI connector and USB port on Yupik Add UCSI & USB port related information to allow USB role switch framework to discover connection, and provide USB role related configuration. Change-Id: I94aae8650d1034696bd5261a65640c3f9f69e813 --- qcom/yupik-usb.dtsi | 7 +++++++ qcom/yupik.dtsi | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/qcom/yupik-usb.dtsi b/qcom/yupik-usb.dtsi index 829de6693452..c33d2f3e6f02 100644 --- a/qcom/yupik-usb.dtsi +++ b/qcom/yupik-usb.dtsi @@ -42,6 +42,7 @@ 0x144 /* GSI_RING_BASE_ADDR_H */ 0x1a4>; /* GSI_IF_STS */ qcom,dwc-usb3-msm-tx-fifo-size = <21288>; + usb-role-switch; dwc3@a600000 { compatible = "snps,dwc3"; @@ -60,6 +61,12 @@ maximum-speed = "super-speed"; dr_mode = "otg"; }; + + port { + usb_port0: endpoint { + remote-endpoint = <&usb_port0_connector>; + }; + }; }; usb1: hsusb@8c00000 { diff --git a/qcom/yupik.dtsi b/qcom/yupik.dtsi index 3c19ec45d796..1408502b1947 100644 --- a/qcom/yupik.dtsi +++ b/qcom/yupik.dtsi @@ -1268,6 +1268,11 @@ qcom,ucsi { compatible = "qcom,ucsi-glink"; + port { + usb_port0_connector: endpoint { + remote-endpoint = <&usb_port0>; + }; + }; }; altmode: qcom,altmode {