i.MX 8QuadXPlus Android P, Turn ADB on by default

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX 8QuadXPlus Android P, Turn ADB on by default

跳至解决方案
5,659 次查看
Jonyzhang
Contributor II

Hi

I have android P running iMX8 board,The USB connector is USB type A. USB connector DP&DN connect to iMX8 USB_OTG1_DP&USB_OTG1_DN pins, iMX8 USB_OTG1_ID pin dangling. In the DTS file "&usbotg1" node add "dr_mode = "peripheral";  ".  After the USB is inserted, board power on.  I use command  "adb devices" not found adb device, UART Debug "cat /sys/kernel/debug/ci_hdrc.0/role" is gadget. reinserted USB, use command  "adb devices" can find adb device.  If after the USB is inserted board power on can find adb device.

Do I need to modify anything?

0 项奖励
回复
1 解答
5,605 次查看
Jonyzhang
Contributor II

Just remove R327&R328, Because OTG1 it's not directly connected to IMX8  there is a U37 in the middle.

在原帖中查看解决方案

标记 (1)
0 项奖励
回复
5 回复数
5,641 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Do you follow the official design?

0 项奖励
回复
5,633 次查看
Jonyzhang
Contributor II

Hi

HW do not follow the official design. The HW official design of OTG1 is Type-C. OTG1 normally works in host mode only. I want to use SW to force OTG1 status,Because need ADB for the debug.

0 项奖励
回复
5,621 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Can you send your schematics about your USB and related dts code?

0 项奖励
回复
5,612 次查看
Jonyzhang
Contributor II

usbsch1&usbsch2 is USB schematics.

DTS:

&usbotg1 {
    vbus-supply = <&reg_usb_otg1_vbus>;
    srp-disable;
    hnp-disable;
    adp-disable;
    power-polarity-active-high;
    disable-over-current;
    dr_mode = "peripheral";
    status = "okay";
};
0 项奖励
回复
5,606 次查看
Jonyzhang
Contributor II

Just remove R327&R328, Because OTG1 it's not directly connected to IMX8  there is a U37 in the middle.

标记 (1)
0 项奖励
回复