devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jyri Sarha <jsarha@ti.com>
To: Roger Quadros <rogerq@ti.com>, <kishon@ti.com>
Cc: <aniljoy@cadence.com>, <adouglas@cadence.com>, <nsekhar@ti.com>,
	<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>
Subject: Re: [PATCH v2 0/3] phy: cadence: j721e-wiz: Add Type-C plug flip support
Date: Wed, 23 Oct 2019 15:32:29 +0300	[thread overview]
Message-ID: <9216886d-62d4-db9f-8397-20f77c07ee76@ti.com> (raw)
In-Reply-To: <20191023084916.26895-1-rogerq@ti.com>

On 23/10/2019 11:49, Roger Quadros wrote:
> Hi,
> 
> On J721e platform, the 2 lanes of SERDES PHY are used to achieve
> USB Type-C plug flip support without any additional MUX component
> by using a lane swap feature.
> 
> However, the driver needs to know the Type-C plug orientation before
> it can decide whether to swap the lanes or not. This is achieved via a
> GPIO named DIR.
> 
> Another constraint is that the lane swap must happen only when the PHY
> is in inactive state. This is achieved by sampling the GPIO and
> programming the lane swap before bringing the PHY out of reset.
> 
> This series adds support to read the GPIO and accordingly program
> the Lane swap for Type-C plug flip support.
> 
> Series must be applied on top of
> https://lkml.org/lkml/2019/10/16/517
> 
> cheers,
> -roger
> 
> Changelog:
> v2
> - revise commit log of patch 1
> - use regmap_field in patch 3
> 

Reviewed-by: Jyri Sarha <jsarha@ti.com>

For the whole series.

> Roger Quadros (3):
>   phy: cadence: Sierra: add phy_reset hook
>   dt-bindings: phy: ti,phy-j721e-wiz: Add Type-C dir GPIO
>   phy: ti: j721e-wiz: Manage typec-gpio-dir
> 
>  .../bindings/phy/ti,phy-j721e-wiz.txt         |  9 ++++
>  drivers/phy/cadence/phy-cadence-sierra.c      | 10 ++++
>  drivers/phy/ti/phy-j721e-wiz.c                | 48 +++++++++++++++++++
>  3 files changed, 67 insertions(+)
> 


-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

      parent reply	other threads:[~2019-10-23 12:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23  8:49 [PATCH v2 0/3] phy: cadence: j721e-wiz: Add Type-C plug flip support Roger Quadros
2019-10-23  8:49 ` [PATCH v2 1/3] phy: cadence: Sierra: add phy_reset hook Roger Quadros
2019-10-23  8:49 ` [PATCH v2 2/3] dt-bindings: phy: ti,phy-j721e-wiz: Add Type-C dir GPIO Roger Quadros
2019-10-23 13:00   ` Kishon Vijay Abraham I
2019-10-23  8:49 ` [PATCH v2 3/3] phy: ti: j721e-wiz: Manage typec-gpio-dir Roger Quadros
2019-10-23 12:32 ` Jyri Sarha [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=9216886d-62d4-db9f-8397-20f77c07ee76@ti.com \
    --to=jsarha@ti.com \
    --cc=adouglas@cadence.com \
    --cc=aniljoy@cadence.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kishon@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nsekhar@ti.com \
    --cc=rogerq@ti.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 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).