Re: USB Host on OMAP3 EVM, 2.6.29

2009-05-27 Thread Niilo Minkkinen
Hi Eikka.

Am not familiar with OMAP35xx.

Also don't know, what's the config of EVM (if it uses twl4030 tranceiver
or external).
Can it play as a HOST which is the case to supply VBUS ?
Otherwise external self-powered hub might be needed.

-niilo-

On Wed, 2009-05-27 at 02:59 +0200, ext Eino-Ville Talvala wrote:
> Hi,
> 
> We're trying to get basic USB host mode up and running on a OMAP3530 
> EVM, with no success.  We're (now, after many permutations of kernels 
> and .config settings) using the vanilla 2.6.29-omap1 kernel plus the 
> AUTOIDLE fix from Niilo Minkkinen), with slight additions to 
> board-omap3evm to allow the MMC slot to work since it hosts the rootfs 
> (missing regulator setup, as per dfoley's mail on 3/25).
> 
> All we've done with configuration past omap3_evm_defconfig, is to 
> compile in the MMC driver (to allow boot from it), enabling the EHCI 
> host driver (doesn't work with it off, either), and setting the 
> integrated USB driver to Host mode.  Listed below is the resulting 
> .config file.  We've tried many other configurations, but nothing has 
> worked any better.
> 
> I'd very much appreciate it if anyone knows what magic sauce might be 
> missing here - the USB bus debug messages indicate that the bus is being 
> discovered, and powered up, but no voltage appears on the USB VBus line, 
> and no devices are detected when they're plugged in.   Sometimes we've 
> seen auto-suspend messages indicating that the bus is auto-suspending, 
> and other times we've seen nothing - but no matter what, it doesn't seem 
> to work.
> 
> Below is the output of "dmesg | grep 'usb\|hub' " for the above 
> configuration with a USB keyboard plugged in, followed by the .config file:
> 
> Thanks,
> 
> Eino-Ville Talvala
> Graduate Research Assistant
> Computer Graphics Laboratory
> Stanford University
> 
> 
> --
> twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
> twl4030_usb twl4030_usb: Initialized TWL4030 USB module
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> musb_hdrc: version 6.0, musb-dma, host, debug=0
> musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X), bulk 
> split (X), HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
> musb_hdrc: MHDRC RTL version 1.400
> musb_hdrc: setup fifo_mode 4
> musb_hdrc: 29/31 max ep, 15424/16384 memory
> musb_hdrc: hw_ep 0shared, max 64
> musb_hdrc: hw_ep 1tx, max 512
> musb_hdrc: hw_ep 1rx, max 512
> musb_hdrc: hw_ep 2tx, max 512
> musb_hdrc: hw_ep 2rx, max 512
> musb_hdrc: hw_ep 3tx, max 512
> musb_hdrc: hw_ep 3rx, max 512
> musb_hdrc: hw_ep 4tx, max 512
> musb_hdrc: hw_ep 4rx, max 512
> musb_hdrc: hw_ep 5tx, max 512
> musb_hdrc: hw_ep 5rx, max 512
> musb_hdrc: hw_ep 6tx, max 512
> musb_hdrc: hw_ep 6rx, max 512
> musb_hdrc: hw_ep 7tx, max 512
> musb_hdrc: hw_ep 7rx, max 512
> musb_hdrc: hw_ep 8tx, max 512
> musb_hdrc: hw_ep 8rx, max 512
> musb_hdrc: hw_ep 9tx, max 512
> musb_hdrc: hw_ep 9rx, max 512
> musb_hdrc: hw_ep 10tx, max 512
> musb_hdrc: hw_ep 10rx, max 512
> musb_hdrc: hw_ep 11tx, max 512
> musb_hdrc: hw_ep 11rx, max 512
> musb_hdrc: hw_ep 12tx, max 512
> musb_hdrc: hw_ep 12rx, max 512
> musb_hdrc: hw_ep 13tx, max 512
> musb_hdrc: hw_ep 13rx, max 512
> musb_hdrc: hw_ep 14shared, max 1024
> musb_hdrc: hw_ep 15shared, max 1024
> musb_hdrc: USB Host mode controller at d80ab000 using DMA, IRQ 92
> musb_hdrc musb_hdrc: MUSB HDRC host driver
> drivers/usb/core/inode.c: creating file 'devices'
> drivers/usb/core/inode.c: creating file '001'
> musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
> usb usb1: default language 0x0409
> usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
> usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> usb usb1: Product: MUSB HDRC host driver
> usb usb1: Manufacturer: Linux 2.6.29-omap1-05531-g0dfe43a-dirty musb-hcd
> usb usb1: SerialNumber: musb_hdrc
> usb usb1: uevent
> usb usb1: usb_probe_device
> usb usb1: configuration #1 chosen from 1 choice
> usb usb1: adding 1-0:1.0 (config #1, interface 0)
> usb 1-0:1.0: uevent
> hub 1-0:1.0: usb_probe_interface
> hub 1-0:1.0: usb_probe_interface - got id
> hub 1-0:1.0: USB hub found
> hub 1-0:1.0: 1 port detected
> hub 1-0:1.0: standalone hub
> hub 1-0:1.0: individual port power switching
> hub 1-0:1.0: no over-current protection
> hub 1-0:1.0: power on to power good time: 10ms
> hub 1-0:1.0: 100mA bus power budget for each child
> hub 1-0:1.0: local power source is good
> hub 1-0:1.0: enabling power on all ports
> drivers/usb/core/inode.c: creating file '001'
> hub 1-0:1.0: state 7 ports 1 chg  evt 
> usbmon: debugfs is not available
> drivers/usb/core/inode.c: creating file '002'
> usb usb2: default language 0x0409
> usb usb2: New USB device found, idVendor=1d6b, idProduct

USB Host on OMAP3 EVM, 2.6.29

2009-05-26 Thread Eino-Ville Talvala

Hi,

We're trying to get basic USB host mode up and running on a OMAP3530 
EVM, with no success.  We're (now, after many permutations of kernels 
and .config settings) using the vanilla 2.6.29-omap1 kernel plus the 
AUTOIDLE fix from Niilo Minkkinen), with slight additions to 
board-omap3evm to allow the MMC slot to work since it hosts the rootfs 
(missing regulator setup, as per dfoley's mail on 3/25).


All we've done with configuration past omap3_evm_defconfig, is to 
compile in the MMC driver (to allow boot from it), enabling the EHCI 
host driver (doesn't work with it off, either), and setting the 
integrated USB driver to Host mode.  Listed below is the resulting 
.config file.  We've tried many other configurations, but nothing has 
worked any better.


I'd very much appreciate it if anyone knows what magic sauce might be 
missing here - the USB bus debug messages indicate that the bus is being 
discovered, and powered up, but no voltage appears on the USB VBus line, 
and no devices are detected when they're plugged in.   Sometimes we've 
seen auto-suspend messages indicating that the bus is auto-suspending, 
and other times we've seen nothing - but no matter what, it doesn't seem 
to work.


Below is the output of "dmesg | grep 'usb\|hub' " for the above 
configuration with a USB keyboard plugged in, followed by the .config file:


Thanks,

Eino-Ville Talvala
Graduate Research Assistant
Computer Graphics Laboratory
Stanford University


--
twl4030_usb twl4030_usb: HW_CONDITIONS 0x50/80; link 1
twl4030_usb twl4030_usb: Initialized TWL4030 USB module
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine (X), bulk 
split (X), HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)

musb_hdrc: MHDRC RTL version 1.400
musb_hdrc: setup fifo_mode 4
musb_hdrc: 29/31 max ep, 15424/16384 memory
musb_hdrc: hw_ep 0shared, max 64
musb_hdrc: hw_ep 1tx, max 512
musb_hdrc: hw_ep 1rx, max 512
musb_hdrc: hw_ep 2tx, max 512
musb_hdrc: hw_ep 2rx, max 512
musb_hdrc: hw_ep 3tx, max 512
musb_hdrc: hw_ep 3rx, max 512
musb_hdrc: hw_ep 4tx, max 512
musb_hdrc: hw_ep 4rx, max 512
musb_hdrc: hw_ep 5tx, max 512
musb_hdrc: hw_ep 5rx, max 512
musb_hdrc: hw_ep 6tx, max 512
musb_hdrc: hw_ep 6rx, max 512
musb_hdrc: hw_ep 7tx, max 512
musb_hdrc: hw_ep 7rx, max 512
musb_hdrc: hw_ep 8tx, max 512
musb_hdrc: hw_ep 8rx, max 512
musb_hdrc: hw_ep 9tx, max 512
musb_hdrc: hw_ep 9rx, max 512
musb_hdrc: hw_ep 10tx, max 512
musb_hdrc: hw_ep 10rx, max 512
musb_hdrc: hw_ep 11tx, max 512
musb_hdrc: hw_ep 11rx, max 512
musb_hdrc: hw_ep 12tx, max 512
musb_hdrc: hw_ep 12rx, max 512
musb_hdrc: hw_ep 13tx, max 512
musb_hdrc: hw_ep 13rx, max 512
musb_hdrc: hw_ep 14shared, max 1024
musb_hdrc: hw_ep 15shared, max 1024
musb_hdrc: USB Host mode controller at d80ab000 using DMA, IRQ 92
musb_hdrc musb_hdrc: MUSB HDRC host driver
drivers/usb/core/inode.c: creating file 'devices'
drivers/usb/core/inode.c: creating file '001'
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: default language 0x0409
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.29-omap1-05531-g0dfe43a-dirty musb-hcd
usb usb1: SerialNumber: musb_hdrc
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
hub 1-0:1.0: usb_probe_interface
hub 1-0:1.0: usb_probe_interface - got id
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
hub 1-0:1.0: standalone hub
hub 1-0:1.0: individual port power switching
hub 1-0:1.0: no over-current protection
hub 1-0:1.0: power on to power good time: 10ms
hub 1-0:1.0: 100mA bus power budget for each child
hub 1-0:1.0: local power source is good
hub 1-0:1.0: enabling power on all ports
drivers/usb/core/inode.c: creating file '001'
hub 1-0:1.0: state 7 ports 1 chg  evt 
usbmon: debugfs is not available
drivers/usb/core/inode.c: creating file '002'
usb usb2: default language 0x0409
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: OMAP-EHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.29-omap1-05531-g0dfe43a-dirty ehci_hcd
usb usb2: SerialNumber: ehci-omap.0
usb usb2: uevent
usb usb2: usb_probe_device
usb usb2: configuration #1 chosen from 1 choice
usb usb2: adding 2-0:1.0 (config #1, interface 0)
usb 2-0:1.0: uevent
hub 2-0:1.0: usb_probe_interface
hub 2-0:1.0: usb_probe_interface - got id
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
hub 2-