Jump to content

Banana Pi M1 - USB OTG mode in mainline kernel 5.15


Recommended Posts

Posted

I have a working BPi M1 with

[    0.000000] Linux version 5.15.25-sunxi (root@d72d155687c7) (arm-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0, GNU ld (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 2.32.0.20190321) #22.02.1 SMP Sun Feb 27 09:23:25 UTC 2022

 

Due to inconvenient USB placements, I thought using OTG micro USB (the one right next to the SD slot), but it doesn't seem to be operational.

I bought a Micro USB Male To Female OTG Adapter Cable, but the attached devices are not detected neither connected to OTG port, nor to the normal power-in micro USB connector (located between SATA and SATA-pwr).

 

I attached the same Micro USB Male To Female OTG Adapter Cable to my Android phone and devices are recognized and activated. For example an external keyboard worked with the phone.

What is the current USB OTG support status and what is necessary to debug its functionality? 

 

I quick look at kernel configuration:

 

root@bananapi:~# zcat /proc/config | grep OTG
CONFIG_USB_OTG=y
# CONFIG_USB_OTG_PRODUCTLIST is not set
# CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB is not set
# CONFIG_USB_OTG_FSM is not set
CONFIG_USB_FOTG210_HCD=m
# CONFIG_USB_FOTG210_UDC is not set

 

root@bananapi:~# zcat /proc/config | grep CONFIG_USB_DWC
CONFIG_USB_DWC3=y
# CONFIG_USB_DWC3_HOST is not set
# CONFIG_USB_DWC3_GADGET is not set
CONFIG_USB_DWC3_DUAL_ROLE=y
CONFIG_USB_DWC3_OF_SIMPLE=m
CONFIG_USB_DWC2=y
# CONFIG_USB_DWC2_HOST is not set
# CONFIG_USB_DWC2_PERIPHERAL is not set
CONFIG_USB_DWC2_DUAL_ROLE=y
# CONFIG_USB_DWC2_DEBUG is not set
# CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set

 

What is necessary to make OTG working?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines