Hello,
Does anyone have successfully configured the Montavista kernel 2.6.18 for DMVA1 or DMVA2INPC with USB OTG in host mode?. I configured the USB OTG in host mode, but the USB doesn't enumerate my device.
Thanks,
john
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.
Hello,
Does anyone have successfully configured the Montavista kernel 2.6.18 for DMVA1 or DMVA2INPC with USB OTG in host mode?. I configured the USB OTG in host mode, but the USB doesn't enumerate my device.
Thanks,
john
Ajay,
Message during boot up...
musb_hdrc: version 6.0/dbg, cppi-dma, host, debug=3
musb_hdrc musb_hdrc: No DMA interrupt line
musb_hdrc: USB Host mode controller at c3068000 using DMA, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.18_pro500-davinci musb-hcd
usb usb1: SerialNumber: musb_hdrc
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
1. After the reboot
# cat /proc/driver/musb_hdrc
Status: MHDRC, Mode=Host (Power=e0, DevCtl=80)
OTG state: a_idle; inactive
Options: cppi-dma, host, debug=3 [eps=5]
Root port status: 00000100
DaVinci: ctrl=00 stat=0 phy=21c0
rndis=00000 auto=0000 intsrc=00000000 intmsk=01ff1e1f
CPPI: txcr=1 txsrc=0 txena=f; rxcr=1 rxsrc=0 rxena=f
2. Plugged powered USB device
# cat /proc/driver/musb_hdrc
Status: MHDRC, Mode=Host (Power=e0, DevCtl=80)
OTG state: a_idle; inactive
Options: cppi-dma, host, debug=3 [eps=5]
Root port status: 00000100
DaVinci: ctrl=00 stat=0 phy=21c0
rndis=00000 auto=0000 intsrc=00000000 intmsk=01ff1e1f
CPPI: txcr=1 txsrc=0 txena=f; rxcr=1 rxsrc=0 rxena=f
3. Plugged non-powered USB device
cat /proc/driver/musb_hdrc
Status: MHDRC, Mode=Host (Power=e0, DevCtl=80)
OTG state: a_idle; inactive
Options: cppi-dma, host, debug=3 [eps=5]
Root port status: 00000100
DaVinci: ctrl=00 stat=0 phy=21c0
rndis=00000 auto=0000 intsrc=00000000 intmsk=01ff1e1f
CPPI: txcr=1 txsrc=0 txena=f; rxcr=1 rxsrc=0 rxena=f
Ajay,
Here's the non-dma mode.
musb_hdrc: version 6.0/dbg, pio, host, debug=3
musb_hdrc: USB Host mode controller at c3066000 using PIO, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 2.6.18_pro500-davinci_IPNC_DM365_2.6.0 musb-hcd
usb usb1: SerialNumber: musb_hdrc
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
After the reboot (non-DMA mode)
1. cat /proc/driver/musb_hdrc
Status: MHDRC, Mode=Host (Power=e0, DevCtl=80)
OTG state: a_idle; inactive
Options: pio, host, debug=3 [eps=5]
Root port status: 00000100
DaVinci: ctrl=00 stat=0 phy=21c0
rndis=00000 auto=0000 intsrc=00000000 intmsk=01ff1e1f
2. cat /proc/driver/musb_hdrc (plugged usb device)
Status: MHDRC, Mode=Host (Power=e0, DevCtl=80)
OTG state: a_idle; inactive
Options: pio, host, debug=3 [eps=5]
Root port status: 00000100
DaVinci: ctrl=00 stat=0 phy=21c0
rndis=00000 auto=0000 intsrc=00000000 intmsk=01ff1e1f
3. cat /proc/driver/musb_hdrc (plugged self-powered usb device)
cat /proc/driver/musb_hdrc
Status: MHDRC, Mode=Host (Power=e0, DevCtl=80)
OTG state: a_idle; inactive
Options: pio, host, debug=3 [eps=5]
Root port status: 00000100
DaVinci: ctrl=00 stat=0 phy=21c0
rndis=00000 auto=0000 intsrc=00000000 intmsk=01ff1e1f
Vbus in both DMA and nonDMA case is not switched ON. The devCTL register value should be D[3:4] == '11' for this but in your case it's '00'.
See if you have option to start the session using "echo F > /proc/driver/musb_hdrc"
Ajay
Ajay,
I got the info from APPRO (courtesy of one of the TI's tech guy) that the reference design of DMVA1 does not support USB host.
john
John,
That answers why Vbus is not switched on. Now do you plan to use another platform or do hw modification to support host mode?
Ajay