All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jernej Škrabec" <jernej.skrabec@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [linux-sunxi] Re: [PATCH 6/6] sunxi: Pine64: DTS: enable USB PHY 0 for HCI0
Date: Tue, 18 Jun 2019 19:17:38 +0200	[thread overview]
Message-ID: <3192739.60pWP0RSRq@jernej-laptop> (raw)
In-Reply-To: <CAJiuCce=N7YD-nmVxURAg=eAdKTT_AwTusTdnTh4CeZdw0HZVA@mail.gmail.com>

Dne torek, 18. junij 2019 ob 19:13:16 CEST je Clément Péron napisal(a):
> Hi,
> 
> On Thu, 16 May 2019 at 03:27, Andre Przywara <andre.przywara@arm.com> wrote:
> > The first USB controller on the H6 SoC shares a PHY with the OTG
> > controller. Reportedly to avoid problems with the VBUS regulator under
> > Linux, we don't link OHCI0/EHCI0 to the USB PHY in the H6 .dtsi file.
> > 
> > However on boards which can't use peripheral mode (because they have an
> > always-on VBUS supply on an USB-A socket) we don't need this trick, and
> > can properly connect host controller 0 to the PHY 0.
> > 
> > Amend the Pine H64 .dts to reflect this. This enables the upper USB port
> > in U-Boot on this board.
> > 
> > Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> > ---
> > 
> >  arch/arm/dts/sun50i-h6-pine-h64.dts | 5 ++++-
> >  1 file changed, 4 insertions(+), 1 deletion(-)
> > 
> > diff --git a/arch/arm/dts/sun50i-h6-pine-h64.dts
> > b/arch/arm/dts/sun50i-h6-pine-h64.dts index 4802902e12..aad7646b18 100644
> > --- a/arch/arm/dts/sun50i-h6-pine-h64.dts
> > +++ b/arch/arm/dts/sun50i-h6-pine-h64.dts
> > @@ -96,6 +96,8 @@
> > 
> >  };
> >  
> >  &ehci0 {
> > 
> > +       phys = <&usb2phy 0>;
> > +       phy-names = "usb";
> > 
> >         status = "okay";
> >  
> >  };
> > 
> > @@ -120,6 +122,8 @@
> > 
> >  };
> >  
> >  &ohci0 {
> > 
> > +       phys = <&usb2phy 0>;
> > +       phy-names = "usb";
> > 
> >         status = "okay";
> >  
> >  };
> > 
> > @@ -255,7 +259,6 @@
> > 
> >  &usb2otg {
> >  
> >         dr_mode = "host";
> > 
> > -       status = "okay";
> > 
> >  };
> 
> Maybe you should add explicit comments in the device-tree to avoid
> losing this at next sync with linux dt.

If DT change is U-Boot specific, it should be moved to *-u-boot.dtsi file, 
although I'm not sure if you can delete properties in such way.

Best regards,
Jernej

> 
> Regards,
> Clement
> 
> >  &usb2phy {
> > 
> > --
> > 2.14.5

  reply	other threads:[~2019-06-18 17:17 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-16  1:26 [U-Boot] [PATCH 0/6] sunxi: H6: Enable USB (2.0) support Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 1/6] sunxi: move SUNXI_GPIO to Kconfig Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 2/6] sunxi: gpio: Enable support for H6 pin controller Andre Przywara
2019-05-16  2:34   ` [U-Boot] [linux-sunxi] " Icenowy Zheng
2019-05-16 10:06     ` Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 3/6] sunxi: clocks: Add H6 USB clock gates and resets Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 4/6] sunxi: phy: Add USB PHY support for Allwinner H6 Andre Przywara
2019-06-18 17:14   ` Clément Péron
2019-05-16  1:26 ` [U-Boot] [PATCH 5/6] sunxi: H6: Enable USB for existing boards Andre Przywara
2019-05-16  1:26 ` [U-Boot] [PATCH 6/6] sunxi: Pine64: DTS: enable USB PHY 0 for HCI0 Andre Przywara
2019-06-18 17:13   ` Clément Péron
2019-06-18 17:17     ` Jernej Škrabec [this message]
2019-06-18 17:37       ` [U-Boot] [linux-sunxi] " Chen-Yu Tsai
2019-06-19  1:03       ` André Przywara
2019-06-18  7:50 ` [U-Boot] [linux-sunxi] [PATCH 0/6] sunxi: H6: Enable USB (2.0) support Jagan Teki
2019-06-18 17:08   ` Clément Péron
2019-06-18 17:22     ` Clément Péron
2019-06-19  1:03       ` André Przywara
2019-06-19  8:57         ` Clément Péron
2019-06-19 10:03           ` Andre Przywara
2019-06-20 18:01             ` Clément Péron
2019-06-20 21:17               ` André Przywara
2019-06-26 22:25                 ` Clément Péron
2019-06-19  1:14   ` André 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=3192739.60pWP0RSRq@jernej-laptop \
    --to=jernej.skrabec@gmail.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 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.