ARM: dts: msm: Add UCSI connector to USB port on Parrot

Add graph nodes representing the USB connector and its remote
endpoints to the UCSI device and the USB controller respectively.
Add 'usb-role-switch' properties to the DWC3 devices and update
its dual-role mode to 'otg'.
This is in order to describe a connection between the pmic_glink
and the DWC3 device to allow the former to notify the USB controller
when to start up in USB host or peripheral mode.

Change-Id: I2672c643579beb72d061f12566e03f3771176fd3
This commit is contained in:
Rohith Kollalsi
2022-04-21 22:50:17 +05:30
parent 8e9dcf8b5c
commit 967367779a
3 changed files with 78 additions and 0 deletions

View File

@@ -146,3 +146,29 @@
cd-gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
};
&usb0 {
usb-role-switch;
extcon = <&eud>;
dwc3@a600000 {
usb-role-switch;
dr_mode = "otg";
};
port {
usb_port0: endpoint {
remote-endpoint = <&usb_port0_connector>;
};
};
};
&ucsi {
connector {
port {
usb_port0_connector: endpoint {
remote-endpoint = <&usb_port0>;
};
};
};
};

View File

@@ -8,3 +8,29 @@
&battery_charger {
qcom,thermal-mitigation = <3000000 1500000 1000000 500000>;
};
&usb0 {
usb-role-switch;
extcon = <&eud>;
dwc3@a600000 {
usb-role-switch;
dr_mode = "otg";
};
port {
usb_port0: endpoint {
remote-endpoint = <&usb_port0_connector>;
};
};
};
&ucsi {
connector {
port {
usb_port0_connector: endpoint {
remote-endpoint = <&usb_port0>;
};
};
};
};

View File

@@ -11,3 +11,29 @@
6000000 5500000 5000000 4500000 4000000 3500000
3000000 2500000 2000000 1500000 1000000 500000>;
};
&usb0 {
usb-role-switch;
extcon = <&eud>;
dwc3@a600000 {
usb-role-switch;
dr_mode = "otg";
};
port {
usb_port0: endpoint {
remote-endpoint = <&usb_port0_connector>;
};
};
};
&ucsi {
connector {
port {
usb_port0_connector: endpoint {
remote-endpoint = <&usb_port0>;
};
};
};
};