Hello Hans,
On 5/11/16 7:00 AM, freebsd-usb-requ...@freebsd.org wrote:
Hi, ehci_disown() means that there should be a full speed controller that should handle the device, because it is not high-speed
Ok
Does your board have OHCI/UHCI or only EHCI?
It's EHCI/OHCI... from the A20 User Manual revision 1.3 @ http://dl.linux-sunxi.org/A20/
--- start ---User USB Host controller is fully compliant with the USB 2.0 specification, Enhanced Host Controller Interface (EHCI) Specification, Revision 1.0, and the Open Host Controller Interface (OHCI) Specification Release 1.0a. The controller supports high-speed, 480-Mbps transfers (40 times faster than USB 1.1 full-speed mode) using an EHCI Host controller, as well as full and low speed through one or more integrated OHCI host controllers.
--- end ---
Acording to https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A20-OLinuXino-LIME/A20-OLinuXino-Lime_Rev_C.pdf, the two USB Host connectors are wired through a SY6280 for 5V power control and current limiting, but otherwise, D+ and D- are directly wired to the A20 which has an integrated PHY. A20-OLinuXino-Lime_Rev_C.schHow are the USB parts wired.
Is there a High-Speed TT (USB HUB chip) connected to the EHCI port?
No
Can you compare dmesg from Linux and FreeBSD and look for the USB parts.
Both dmesg outputs below have been selectively edited to remove non-USB related output for brevity.
Linux shows : --- start --- [ 1.691476] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.703219] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.711811] [sw-ehci1]: open clock [ 1.734483] [sw-ehci1]: Set USB Power ON[ 1.740921] sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.754645] sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 1
[ 1.766085] sw-ehci sw-ehci.1: irq 71, io mem 0x01c14000 [ 1.793517] sw-ehci sw-ehci.1: USB 2.0 started, EHCI 1.00 [ 1.802224] hub 1-0:1.0: USB hub found [ 1.808859] hub 1-0:1.0: 1 port detected [ 1.825173] [sw-ohci1]: open clock[ 1.851333] sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver [ 1.864658] sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 2
[ 1.876014] sw-ohci sw-ohci.1: irq 96, io mem 0x01c14400 [ 1.946433] hub 2-0:1.0: USB hub found [ 1.953102] hub 2-0:1.0: 1 port detected [ 1.959564] [sw-ehci2]: open clock [ 1.982249] [sw-ehci2]: Set USB Power ON[ 1.988684] sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.002368] sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 3
[ 2.013803] sw-ehci sw-ehci.2: irq 72, io mem 0x01c1c000 [ 2.033529] sw-ehci sw-ehci.2: USB 2.0 started, EHCI 1.00 [ 2.042206] hub 3-0:1.0: USB hub found [ 2.048836] hub 3-0:1.0: 1 port detected [ 2.055372] [sw-ohci2]: open clock[ 2.081547] sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver [ 2.094884] sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 4
[ 2.106235] sw-ohci sw-ohci.2: irq 97, io mem 0x01c1c400 [ 2.176420] hub 4-0:1.0: USB hub found [ 2.183103] hub 4-0:1.0: 1 port detected --- end --- Freebsd shows: --- start ---awusbphy0: <Allwinner USB PHY> mem 0x1c13400-0x1c1340f,0x1c14800-0x1c14803,0x1c1c800-0x1c1c803 on simplebus0 ehci0: <Allwinner Integrated USB 2.0 controller> mem 0x1c14000-0x1c140ff irq 10016 on simplebus0
usbus0: EHCI version 1.0 usbus0 on ehci0ehci1: <Allwinner Integrated USB 2.0 controller> mem 0x1c1c000-0x1c1c0ff irq 10021 on simplebus0
usbus1: EHCI version 1.0 usbus1 on ehci1 usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 ugen1.1: <Allwinner> at usbus1 uhub0: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 ugen0.1: <Allwinner> at usbus0 uhub1: <Allwinner EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 uhub0: 1 port with 1 removable, self powered uhub1: 1 port with 1 removable, self powered --- end ---
--HPS
Regards, Neal Horman
smime.p7s
Description: S/MIME Cryptographic Signature