Android默认USB为host模式

kernel->otg:set usb as host mode

diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-face.dtsi b/kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-face.dtsi
index 292743f..abe4472 100644
--- a/kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-face.dtsi
+++ b/kernel/arch/arm64/boot/dts/rockchip/rk3399-firefly-face.dtsi
@@ -246,7 +246,8 @@
};
&usbdrd_dwc3_0 {
-    dr_mode = "peripheral";
+    dr_mode = "host";
+    //dr_mode = "peripheral";
};
&hdmi_dp_sound {

你可能感兴趣的:(Android)