From: Andre Przywara <andre.przywara-5wv7dgnIgG8@public.gmane.org>
To: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Cc: Maxime Ripard
<maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org>,
linux-arm-kernel
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
linux-sunxi <linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>,
Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] arm64: dts: allwinner: properly connect USB PHY to port 0
Date: Mon, 24 Jun 2019 13:58:06 +0100 [thread overview]
Message-ID: <20190624135806.7bc78378@donnerap.cambridge.arm.com> (raw)
In-Reply-To: <CAGb2v66WOTFvXWSSGwtLh3hD+N4CeJkFEPnCMXp0FuU2h=LS9Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Mon, 24 Jun 2019 16:25:47 +0800
Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org> wrote:
Hi,
> On Thu, Jun 20, 2019 at 9:02 AM Andre Przywara <andre.przywara-5wv7dgnIgG8@public.gmane.org> wrote:
> >
> > In recent Allwinner SoCs the first USB host controller (HCI0) shares
> > the first PHY with the MUSB controller. Probably to make this sharing
> > work, we were avoiding to declare this in the DT. This has two
> > shortcomings:
> > - U-Boot (which uses the same .dts) cannot use this port without a PHY
> > linked, so we were loosing one USB port there.
> > - It requires the MUSB driver to be enabled and loaded, although we
> > don't actually use it.
> >
> > For those (64-bit) boards which use an USB-A socket for HCI0/MUSB, add
> > a "phys" property pointing to the USB PHY 0.
> >
> > This makes it work in U-Boot, also improves compatiblity when no MUSB
> > driver is loaded (for instance in distribution installers).
> >
> > Signed-off-by: Andre Przywara <andre.przywara-5wv7dgnIgG8@public.gmane.org>
> > ---
> > Hi,
> >
> > I have the feeling this belongs into the .dtsi, but cant't tell for sure
> > how this interacts with the MUSB driver. If need be, we can always pull
> > this up later, I guess.
>
> Have you tried if gadget mode and switching between gadget/host mode on
> an otg port still works? AFAICT that would be the main thing to worry
> about.
I briefly tried gadget mode on a BPi-M64, and that still seemed to work,
but I couldn't switch it to host mode. IIRC that didn't even work without
this patch, but I didn't find the time to investigate yet.
Is it supposed to switch automatically when the ID pin changes state? Do
you know a board/kernel combination which is known to work?
Cheers,
Andre.
next prev parent reply other threads:[~2019-06-24 12:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-20 1:01 [PATCH] arm64: dts: allwinner: properly connect USB PHY to port 0 Andre Przywara
[not found] ` <20190620010127.12071-1-andre.przywara-5wv7dgnIgG8@public.gmane.org>
2019-06-24 8:25 ` Chen-Yu Tsai
[not found] ` <CAGb2v66WOTFvXWSSGwtLh3hD+N4CeJkFEPnCMXp0FuU2h=LS9Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-06-24 12:58 ` Andre Przywara [this message]
[not found] ` <20190624135806.7bc78378-DNuTxU4e2EH5vMa5CHWGZ34zcgK1vI+I0E9HWUfgJXw@public.gmane.org>
2019-06-24 13:03 ` Chen-Yu Tsai
[not found] ` <CAGb2v66vNndnXXfQfF4tnkEfqPjom7e=kuWVzWggjcTSeDPWsA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-06-27 3:34 ` Chen-Yu Tsai
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=20190624135806.7bc78378@donnerap.cambridge.arm.com \
--to=andre.przywara-5wv7dgnigg8@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org \
--cc=robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=wens-jdAy2FN1RRM@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).