Other Parts Discussed in Thread: TPS65910
Hi All,
Recently we migrate from SDK6 (kernel 3.2.0) to SDK8 (kernel 3.14.26), and I have a problem with conf USB controller (with kernel 3.2.0 it works well).
We use USB0 in host mode.
Configuration from the sdk6
static struct omap_musb_board_data musb_board_data = {
.interface_type = MUSB_INTERFACE_ULPI,
/*
* mode[0:3] = USB0PORT's mode
* mode[4:7] = USB1PORT's mode
*/
.mode = (MUSB_UNDEFINED<<4) | MUSB_HOST,
.power = 500,
.instances = 1,
};
Into kernel from sdk8 I try to configure like:
Device Tree fragment:
/dts-v1/;
#include "am33xx.dtsi"
&usb {
status = "okay";
control@44e10620 {
status = "okay";
};
usb-phy@47401300 {
status = "okay";
};
usb-phy@47401b00 {
status = "okay";
};
usb@47401000 {
status = "okay";
dr_mode = "host";
};
usb@47401800 {
status = "okay";
};
dma-controller@47402000 {
status = "okay";
};
};
And kernel .config fragment:
root@build:/workspace/linux-3.14.26-g2489c02# grep -i usb .config CONFIG_MFD_OMAP_USB_HOST=y # USB HID support CONFIG_USB_HID=y # CONFIG_USB_HIDDEV is not set 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 is not set CONFIG_USB_ANNOUNCE_NEW_DEVICES=y # Miscellaneous USB options CONFIG_USB_DEFAULT_PERSIST=y # CONFIG_USB_DYNAMIC_MINORS is not set CONFIG_USB_OTG=y # CONFIG_USB_OTG_WHITELIST is not set # CONFIG_USB_OTG_BLACKLIST_HUB is not set CONFIG_USB_MON=y # CONFIG_USB_WUSB_CBAF is not set # USB Host Controller Drivers # CONFIG_USB_C67X00_HCD is not set CONFIG_USB_XHCI_HCD=m CONFIG_USB_EHCI_HCD=y # CONFIG_USB_EHCI_ROOT_HUB_TT is not set CONFIG_USB_EHCI_TT_NEWSCHED=y CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_HCD_OMAP=y CONFIG_USB_EHCI_HCD_PLATFORM=y # CONFIG_USB_OHCI_HCD is not set # CONFIG_USB_UHCI_HCD is not set CONFIG_USB_STORAGE=y CONFIG_USB_MUSB_HDRC=y # CONFIG_USB_MUSB_HOST is not set # CONFIG_USB_MUSB_GADGET is not set CONFIG_USB_MUSB_DUAL_ROLE=y # CONFIG_USB_MUSB_TUSB6010 is not set CONFIG_USB_MUSB_OMAP2PLUS=y # CONFIG_USB_MUSB_AM35X is not set # CONFIG_USB_MUSB_DSPS is not set # CONFIG_USB_MUSB_UX500 is not set # CONFIG_USB_INVENTRA_DMA is not set CONFIG_USB_TI_CPPI41_DMA=y # CONFIG_MUSB_PIO_ONLY is not set # CONFIG_USB_DWC3 is not set # CONFIG_USB_DWC2 is not set # CONFIG_USB_CHIPIDEA is not set # USB Physical Layer drivers CONFIG_USB_PHY=y # CONFIG_USB_OTG_FSM is not set CONFIG_NOP_USB_XCEIV=y CONFIG_AM335X_CONTROL_USB=y CONFIG_AM335X_PHY_USB=y # CONFIG_SAMSUNG_USB2PHY is not set # CONFIG_SAMSUNG_USB3PHY is not set # CONFIG_TWL6030_USB is not set # CONFIG_USB_GPIO_VBUS is not set # CONFIG_USB_ISP1301 is not set # CONFIG_USB_RCAR_PHY is not set CONFIG_USB_ULPI=y CONFIG_OMAP_USB2=y
Also I apply patches from here (processors.wiki.ti.com/.../Sitara_Linux_MUSB_Issues)
But it not works! When I connect usb storage it not annouce new device.
Where I made a mistake?
Log from dmesg:
[root@Host:~]# dmesg | grep -i usb [ 0.239935] usbcore: registered new interface driver usbfs [ 0.240123] usbcore: registered new interface driver hub [ 0.240336] usbcore: registered new device driver usb [ 1.247056] usbcore: registered new interface driver asix [ 1.252702] usbcore: registered new interface driver ax88179_178a [ 1.258992] usbcore: registered new interface driver cdc_ether [ 1.265065] usbcore: registered new interface driver smsc95xx [ 1.270995] usbcore: registered new interface driver net1080 [ 1.276861] usbcore: registered new interface driver cdc_subset [ 1.283052] usbcore: registered new interface driver cdc_ncm [ 1.289337] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.311846] usbcore: registered new interface driver cdc_acm [ 1.317555] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters [ 1.325791] usbcore: registered new interface driver usb-storage [ 1.383048] usbcore: registered new interface driver usbhid [ 1.388683] usbhid: USB HID core driver