I am trying to bring up USB on DM365 custom board
In my custom board the GPIO 33 is connected to System self restart. So i disabled that and i connected The VBUS directly to 5 Volt (USB port ___5V.____USB_VBUS).
The ID pin is grounded through 0 ohm resistor. The DM and DP pins are connected to the processor through
And i made the changes in kernel
http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg14742.html
and disable this
// davinci_cfg_reg(DM365_GPIO33);
// gpio_request(33, "usb");
// gpio_direction_output(33, 1);
And in drivers/usb/musb/davinic.c disabled GPIO up.
And drivers/usb/musb/davinic.h
#define USBPHY_CLKFREQ_24MHZ BIT(13)
And changed in drivers/usb/musb/davinic.c also.
In menuconfig i enable scsi and and in usb support enabled
<*> Support for Host-side USB
[*] USB verbose debug messages
[*] USB announce new devices
[*] usb Device File System
[*] USB device class-devices (DEPRECATED)[*]
<*> Inventra Highspeed Dual Role Controller (TI, ADI, ...)
Driver Mode (USB Host) --->
<*> USB Mass Storage support
[*] USB Mass Storage verbose debug
But if i Connected The pendrive or Mouse i am not getting any response
If i see /dev/sda. Nothing is there like this. I tried with 2.6.32-rc2 as well as 2.6.18. Both are giving Same response.
This is my dmesg
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer0_1
musb_hdrc: version 6.0, pio, host, debug=0
musb_hdrc: USB Host mode controller at fec64000 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: 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.32-rc2-davinci1 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
Trying to unpack rootfs image as initramfs...
nikhil#cat /proc/driver/musb_hdrc
Status: MHDRC, Mode=Host (Power=e0, DevCtl=19)
OTG state: a_wait_vrise; inactive
Options: pio, host, debug=0 [eps=5]
Root port status: 00000100
DaVinci: ctrl=00 stat=1 phy=21f0
rndis=00000 auto=0000 intsrc=00000000 intmsk=01f71e1f
cat /proc/interrupts
CPU0
12: 1 AINTC musb_hdrc
16: 0 AINTC edma
17: 0 AINTC edma_error
32: 10987 AINTC clockevent
33: 2 AINTC free-run counter
39: 2 AINTC i2c_davinci
40: 1915 AINTC serial
44: 0 GPIO-AINTC dm365evm_keys
60: 1 AINTC davinci_keyscan
Err: 0
Where i am missing.
If i connected the USB directly to processor with wires then i am getting
usb 1-1: new full speed USB device using musb_hdrc and address 58
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71