From: Stefan Bruens <stefan.bruens@rwth-aachen.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Rpi Uboot not working ; USB keyboard undetected
Date: Mon, 7 Dec 2015 23:36:20 +0100 [thread overview]
Message-ID: <2711289.JWo2o8EA8k@pebbles.site> (raw)
In-Reply-To: <5656EC1A.6070104@redhat.com>
On Thursday 26 November 2015 12:25:14 Hans de Goede wrote:
> Hmm, I'm not familiar with the rpi usb controller, but AFAIK the rpi uses
> an onboard usb-2 hub, when talking to usb-1 devices attached to a usb-2
> hub you must address the tt in the first usb-2 hub upstream of the
> usb-1 device. See e.g.:
Yes, thats true for RPi 1 B, B+ and RPi 2 B.
> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=4e2c4ad3604ba6f5053090749d64
> ed3ce5914805
> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=fcdd8aaa48dfcac492cbac5436d
> 9edc3f5928325
>
> And also, for a controller which AFAICT is closer to the rpi usb controller:
>
> http://git.denx.de/?p=u-boot.git;a=commitdiff;h=e740ca3cab93a8cb31d870bffecd
> 6aa8eadf44e1
>
> Note that the last 2 commits both do a bunch of magic to translate from
> usb_device pointers to dm device pointers and back, not sure if the rpi usb
> controller code has been converted to dm yet, but if it has that is a
> likely culprit.
Most of the DWC2 code is agnostic to DM vs. legacy. The biggest problem is the
fact that on the DWC2 both SSPLIT and CSPLIT have to be handled explicitly,
i.e. there is an ACK interrupt after the SSPLIT and the channel is halted, and
you get another ACK/CHHLT/XFERCOMPL interrupt after the CSPLIT transaction.
I have some rough prototype code which is at least able to enumerate most of
my LS/FS devices. There are errors for some devices, which are picky about
some SETUP requests.
Kind regards,
Stefan
--
Stefan Br?ns / Bergstra?e 21 / 52062 Aachen
home: +49 241 53809034 mobile: +49 151 50412019
work: +49 2405 49936-424
next prev parent reply other threads:[~2015-12-07 22:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 8:55 [U-Boot] Rpi Uboot not working ; USB keyboard undetected Sumeet Jauhar
2015-11-26 0:38 ` Stefan Bruens
2015-11-26 11:25 ` Hans de Goede
2015-11-28 16:55 ` Simon Glass
2015-11-28 17:15 ` Stephen Warren
2015-12-07 22:36 ` Stefan Bruens [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-11-25 10:25 Sumeet Jauhar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2711289.JWo2o8EA8k@pebbles.site \
--to=stefan.bruens@rwth-aachen.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox