All of lore.kernel.org
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>,
	Rob Herring <robh+dt@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
	Linux USB List <linux-usb@vger.kernel.org>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 
	<devicetree@vger.kernel.org>,
	"open list:MEDIA DRIVERS FOR RENESAS - FCP" 
	<linux-renesas-soc@vger.kernel.org>
Subject: RE: [PATCH] dt-bindings: usb: ehci: Increase the number of PHYs
Date: Fri, 17 Jun 2022 07:13:05 +0000	[thread overview]
Message-ID: <OS0PR01MB5922E72A4D64A5B93D2EFFB886AF9@OS0PR01MB5922.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAMuHMdU3PnY6yZf70kB9wme7_WTjcPJwmzo--Ua3vJ45w7mD8w@mail.gmail.com>

Hi Geert and Rob,

> Subject: Re: [PATCH] dt-bindings: usb: ehci: Increase the number of PHYs
> 
> Hi Rob,
> 
> On Wed, Jun 15, 2022 at 7:24 PM Rob Herring <robh+dt@kernel.org> wrote:
> > On Wed, Jun 15, 2022 at 7:53 AM Geert Uytterhoeven
> > <geert+renesas@glider.be> wrote:
> > >
> > > "make dtbs_check":
> > >
> > >     arch/arm/boot/dts/r8a77470-iwg23s-sbc.dtb: usb@ee080100: phys:
> [[17, 0], [31]] is too long
> > >             From schema:
> Documentation/devicetree/bindings/usb/generic-ehci.yaml
> > >     arch/arm/boot/dts/r8a77470-iwg23s-sbc.dtb: usb@ee0c0100: phys:
> [[17, 1], [33], [21, 0]] is too long
> > >             From schema:
> > > Documentation/devicetree/bindings/usb/generic-ehci.yaml
> > >
> > > Some USB EHCI controllers (e.g. on the Renesas RZ/G1C SoC) have
> > > multiple PHYs.  Increase the maximum number of PHYs to 3, which is
> > > sufficient for now.
> >
> > Maybe not so 'generic'. Why are there 3? I understand USB3 HCI having
> > 2 for SS and HS. Is it for multiple ports? There's a thread about that
> > currently (Mediatek IIRC) and how to handle multiple phys.
> 
> TBH, I don't know for sure. I've never been much into USB, and the
> RZ/G1C USB architecture differs from other Renesas SoCs in the same
> family.
> 
> This is USB2, not USB3.  There are two channels of OHCI/EHCI, and two
> channels of USB OTG, all with corresponding PHYs (4 in total).
> The first OHCI/EHCI combo is linked to one of the host PHYs, and one of
> the OTG PHYs, so that makes 2 PHYs.

Yes 1 Host phy and other OTG PHY makes it 2 PHYs.

> The second OHCI/EHCI combo is linked to the other host PHY, and to both
> OTG PHYs, so that makes 3 PHYs. IIRC the third link was due to some
> dependency between the 2 OTG PHYs.

The third PHY is a dummy one to initialize timing/interrupt generation registers
by reusing the phy-rcar-gen3-usb2 driver.

Regards,
Biju

      reply	other threads:[~2022-06-17  7:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-15 13:53 [PATCH] dt-bindings: usb: ehci: Increase the number of PHYs Geert Uytterhoeven
2022-06-15 17:24 ` Rob Herring
2022-06-16  7:52   ` Geert Uytterhoeven
2022-06-17  7:13     ` Biju Das [this message]

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=OS0PR01MB5922E72A4D64A5B93D2EFFB886AF9@OS0PR01MB5922.jpnprd01.prod.outlook.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=yoshihiro.shimoda.uh@renesas.com \
    /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.