This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM3730 OTG can not enable to HOST

Other Parts Discussed in Thread: DM3730

Hi All:

Please help me.

  I use DM3730 for mid ,,  When I debug the OTG , I found it only can use for device (peripheral). can not be used for HOST

In kernel,

Location:                                                                                                                 |  
  |     -> Device Drivers                                                                                                       |  
  |       -> USB support (USB_SUPPORT [=y])                                                                                     |  
  |         -> Inventra Highspeed Dual Role Controller (TI, ADI, ...) (USB_MUSB_HDRC [=y])

                                   Driver Mode (<choice> [=y])
                                            CONFIG_USB_MUSB_OTG

In usb phy select ,I select twl4010 for  Transceiver Driver

             : TWL4030 USB Transceiver Driver

And then  I add some log information in twl4030-usb.c: twl4030_usb_irq.;; And other log information in usb-musb.c .

When kernel start:

I plug the usb miniB,, it can work in devices mode..

When Plug usb miniA  and link to a mouse,,,it is not work for HOST , ,,in twl4030-usb.c , I know the usb phy detected the usb .( linkstat is USB_LINK_ID), but in musb_core.c,

there have no interrupt ..

if I use only HOST in make menuconfig ,it can work right..for the log information ,,,in musb_core.c ,there have an  interrupt..

Use "cat  /proc/driver/mudb_hdrc ":

Status: MHDRC, Mode=Peripheral (Power=e0, DevCtl=80)
OTG state:a_idle; inactive
Options: musb-dma, otg (peripheral+host), debug=0 [eps=16]
Peripheral address: 00
Root port status: 00000100

Gadget driver: android_usb

I use "echo "H" > /proc/driver/musb_hdrc" try to change it to HOST ,but it is not ok.

By the way, I use Linux Kernel 2.6.32

Now ,,what could I do for OTG to be HOST ? Thanks!

wade.wang