Hello ChenYu, Thank you for your response. I tried compiling the MUSB driver in host-only mode. I have set dr_mode="host" in my .dts. and the following Kconfig options (as per http://linux-sunxi.org/USB_Gadget/Ethernet#Kernel_support):
CONFIG_USB_MUSB_HDRC=m CONFIG_USB_MUSB_DUAL_ROLE=y CONFIG_USB_MUSB_SUNXI=m CONFIG_MUSB_PIO_ONLY=y CONFIG_USB_PHY=y CONFIG_NOP_USB_XCEIV=m But loading the sunxi module fails with following error -> [ 128.670411] musb-sunxi 1c13000.usb: Invalid or missing 'dr_mode' property [ 128.677233] musb-sunxi: probe of 1c13000.usb failed with error -22 I read of a similar problem in another thread, but I'm not sure it's the same. I also tried many other combinations including setting MUSB mode to dual-role with dr_mode as OTG. Now, the MUSB driver gets inserted, but the USB port doesn't detect connected devices. Did I miss some setting or Kconfig parameter? Best regards, ~~ Shoaib. On Friday, August 4, 2017 at 6:40:43 AM UTC+4, Chen-Yu Tsai wrote: > > On Sun, Jul 30, 2017 at 2:35 PM, sufi al hussaini hassani kamili > raheemi <[email protected] <javascript:>> wrote: > > Hi All, > > > > I am not able to get USB0 to work in host mode. > > This is an Olimex A20 Olinuxino micro and I have set `dr_mode = "host";` > in > > the dts. I have compiled the kernel with USB support and the other USBs > are > > working fine. > > > > I found this post > > ( > https://groups.google.com/forum/#!msg/linux-sunxi/uulK5lf7XrU/QUMtNbVpAQAJ) > > > which addresses a similar problem for the lime2 board. I tried making > these > > changes but it isn't working for me. > > My kernel version is 4.4.71 and it should have USB support as per the > sunxi > > mainlining effort page. > > > > FWIW, I see the following in my boot logs: > > [ 1.591201] vcc5v0: disabling > > [ 1.591218] ahci-5v: disabling > > [ 1.591225] usb0-vbus: disabling > > > > > > I'd appreciate if someone can help me here. > > What mode are you compiling the MUSB driver as? If you selected OTG then > you also need a gadget driver. I'm not sure if the bug that needs the > gadget driver to probe before the MUSB driver was fixed in 4.4 or not. > > Safe bet is to just compile the MUSB driver in host-only mode. Note this > is separate from what you specified in the device tree. > > ChenYu > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
