public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Heiko Stübner" <heiko@sntech.de>
To: u-boot@lists.denx.de
Subject: [PATCH 4/8] usb: dwc3: add make compatible for rockchip platform
Date: Tue, 28 Apr 2020 11:53:07 +0200	[thread overview]
Message-ID: <2014662.uXBneCcEaO@diego> (raw)
In-Reply-To: <68e3390d-8780-aae3-ae9c-6ea6b0a02222@denx.de>

Am Dienstag, 28. April 2020, 11:21:07 CEST schrieb Marek Vasut:
> On 4/28/20 11:05 AM, Frank Wang wrote:
> > Hi Marek,
> > 
> > On 2020/4/28 16:27, Marek Vasut wrote:
> >> On 4/28/20 8:27 AM, Frank Wang wrote:
> >>> RK3399 Type-C PHY is required that must hold whole USB3.0 OTG controller
> >>> in resetting to hold pipe power state in P2 before initializing the PHY.
> >>> This commit fixed it and added device compatible for rockchip platform.
> >>>
> >>> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
> >>> ---
> >>>   drivers/usb/dwc3/dwc3-generic.c | 33 +++++++++++++++++++++++++++------
> >>>   1 file changed, 27 insertions(+), 6 deletions(-)
> >>>
> >>> [...]
> >>>   +    /*
> >>> +     * It must hold whole USB3.0 OTG controller in resetting to hold
> >>> pipe
> >>> +     * power state in P2 before initializing TypeC PHY on RK3399
> >>> platform.
> >>> +     */
> >>> +    if (device_is_compatible(dev->parent, "rockchip,rk3399-dwc3")) {
> >>> +        reset_assert_bulk(&glue->resets);
> >>> +        udelay(1);
> >> Reset delay should be handled by the reset controller, no ?
> > This is dwc3's reset phandle linked to CRU on Rockchip platform,
> > however, the reset driver just update the register value, and the timing
> > need to be guaranteed by invoker itself.
> 
> If the reset controller needs a delay after toggling the bit, then it
> should add such delay, no ?

But normally the time a reset line should be pulled low/high whatever
is specified in the datasheet of the relevant controller (type-c phy here).

My most recent experience is with dsi panels, where the panel-controller's
datasheet specifies how long its reset line needs to be pulled to achieve
a full reset of the controller - and I guess it will be similar with other
controllers.

So to me this doesn't look like a property of the reset controller, but the
controller connected to the reset line - especially as different
"reset-clients" will have different timing constraints.


Heiko

  parent reply	other threads:[~2020-04-28  9:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-28  6:27 [PATCH 0/8] Add Rockchip RK3399 USB3.0 Host support Frank Wang
2020-04-28  6:27 ` [PATCH 1/8] usb: dwc3: add dis_enblslpm_quirk Frank Wang
2020-04-28 14:15   ` Kever Yang
2020-04-28  6:27 ` [PATCH 2/8] usb: dwc3: add dis_u2_freeclk_exists_quirk Frank Wang
2020-04-28 14:15   ` Kever Yang
2020-04-28  6:27 ` [PATCH 3/8] usb: dwc3: amend UTMI/UTMIW phy interface setup Frank Wang
2020-04-28 14:16   ` Kever Yang
2020-04-28  6:27 ` [PATCH 4/8] usb: dwc3: add make compatible for rockchip platform Frank Wang
2020-04-28  8:27   ` Marek Vasut
2020-04-28  9:05     ` Frank Wang
2020-04-28  9:21       ` Marek Vasut
2020-04-28  9:33         ` Frank Wang
2020-04-28  9:53         ` Heiko Stübner [this message]
2020-04-28 10:50           ` Marek Vasut
2020-04-28  6:31 ` [PATCH 5/8] phy: rockchip: add a new driver for type-c phy Frank Wang
2020-04-28  9:27   ` Jagan Teki
2020-04-29  1:24     ` Frank Wang
2020-04-28  6:34 ` [PATCH 6/8] driver: usb: drop legacy rockchip xhci driver Frank Wang
2020-04-28  6:34 ` [PATCH 7/8] ARM: dts: rockchip: amend dwc3 nodes to keep in line with kernel Frank Wang
2020-04-28  9:17   ` Jagan Teki
2020-04-28  9:48     ` Frank Wang
2020-04-28  6:35 ` [PATCH 8/8] configs: evb-rk3399: enable usb3.0 host support Frank Wang
2020-04-28  9:41   ` Jagan Teki
2020-04-28  8:27 ` [PATCH 0/8] Add Rockchip RK3399 USB3.0 Host support 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=2014662.uXBneCcEaO@diego \
    --to=heiko@sntech.de \
    --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