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.

hub 2-0:1.0: unable to enumerate USB device on port 1

Other Parts Discussed in Thread: TWL6030

Hi,

We are trying to enable OTG micro USB on the am335x and we have selected the below mentioned changes in the menu config.

In Device Drivers We have selected USB support and in that the below mentioned are selected as shown below:

[*] USB support  --->     
    <*>   Support for Host-side USB                                        
    [ ]     USB verbose debug messages                                     
    [*]     USB announce new devices                                       
    *** Miscellaneous USB options ***                              
    [*]     USB device filesystem (DEPRECATED)                             
    [*]     USB device class-devices (DEPRECATED)                          
    [*]     Dynamic USB minor allocation                                   
    [*]     USB runtime power management (autosuspend) and wakeup          
    [*]       OTG support    
    [*]   Rely on OTG Targeted Peripherals List                            
    [ ]   Disable external hubs                                            
    <*>   DesignWare USB3 DRD Core Support                                 
    [ ]     Enable Debugging Messages                                      
    <*>   USB Monitor        
    -*-   Enable Wireless USB extensions (EXPERIMENTAL)                    
    <*>   Support WUSB Cable Based Association (CBA)                       
    [*]     Enable CBA debug messages                                      
    *** USB Host Controller Drivers ***                              
    < >   Cypress C67x00 HCD support                                       
    <*>   EHCI HCD (USB 2.0) support                                       
    [*]     Root Hub Transaction Translators      
    [*]     Improved Transaction Translator scheduling                     
    [*]   EHCI support for OMAP3 and later chips                           
    < >   OXU210HP HCD support                                             
    < >   ISP116X HCD support
    < >   ISP 1760 HCD support                                             
    < >   ISP1362 HCD support
    <*>   OHCI HCD support   
    [*]     OHCI support for OMAP1/2 chips                                 
    [*]     OHCI support for OMAP3 and later chips                         
    < >   SL811HS HCD support
    < >   R8A66597 HCD support                                             
    <*>   Host Wire Adapter (HWA) driver (EXPERIMENTAL)                    
    <*>   Inventra Highspeed Dual Role Controller (TI, ADI, ...)           
        *** Platform Glue Layer ***                                    
    < >     TUSB6010         
    < >     OMAP2430 and onwards                                           
    < >     AM35x            
    <*>     TI81XX onward    
    [*]     Disable DMA (always use PIO)                                   
    < >   Renesas USBHS controller   
      *** USB Device Class drivers ***                                 
    < >   USB Modem (CDC ACM) support                                      
    < >   USB Printer support
    <*>   USB Wireless Device Management support                           
    <*>   USB Test and Measurement Class support                           
          *** NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may ***     
          *** also be needed; see USB_STORAGE Help for more info ***       
    <*>   USB Mass Storage support                                         
    [ ]     USB Mass Storage verbose debug                                 
    < >     Realtek Card Reader support                                    
    < >     Datafab Compact Flash Reader support                           
    < >     Freecom USB/ATAPI Bridge support                               
    < >     ISD-200 USB/ATA Bridge support                                 
    < >     USBAT/USBAT02-based storage support                            
    < >     SanDisk SDDR-09 (and other SmartMedia, including DPCM) support
    < >     SanDisk SDDR-55 SmartMedia support                             
    < >     Lexar Jumpshot Compact Flash Reader                            
    < >     Olympus MAUSB-10/Fuji DPC-R1 support       
    < >     Support OneTouch Button on Maxtor Hard Drives                  
    < >     Support for Rio Karma music player                             
    < >     SAT emulation on Cypress USB/ATA Bridge with ATACB             
    < >     USB ENE card reader support                                    
    <*>   USB Attached SCSI  
    [ ]   The shared table of common (or usual) storage devices            
          *** USB Imaging devices ***                                      
    < >   USB Mustek MDC800 Digital Camera support                         
    < >   Microtek X6USB scanner support                                   
          *** USB port drivers ***                                         
    <*>   USB Serial Converter support  --->                               
          *** USB Miscellaneous drivers ***                                
    < >   EMI 6|2m USB Audio interface support                             
    < >   EMI 2|6 USB Audio interface support                              
    < >   ADU devices from Ontrak Control Systems                          
    < >   USB 7-Segment LED Display                                        
    < >   USB Diamond Rio500 support                                       
    < >   USB Lego Infrared Tower support                                  
    < >   USB LCD driver support                                           
    < >   USB LED driver support                                           
    < >   Cypress CY7C63xxx USB driver support       
       
    < >   Cypress USB thermometer driver support                           
    < >   Siemens ID USB Mouse Fingerprint sensor support                  
    < >   Elan PCMCIA CardBus Adapter USB Client                           
    < >   Apple Cinema Display support                                     
    < >   USB 2.0 SVGA dongle support (Net2280/SiS315)                     
    < >   USB LD driver      
    < >   PlayStation 2 Trance Vibrator driver support                     
    < >   IO Warrior driver support                                        
    < >   USB testing driver
    <*>   USB OTG & EH Test Mode Support driver                            
    < >   iSight firmware loading support                                  
    < >   USB YUREX driver support                                         
    <*>   USB Gadget Support  --->                                         
          *** OTG and related infrastructure ***                           
    <*>   GPIO based peripheral-only VBUS sensing 'transceiver'            
    < >   Philips ISP1301 with OMAP OTG                                    
    [*]   Generic ULPI Transceiver Driver                                  
    <*>   TWL6030 USB Transceiver Driver                                   
    -*-   NOP USB Transceiver Driver                   
                
 --- USB Gadget Support   
[ ]   Debugging information files (DEVELOPMENT)                        
[ ]   Debugging information files in debugfs (DEVELOPMENT)             
(2)   Maximum VBUS Power usage (2-500 mA)                              
(2)   Number of storage pipeline buffers                               
<M>   USB Peripheral Controller                                        
< >     Faraday FUSB300 USB Peripheral Controller                      
< >     OMAP USB Device Controller                                     
< >     Renesas R8A66597 USB Peripheral Controller                     
< >     DesignWare USB3.0 (DRD) Controller                             
< >     Inventra HDRC USB Peripheral (TI, ADI, ...)                    
< >     Renesas M66592 USB Peripheral Controller                       
< >     PLX NET2272      
< >     Dummy HCD (DEVELOPMENT)                                        
<*>   USB Gadget Drivers (Gadget Zero (DEVELOPMENT))  --->             
        Gadget Zero (DEVELOPMENT)                                      
[ ]       HNP Test Device   

I am getting the following error when I plug in SDcard reader.

root@am335x-evm:~# [  727.161437] usb 2-1: new high-speed USB device number 11 using musb-hdrc
[  727.315704] usb 2-1: device v05e3 p0723 is not supported
[  727.321289] hub 2-0:1.0: unable to enumerate USB device on port 1

I can see that AM335X_USB0_DRVVBUS is driven low. How to make this pin logic high.

Please suggest me how to resolve this error and teach me how to make AM335X_USB0_DRVVBUS logic high.

Regards,
Ajith

  • Hi,

    Which Linux version are you using?

  • Hi,

    I am using Linux version 3.2.0

    Regards,
    Ajith
  • Please disable the following option:

        [*]   Rely on OTG Targeted Peripherals List    

    By the way, there are many options you listed above which are not applicable to AM335x. I recommend you to start with am335x_evm_defconfig, and *only* change the options you clearly know you need.

  • Hi,


    Thanks for the reply.

    I have disabled the following option.

    [*] Rely on OTG Targeted Peripherals List.


    After the above change, Initially the Device got detected when I inserted Pen drive on the OTG.

    Later when I tried again I am getting the below mentioned error.

    "ti81xx_interrupt 1146: VBUS error workaround (delay coming)"

    Can you suggest me how to resolve this error.


    Regards,

    Ajith Kumsi

  • We have pull down USB_ID pin in to ground with resistor 10K value and we are getting this error "ti81xx_interrupt 1146: VBUS error workaround (delay coming)"

    Previously when we had 120K resistor we were getting the below mentioned error.

    [ 24.197326] musb_babble_workaround 922: Babble: devtcl(90)Restarting musb....
    [ 24.285583] usb 2-1: new full-speed USB device number 35 using musb-hdrc
    [ 24.351745] hub 2-0:1.0: unable to enumerate USB device on port 1
    [ 24.692687] ti81xx_interrupt 1119: CAUTION: musb0: Babble Interrupt Occured
    [ 24.700042] evm_deferred_musb_restart 1040: deferred musb restart musbid(0)
    [ 24.707336] musb_babble_workaround 922: Babble: devtcl(90)Restarting musb....
    [ 24.795593] usb 2-1: new full-speed USB device number 36 using musb-hdrc
    [ 24.861755] hub 2-0:1.0: unable to enumerate USB device on port 1
    [ 25.202697] ti81xx_interrupt 1119: CAUTION: musb0: Babble Interrupt Occured
    [ 25.210052] evm_deferred_musb_restart 1040: deferred musb restart musbid(0)
    [ 25.217346] musb_babble_workaround 922: Babble: devtcl(90)Restarting musb....
    [ 25.305511] usb 2-1: new full-speed USB device number 37 using musb-hdrc
    [ 25.371734] hub 2-0:1.0: unable to enumerate USB device on port 1
    [ 25.712677] ti81xx_interrupt 1119: CAUTION: musb0: Babble Interrupt Occured
    [ 25.720031] evm_deferred_musb_restart 1040: deferred musb restart musbid(0)
    [ 25.727355] musb_babble_workaround 922: Babble: devtcl(90)Restarting musb....
    [ 25.815612] usb 2-1: new full-speed USB device number 38 using musb-hdrc
    [ 25.881744] hub 2-0:1.0: unable to enumerate USB device on port 1

    Regards,
    Ajith Kumsi

  • For Host mode the ID pin must be tied directly to GND (replace resistor with 0 Ohm). For Device mode the ID pin must be left floating. For OTG the ID pin must be connected directly to the USB connector ID pin. 

  • Ajith Kumsi said:
    Later when I tried again I am getting the below mentioned error.

    Do you mean the thumb drive only got enumerated correctly at the first time plugged in after the board rebooted? Since the 2nd time plugged in, the 'VBUS error' always happened?

    If so, please provide the log of console command 'cat /proc/driver/musb-hdrc.0' when the error happened while the thumb driver is plugged in.

    In addition to Biser's comments about ID pin connection, please also ensure the VBUS line has a minimum 120uF cap in place, close to the USB receptacle.

  • Hi,

    We have removed the 10K resistor and directly connected ID pin to the Ground.

    < Please ensure the VBUS line has a minimum 120uF cap in place, close to the USB receptacle.>

        We are using 150uF here.

    <  Please provide the log of console command 'cat /proc/driver/musb-hdrc.0' when the error happened while the thumb driver is plugged      in>

    Below is the Kernel dmesg log generated when the USB was plugged in on the OTG .

    [   89.794494] ti81xx_interrupt 1119: CAUTION: musb0: Babble Interrupt Occured
    [   89.801818] evm_deferred_musb_restart 1040: deferred musb restart musbid(0)
    [   89.809112] musb_babble_workaround 922: Babble: devtcl(98)Restarting musb....
    [   89.896728] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [   89.896759] musb-hdrc: MHDRC RTL version 2.0
    [   89.896759] musb-hdrc: setup fifo_mode 4
    [   89.896789] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [   89.896789] musb-hdrc.0: bulk split disabled
    [   89.896820] musb-hdrc.0: bulk combine disabled
    [   89.897399] usb 2-1: new full-speed USB device number 2 using musb-hdrc
    [   89.963531] hub 2-0:1.0: unable to enumerate USB device on port 1
    [   90.126403] SR 1: curr=1050000, delta_v=-7911, calc=1042089, act=1050000, gain=1b



    Log:

    root@am335x-evm:~# cat /proc/driver/musb_hdrc.0

        Status: MHDRC, Mode=Peripheral (Power=e0, DevCtl=19)
        OTG state: b_idle; inactive
        Options: pio, otg (peripheral+host), [eps=16]
        Peripheral address: 00
        Root port status: 00000100
        Gadget driver: g_mass_storage

        ep0 (hw0): 1buf, csr 0000 maxp 0000
            (queue empty)


    root@am335x-evm:~# cat /proc/driver/musb_hdrc.1

        Status: MHDRC, Mode=Host (Power=f0, DevCtl=5d)
        OTG state: a_host; active
        Options: pio, otg (peripheral+host), [eps=16]
        Peripheral address: 00
        Root port status: 00000503


    Please suggest us in this regard.

    Regards,
    Ajith

  • Can you try this same test with a USB High-Speed device and report the result?
  • Hi,


    We have plugged in USB on to the OTG and when rebooted the system it is unable to detect the USB.

    The kernel log is shown below.

    [    1.405517] ftl_cs: FTL header not found.
    [    1.410491] usb 1-1: New USB device found, idVendor=0bda, idProduct=8176
    [    1.417480] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.424957] usb 1-1: Product: 802.11n WLAN Adapter
    [    1.429962] usb 1-1: Manufacturer: Realtek
    [    1.434234] usb 1-1: SerialNumber: 00e04c000001
    [    1.443725] CAN device driver interface
    [    1.490051] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.496520] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
    [    1.503662] davinci_mdio.0: probed
    [    1.507232] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver Micrel KS8001 or KS8721
    [    1.516204] hdlc: HDLC support module revision 1.22
    [    1.521331] DLCI driver v0.35, 4 Jan 1997, mike.mclagan@linux.org.
    [    1.528015] usbcore: registered new interface driver rt2500usb
    [    1.534332] usbcore: registered new interface driver rt73usb
    [    1.540466] usbcore: registered new interface driver rt2800usb
    [    1.546539] hso: drivers/net/usb/hso.c: Option Wireless
    [    1.552246] usbcore: registered new interface driver hso
    [    1.557952] usbcore: registered new interface driver cdc_ether
    [    1.564208] usbcore: registered new interface driver cdc_eem
    [    1.570281] usbcore: registered new interface driver dm9601
    [    1.576293] usbcore: registered new interface driver int51x1
    [    1.585723] usbcore: registered new interface driver cdc_ncm
    [    1.592102] usbcore: registered new interface driver hwa-rc
    [    1.598968] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.605987] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    1.612915] usbcore: registered new interface driver hwa-hc
    [    1.618988] usbcore: registered new interface driver wusb-cbaf
    [    1.625244] usbcore: registered new interface driver cdc_wdm
    [    1.631317] usbcore: registered new interface driver usbtmc
    [    1.637268] usbcore: registered new interface driver uas
    [    1.642822] Initializing USB Mass Storage driver...
    [    1.648162] usbcore: registered new interface driver usb-storage
    [    1.654418] USB Mass Storage support registered.
    [    1.659606] usbcore: registered new interface driver usbserial
    [    1.665710] usbserial: USB Serial Driver core
    [    1.670440] usbcore: registered new interface driver otg-eh-test
    [    1.677154]  gadget: Mass Storage Function, version: 2009/09/11
    [    1.683349]  gadget: Number of LUNs=1
    [    1.687164]  lun0: LUN: removable file: (no medium)
    [    1.692291]  gadget: Mass Storage Gadget, version: 2009/09/11
    [    1.698303]  gadget: userspace failed to provide iSerialNumber
    [    1.704376]  gadget: g_mass_storage ready
    [    1.708587] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    1.714477] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [    1.722320] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.729400] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.736968] usb usb2: Product: MUSB HDRC host driver
    [    1.742156] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
    [    1.747680] usb usb2: SerialNumber: musb-hdrc.0
    [    1.753143] hub 2-0:1.0: USB hub found
    [    1.757080] hub 2-0:1.0: 1 port detected
    [    1.762207] mousedev: PS/2 mouse device common for all mice
    [    1.769165] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    1.776397] i2c /dev entries driver
    [    1.780426] Linux video capture interface: v2.00
    [    1.785583] usbcore: registered new interface driver uvcvideo
    [    1.791625] USB Video Class driver (1.1.1)
    [    1.797760] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.804260] Modular ISDN core version 1.1.21
    [    1.809082] NET: Registered protocol family 34
    [    1.817474] cpuidle: using governor ladder
    [    1.822235] cpuidle: using governor menu

    Please suggest me if I need to modify any changes for detecting the USB on the OTG

    Regards,

    Ajith