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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,503 Views
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 Kudos
Reply
1 Solution
2,455 Views
Jonyzhang
Contributor II

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

View solution in original post

Tags (1)
0 Kudos
Reply
5 Replies
2,491 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Do you follow the official design?

0 Kudos
Reply
2,483 Views
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 Kudos
Reply
2,471 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
2,462 Views
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 Kudos
Reply
2,456 Views
Jonyzhang
Contributor II

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

Tags (1)
0 Kudos
Reply