From feaf29dcbbea9542cc09f3f8e692423517b1f3a8 Mon Sep 17 00:00:00 2001 From: Wesley Cheng Date: Mon, 20 Nov 2023 15:06:49 -0800 Subject: [PATCH] ARM: dts: msm: Enable UCSI nodes for sun To support cable detection events from UCSI, updates need to be made to enable usb role switch and setting up a connection to the UCSI PMIC glink node. Change-Id: Ib7b212ab00022ee4e559f046dddead7aaf7539af Signed-off-by: Wesley Cheng --- qcom/sun-cdp.dtsi | 19 +++++++++++++++++++ qcom/sun-mtp.dtsi | 19 +++++++++++++++++++ qcom/sun-qrd.dtsi | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/qcom/sun-cdp.dtsi b/qcom/sun-cdp.dtsi index bd293895..6bfab454 100644 --- a/qcom/sun-cdp.dtsi +++ b/qcom/sun-cdp.dtsi @@ -272,3 +272,22 @@ &tlmm 63 0 &tlmm 91 0 &tlmm 88 0x2008>; }; }; + +&usb0 { + usb-role-switch; + port { + usb_port0: endpoint { + remote-endpoint = <&usb_port0_connector>; + }; + }; +}; + +&ucsi { + connector { + port { + usb_port0_connector: endpoint { + remote-endpoint = <&usb_port0>; + }; + }; + }; +}; diff --git a/qcom/sun-mtp.dtsi b/qcom/sun-mtp.dtsi index 9fcb42ab..ae25b4e3 100644 --- a/qcom/sun-mtp.dtsi +++ b/qcom/sun-mtp.dtsi @@ -306,3 +306,22 @@ &tlmm 51 0 &tlmm 161 0 &tlmm 162 0x2008>; }; }; + +&usb0 { + usb-role-switch; + port { + usb_port0: endpoint { + remote-endpoint = <&usb_port0_connector>; + }; + }; +}; + +&ucsi { + connector { + port { + usb_port0_connector: endpoint { + remote-endpoint = <&usb_port0>; + }; + }; + }; +}; diff --git a/qcom/sun-qrd.dtsi b/qcom/sun-qrd.dtsi index 42585748..d396f597 100644 --- a/qcom/sun-qrd.dtsi +++ b/qcom/sun-qrd.dtsi @@ -210,3 +210,22 @@ dummy-supply = <&pmih010x_eusb2_repeater>; usb-repeater = <&pmih010x_eusb2_repeater>; }; + +&usb0 { + usb-role-switch; + port { + usb_port0: endpoint { + remote-endpoint = <&usb_port0_connector>; + }; + }; +}; + +&ucsi { + connector { + port { + usb_port0_connector: endpoint { + remote-endpoint = <&usb_port0>; + }; + }; + }; +};