We've created a custom board based on the RZ/A1L. It's USB was designed after the RZ/A1H RSK Dev Kit. We are using both Gadget and Host interfaces for the USB, however neither seems to work. The USB worked fine on the RSK.
In our Linux board file - we register the devices like this:
platform_device_register_full(&r8a66597_usb_gadget0_info); /* USB ch0 as Gadget */
platform_device_register_full(&r8a66597_usb_host1_info); /* USB ch1 as Host */
The Hardware manual shows that the USB is a dedicated set of pins. There should be no pinmuxing required and the RSK did not have any required muxing for the USB.
When we insert the USB kernel module, it prints the following - it does not enumerate any devices ( we have a flash drive plugged in ).
$ insmod /root/usb/r8a66597-hcd.ko
r8a66597_hcd r8a66597_hcd.1: USB Host Controller
r8a66597_hcd r8a66597_hcd.1: new USB bus registered, assigned bus number 1
r8a66597_hcd r8a66597_hcd.1: irq 74, io base 0xe8207000
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: USB Host Controller
usb usb1: Manufacturer: Linux 3.14.79-ltsi r8a66597_hcd
usb usb1: SerialNumber: r8a66597_hcd
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Here is the rest of the kernel config:
(rza1_bsp)$ grep -i USB .config | grep -v "not set"
# USB Network Adapters
# USB GPIO expanders:
# USB HID support
CONFIG_USB_HID=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_DEBUG=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
# Miscellaneous USB options
CONFIG_USB_DEFAULT_PERSIST=y
CONFIG_USB_DYNAMIC_MINORS=y
# USB Host Controller Drivers
CONFIG_USB_R8A66597_HCD=m
# USB Device Class drivers
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
# also be needed; see USB_STORAGE Help for more info
CONFIG_USB_STORAGE=y
# USB Imaging devices
# USB port drivers
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_FTDI_SIO=y
# USB Miscellaneous drivers
# USB Physical Layer drivers
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_DEBUG=y
CONFIG_USB_GADGET_VERBOSE=y
CONFIG_USB_GADGET_DEBUG_FILES=y
CONFIG_USB_GADGET_DEBUG_FS=y
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
# USB Peripheral Controller
CONFIG_USB_R8A66597=y
CONFIG_USB_LIBCOMPOSITE=y
CONFIG_USB_U_ETHER=y
CONFIG_USB_F_ECM=y
CONFIG_USB_F_SUBSET=y
CONFIG_USB_F_RNDIS=y
CONFIG_USB_ETH=y
CONFIG_USB_ETH_RNDIS=y
We'd appreciate any help or ideas on how to get the USB working.
Thanks.