All of lore.kernel.org
 help / color / mirror / Atom feed
From: andre.przywara@arm.com (Andre Przywara)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH 05/10] arm64: dts: allwinner: a64: Olinuxino: enable USB
Date: Fri, 6 Jul 2018 16:46:08 +0100	[thread overview]
Message-ID: <4b4d1662-4266-593c-79a9-39eea8fb668c@arm.com> (raw)
In-Reply-To: <52713A44-E2BB-4388-A98F-D49AA3B6EAC3@aosc.io>

Hi,

On 06/07/18 16:36, Icenowy Zheng wrote:
> 
> 
> ? 2018?7?6? GMT+08:00 ??11:35:38, Andre Przywara <andre.przywara@arm.com> ??:
>> Hi,
>>
>> On 06/07/18 16:04, Martin Lucina wrote:
>>> On Friday, 06.07.2018 at?09:52, Andre Przywara wrote:
>>>> The Olinuxino has two USB socket:
>>>> USB0 is connected to a micro B socket. As it has the ID pin wired,
>> we
>>>> describe it as a proper OTG socket, which switches between host and
>>>> device automatically.
>>>> USB1 is connected to a normal USB A socket. PG9 enables the power
>> line,
>>>> so add the required regulator as well.
>>>>
>>>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>>>> ---
>>>
>>> This is not sufficient. Booting with this change results in the
>> following
>>> in dmesg:
>>>
>>> musb-sunxi 1c19000.usb: Invalid or missing 'dr_mode' property
>>> musb-sunxi: probe of 1c19000.usb failed with error -22
>>> [...]
>>> usb0-vbus: disabling
>>>
>>> ... and neither of the USB ports work.
>>>
>>> Adding
>>>
>>>     dr_mode = "host";
>>
>> Argh, right, I remember you mentioned this before.
>> Still it should not affect the other USB port, and actually it is a
>> proper OTG port, so host is not right here. So this points to some
>> other
>> oddity or incorrect description. I need to go back to the schematics
>> and
>> our previous thread.
> 
> OTG needs dr_mode = "otg"; and a ID pin.

Yes, and we have the ID pin in the usbphy node.
Martin, can you please check if dr_mode = "otg"; works for you?

Icenowy: still, how does it affect USB1? I mean, even if MUSB does not
initialise, it should leave the other host controller working? Is that
related to them sharing the usbphy? And this one gives up and tears
*everything* down, including the power for USB1?

Cheers,
Andre.

>>>
>>> to the &usb_otg node fixes this -- the above messages go away and
>> both
>>> ports work as expected.
>>>
>>> -mato
>>>

  reply	other threads:[~2018-07-06 15:46 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06  8:52 [PATCH 00/10] arm64: dts: allwinner: A64 boards DT updates Andre Przywara
2018-07-06  8:52 ` [PATCH 01/10] arm64: dts: allwinner: a64: Add L2 cache nodes Andre Przywara
2018-07-06  8:52 ` [PATCH 02/10] arm64: dts: allwinner: a64: Add Pine64-LTS device tree file Andre Przywara
2018-07-06  8:52 ` [PATCH 03/10] arm64: dts: allwinner: a64: Olinuxino: fix DRAM voltage Andre Przywara
2018-07-06  8:55   ` [linux-sunxi] " Icenowy Zheng
2018-07-06  9:05     ` Andre Przywara
2018-07-06 14:58   ` Martin Lucina
2018-07-06  8:52 ` [PATCH 04/10] arm64: dts: allwinner: a64: Olinuxino: add Ethernet nodes Andre Przywara
2018-07-06 15:01   ` Martin Lucina
2018-07-06  8:52 ` [PATCH 05/10] arm64: dts: allwinner: a64: Olinuxino: enable USB Andre Przywara
2018-07-06 15:04   ` Martin Lucina
2018-07-06 15:35     ` Andre Przywara
2018-07-06 15:36       ` [linux-sunxi] " Icenowy Zheng
2018-07-06 15:46         ` Andre Przywara [this message]
2018-07-06 15:50           ` Icenowy Zheng
2018-07-06 16:17             ` Andre Przywara
2018-07-09 10:15               ` Martin Lucina
2018-07-09 11:30                 ` Andre Przywara
2018-07-09 11:54                   ` Martin Lucina
2018-07-09 13:43                     ` Andre Przywara
2018-07-09 14:49                       ` Martin Lucina
2018-07-09 15:27                         ` Andre Przywara
2018-07-06  8:52 ` [PATCH 06/10] arm64: dts: allwinner: a64: NanoPi-A64: Fix DCDC1 voltage Andre Przywara
2018-07-06  8:52 ` [PATCH 07/10] arm64: dts: allwinner: a64: NanoPi-A64: Add Ethernet Andre Przywara
2018-07-06  8:52 ` [PATCH 08/10] arm64: dts: allwinner: a64: NanoPi-A64: Fix PortE voltage Andre Przywara
2018-07-06  9:03   ` Icenowy Zheng
2018-07-06  9:39     ` Andre Przywara
2018-07-06  9:45       ` Chen-Yu Tsai
2018-07-06  8:52 ` [PATCH 09/10] arm64: dts: allwinner: a64: NanoPi-A64: Add Wifi/Bluetooth chip Andre Przywara
2018-07-06  9:04   ` Icenowy Zheng
2018-07-06  9:38     ` Andre Przywara
2018-07-06 14:23   ` Sergey Suloev
2018-07-06 14:49     ` Andre Przywara
2018-07-06 14:49       ` [linux-sunxi] " Icenowy Zheng
2018-07-06 21:33       ` Sergey Suloev
2018-07-06  8:52 ` [PATCH 10/10] arm64: dts: allwinner: a64: NanoPi-A64: Add blue status LED Andre Przywara

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=4b4d1662-4266-593c-79a9-39eea8fb668c@arm.com \
    --to=andre.przywara@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.