From owner-freebsd-arm@FreeBSD.ORG Fri Mar 22 16:29:02 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 931FBE98 for ; Fri, 22 Mar 2013 16:29:02 +0000 (UTC) (envelope-from alexander.fedorov@rtlservice.com) Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 642F5B4D for ; Fri, 22 Mar 2013 16:29:02 +0000 (UTC) Received: by mail-ob0-f170.google.com with SMTP id wc20so4210467obb.15 for ; Fri, 22 Mar 2013 09:29:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=lZnMSMavx/MOUxSdMzZCSAVkE6QtYN+LKgdBm+2ITU4=; b=erSoL4gbKWh178M/0/ewDaAplbrYvN3zdZdiNFRR+9YXoKnn2XKgWpxiUE6c+l4W0o JqyT18XrKu9xf6m83HX6Ej49vYlOYMWnoer6WB4ToR3Gv75Pe16+dtdTCBp95huCvU04 qQhoHs+geJfezftIaWJF0LYOKioJcd2mMaV0aIYbiqjLtoCqq+alGRbPimDCxgqC0oy4 eIRHH1vsAkjH6tufIp/AUOLpbRHjOswRREA/9sCiAQ6Dph3In7ywVSByCFOvG3Vj6ekA gtw6iErCCW5W47q/wdj+H4cgcbbrk9s9SCYKtFTnCfau5t/QdJsBMCTCDeSdLvYkFnJq sSqg== MIME-Version: 1.0 X-Received: by 10.60.170.177 with SMTP id an17mr2442551oec.62.1363969741915; Fri, 22 Mar 2013 09:29:01 -0700 (PDT) Received: by 10.60.15.7 with HTTP; Fri, 22 Mar 2013 09:29:01 -0700 (PDT) In-Reply-To: References: Date: Fri, 22 Mar 2013 20:29:01 +0400 Message-ID: Subject: Fwd: HACKBERRY USB problem From: Alexander Fedorov To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlbUmV9OosNW/a7E8sNh7LnXfVA4wvTUodHIOJfjZZn8JOJZMpmCUth6fi6rUuKhqX6cccA X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Mar 2013 16:29:02 -0000 > It seems like hackberry's usb2 gpio pin is different than cubieboard one. Yes, this is why I edit a10_ehci.c > Did you try to use 2 usb devices for both usb port same time? Hackberry has two external USB connectors in one package, and two not soldered connectors. One on top, and one on bottom side of the board. I soldered one (howto: http://jas-hacks.blogspot.ru/2012/10/hackberry-a10-extra-usb-ports.html). I think USB configuration looks like: A10 USB1 -> GL850G (4-port HUB) -> upper port on external connector and not soldered connectors. A10 USB2 -> RTL8188CUS (WiFi chip) And I assume, A10 USB0 OTG -> bottom port on external connector. I tried to use all available ports: root@:~ # usbconfig ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.1: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) ugen0.3: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen0.4: at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (100mA) As expected, all ports work, except USB0 OTG (bottom port on external connector). > Somehow I observed both works at boot time, but had some problem > attaching after boot. > No, I haven't this problem. All ports work correctly at boot and after. > I never managed to make usb0 work, since it supports both host and otg > mode in cubieboard. > As some docs say it is based on MentorGraphics USB-OTG IP and > currently iirc we only have support of otg mode in musb. > gonzo@ may be working on improving musb driver some time ago, so he > maybe has better ideas. > As for pins, probably right place would be the dts, where we should > separate hackberry and cubieboard specific configs and make general > config for sun4i's SoC. And/or, maybe do it something like it done for OMAP4: sys/arm/ti/omap4/pandaboard/pandaboard.c > > Ganbold > > > >> >> Alexander Fedorov >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"