ARM64: dts: mediatek: mt8167-coral: add USB OTG support

Signed-off-by: Fabien Parent <fparent@baylibre.com>
diff --git a/arch/arm64/boot/dts/mediatek/mt8167-coral.dts b/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
index 3e6a4db..0ac8355 100644
--- a/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8167-coral.dts
@@ -33,6 +33,15 @@
 			method = "smc";
 		};
 	};
+
+	usb0_vbus: regulator@0 {
+		compatible = "regulator-fixed";
+		regulator-name = "usb0_vbus";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		gpio = <&pio 17 GPIO_ACTIVE_LOW>;
+		regulator-always-on;
+	};
 };
 
 &cpu0 {
@@ -184,14 +193,36 @@
 
 &usb0 {
 	status = "okay";
-	dr_mode = "peripheral";
+	dr_mode = "otg";
+	usb-role-switch;
 
-	usb_con: connector {
-		compatible = "usb-c-connector";
-		label = "USB-C";
+	port {
+		usb0_role_switch: endpoint {
+			remote-endpoint = <&mt6392_typec_ep>;
+		};
 	};
 };
 
 &usb0_phy {
 	status = "okay";
 };
+
+&mt6392typec {
+	usb_con: connector {
+		compatible = "usb-c-connector";
+		label = "USB-C";
+		vbus-supply = <&usb0_vbus>;
+	};
+
+	ports {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		port@1 {
+			reg = <1>;
+			mt6392_typec_ep: endpoint {
+				remote-endpoint = <&usb0_role_switch>;
+			};
+		};
+	};
+};