[RK3399][Android7.1] 调试笔记 --- Type-C USB改成Micro USB2.0 OTG

Platform: RK3399
OS: Android 7.1
Kernel: v4.4.83

项目用TYPE-C只是用作debug没什么必要,修改成Micro USB2.0 OTG还可以省去fusb芯片的费用。

diff --git a/arch/arm64/boot/dts/rockchip/rk3399-eco.dts b/arch/arm64/boot/dts/rockchip/rk3399-eco.dts
index 1e5e921..cacfc7b 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-eco.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-eco.dts
@@ -763,7 +763,7 @@
 
 &tcphy0 {
 	extcon = <&fusb0>;
-	status = "okay";
+	status = "disabled";
 };
 
 &tcphy1 {
@@ -778,8 +778,6 @@
 
 &u2phy0 {
 	status = "okay";
-	extcon = <&fusb0>;
-
 	u2phy0_otg: otg-port {
 		status = "okay";
 	};
@@ -836,11 +834,15 @@
 };
 
 &usbdrd3_0 {
-	extcon = <&fusb0>;
+	extcon = <&u2phy0>;
 	status = "okay";
 };
 
 &usbdrd_dwc3_0 {
+	dr_mode = "otg";
+	maximum-speed = "high-speed";
+	phys = <&u2phy0_otg>;
+	phy-names = "usb2-phy";
 	status = "okay";
 };
 

你可能感兴趣的:(RK3399,子类__USB)