Skip to content

phy: cadence: j721e-wiz: Add Type-C plug flip support

Roger Quadros linux-devicetree lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 2 repliesIn review
  2. v43 patches 3 repliesSuperseded
  3. v33 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches2 repliesSuperseded
v13 patches4 repliesSuperseded

Changelog from the cover letter

v4
- fixes in dt-binding document
- fix typo
- change to typec-dir-debounce-ms and add min/max/default values
- drop reference to uint32 type
- fixes in driver
- change to updated typec-dir-debounce-ms property
- add limit checks and use default value if not specified

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3phy: cadence: Sierra: add phy_reset hookdrivers/phy/cadence/phy-cadence-sierra.c+10 -00 replies
2/3dt-bindings: phy: ti,phy-j721e-wiz: Add Type-C dir GPIODocumentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml+17 -00 replies
3/3phy: ti: j721e-wiz: Manage typec-gpio-dirdrivers/phy/ti/phy-j721e-wiz.c+61 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJyri SarhaRob Herring
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] phy: cadence: j721e-wiz: Add Type-C plug flip support

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://patchwork.kernel.org/cover/11293671/

cheers,
-roger

Changelog:
v4
- fixes in dt-binding document
- fix typo
- change to typec-dir-debounce-ms and add min/max/default values
- drop reference to uint32 type
- fixes in driver
- change to updated typec-dir-debounce-ms property
- add limit checks and use default value if not specified

v3
- Rebase on v2 of PHY series and update DT binding to yaml

v2
- revise commit log of patch 1
- use regmap_field in patch 3

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.yaml        | 17 ++++++
 drivers/phy/cadence/phy-cadence-sierra.c      | 10 +++
 drivers/phy/ti/phy-j721e-wiz.c                | 61 +++++++++++++++++++
 3 files changed, 88 insertions(+)
Signature · 2 lines
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki