<milek7>
what device drivers are required for usb on H6?
<milek7>
I'm trying to make small config but as usual disabled too much...
<apritzel>
milek7: I guess you have the EHCI/OHCI driver, but are missing the PHY driver: CONFIG_PHY_SUN4I_USB, plus CONFIG_PHY_SUN50I_USB3 for USB 3.0
Daanct12 has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
<milek7>
that would be too easy, they are enabled :)
<milek7>
that's weird, plugging usb drive into 2.0 port works
<milek7>
but keyboard/mice does completely nothing
<milek7>
and it somehow wedges it, and usb drive no longer works again...
<apritzel>
then you are missing OHCI
<apritzel>
keyboard/mice are typically USB 1.x only, and need the OHCI block to work
Danct12 has quit [Ping timeout: 480 seconds]
<apritzel>
CONFIG_USB_OHCI_HCD_PLATFORM?
<milek7>
thanks!
warpme_ has quit [Quit: Connection closed for inactivity]
<milek7>
usb3 needs something more than USB_DWC3_OF_SIMPLE?
<apritzel>
milek7: do you have the above mentioned PHY and CONFIG_USB_XHCI_HCD?
<apritzel>
possibly CONFIG_USB_XHCI_PLATFORM?
<apritzel>
I believe we don't really use USB_DWC3_OF_SIMPLE yet, although there are patches to change that, IIUC
<milek7>
yes, phy and xhci is enabled
<milek7>
"/soc/usb@5200000: Failed to get clk index: 2 ret: -517"
<apritzel>
that's EPROBE, so shouldn't be fatal
<apritzel>
EPROBE_DEFER, I mean
<apritzel>
unless it is still listed in /sys/kernel/debug/devices_deferred
<apritzel>
clk index 2 is the RTC, so you need CONFIG_RTC_DRV_SUN6I (should that be the reason)
<apritzel>
milek7: and you are hopefully learning a lesson to not mess with .config, distros and defconfig spend a lot of time in getting this right
<milek7>
it works now
<milek7>
defconfig is heavy though (30MB)
<apritzel>
you should be fine with basing on defconfig, and disabling PCI and the other platforms
<apritzel>
(though I am not sure why 30MB is a real problem)
<milek7>
boot time
<apritzel>
and gzip'ing it brings that down quite significantly