From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 17/17] sunxi: Hookup OTG USB controller support
Date: Tue, 10 Feb 2015 09:24:47 +0100 [thread overview]
Message-ID: <54D9C04F.2020201@redhat.com> (raw)
In-Reply-To: <CAOMqctQXYYU5LaNC1M27ctw7QkVVOMr5eLKA8TrW=rE0Q-_qoQ@mail.gmail.com>
Hi,
On 09-02-15 23:10, Michal Suchanek wrote:
> On 9 February 2015 at 04:54, Siarhei Siamashka
> <siarhei.siamashka@gmail.com> wrote:
>> On Sat, 31 Jan 2015 04:54:47 +0200
>> Siarhei Siamashka <siarhei.siamashka@gmail.com> wrote:
>>
>>> On Sun, 11 Jan 2015 20:34:55 +0100
>>> Hans de Goede <hdegoede@redhat.com> wrote:
>>>
>>>> Hookup OTG USB controller support and enable the otg controller + USB-keyb
>>>> on various tablets.
>>>>
>>>> This allows tablet owners to interact with u-boot without needing to solder
>>>> a serial console onto their tablet PCB.
>>>
>>> Thanks. Works great on my Primo73 and Primo81 tablets. However I have
>>> just one naive question before happily taking it into use by default.
>>>
>>> Is the hardcoded otg host mode (without checking the id pin) always
>>> safe? For example, what happens if somebody connects a charger instead
>>> of a usb keyboard to the tablet?
>>
>> So, does anyone have any idea if it is theoretically safe to have two
>> USB hosts connected to each other and both driving VBUS at +5V?
>>
>> A somewhat realistic scenario is booting an Allwinner tablet over
>> USB using the FEL mode. Is it a good idea for such tablet to have
>> CONFIG_USB_MUSB_SUNXI=y and CONFIG_USB0_VBUS_PIN="axp_drivebus"
>> in defconfig?
>>
>
> From my past experiments with some non-standard-compliant cables which
> allow connecting a tablet with a PC without telling the tablet to go
> OTG mode it seems the tablet battery is drained really quick in this
> case.
>
> There is a protocol for telling the tablet not to power the bus (or
> telling the PC not to power it for that matter) but both sides have to
> support matching part of the protocol. Either way, ideal case is that
> tablet gets power form PC or powered hub even in host mode which is
> not standards-compliant and obviously does not work with stuff like
> keyboards.
>
> However, it should be possible to detect that there is bus power at
> the moment a device is connected and not power the device in that case
> regardless of usb mode negotiated after the connection.
Right, I've fixing this on my todo list, the plan is to add vbus_det
support, and first check if there is an external vbus before enabling
vbus.
Regards,
Hans
next prev parent reply other threads:[~2015-02-10 8:24 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-11 19:34 [U-Boot] [PATCH 00/17] sunxi: musb otg controller support Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 01/17] sunxi: axp221: Protect axp221_init against multiple calls Hans de Goede
2015-01-13 18:49 ` Ian Campbell
2015-01-14 8:21 ` Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 02/17] sunxi: axp221: Add support for controlling the drivebus pin Hans de Goede
2015-01-13 18:52 ` Ian Campbell
2015-01-11 19:34 ` [U-Boot] [PATCH 03/17] sunxi: Move usb-controller init code out of ehci-sunxi.c for reuse for otg Hans de Goede
2015-01-13 18:55 ` Ian Campbell
2015-01-11 19:34 ` [U-Boot] [PATCH 04/17] sunxi: usbc: Add support for usb0 to the common usbc code Hans de Goede
2015-01-13 18:57 ` Ian Campbell
2015-01-11 19:34 ` [U-Boot] [PATCH 05/17] sunxi: usbc: Add support for usb-vbus0 controller by axp drivebus pin Hans de Goede
2015-01-13 18:58 ` Ian Campbell
2015-01-11 19:34 ` [U-Boot] [PATCH 06/17] usb: Fix usb_kbd_deregister when console-muxing is used Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 07/17] usb: Add an interval parameter to create_int_queue Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 08/17] usb: Do not log an error when no devices is plugged into a root-hub-less hcd Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 09/17] musb-new: Add register defines for different reg layout on sunxi Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 10/17] musb-new: Add sunxi musb controller support Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 11/17] musb-new: Use time based timeouts rather then cpu-cycles based timeouts Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 12/17] musb-new: Fix interrupt transfers not working Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 13/17] musb-new: Fix reset sequence when in host mode Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 14/17] musb-new: Properly remove a transfer from the schedule on timeout Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 15/17] musb-new: Add urb and hep parameters to construct_urb Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 16/17] musb-new: Add interrupt queue support Hans de Goede
2015-01-11 19:34 ` [U-Boot] [PATCH 17/17] sunxi: Hookup OTG USB controller support Hans de Goede
2015-01-13 19:59 ` Ian Campbell
2015-01-14 7:48 ` Hans de Goede
2015-01-31 2:54 ` Siarhei Siamashka
2015-02-09 3:54 ` Siarhei Siamashka
2015-02-09 22:10 ` Michal Suchanek
2015-02-10 8:24 ` Hans de Goede [this message]
2015-01-12 2:59 ` [U-Boot] [PATCH 00/17] sunxi: musb otg " Marek Vasut
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=54D9C04F.2020201@redhat.com \
--to=hdegoede@redhat.com \
--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