Skip to content

TCPM support for FRS and AutoDischarge Disconnect

Badhri Jagan Sridharan linux-usb lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest14 patches 17 repliesIn review
  2. v112 of 14 patches 4 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14usb: typec: tcpci: Add register definitions to tcpcidrivers/usb/typec/tcpm/tcpci.h+5 -01 reply
2/14usb: typec: tcpci: Add support when hidden tx registers are inaccessibledrivers/usb/typec/tcpm/tcpci.c drivers/usb/typec/tcpm/tcpci.h+43 -111 reply
3/14usb: typec: tcpci: update ROLE_CONTROL for DRPdrivers/usb/typec/tcpm/tcpci.c+36 -11 reply
4/14usb: typec: tcpci: Add a getter method to retrieve tcpm_port referencedrivers/usb/typec/tcpm/tcpci.c drivers/usb/typec/tcpm/tcpci.h+8 -01 reply
5/14usb: typec: tcpci: Add set_vbus tcpci callbackdrivers/usb/typec/tcpm/tcpci.c drivers/usb/typec/tcpm/tcpci.h+8 -02 replies
6/14dt-bindings: usb: Maxim type-c controller device tree binding documentDocumentation/devicetree/bindings/usb/maxim,tcpci.txt+44 -00 replies
7/14usb: typec: tcpci_maxim: Chip level TCPC driverdrivers/usb/typec/tcpm/Kconfig drivers/usb/typec/tcpm/Makefile drivers/usb/typec/tcpm/tcpci.h +1 more+487 -62 replies
8/14dt-bindings: connector: Add property to set initial current cap for FRSDocumentation/devicetree/bindings/connector/usb-connector.txt include/dt-bindings/usb/pd.h+138 -00 replies
9/14usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)drivers/usb/typec/tcpm/tcpm.c include/linux/usb/pd.h include/linux/usb/tcpm.h +1 more+245 -122 replies
10/14usb: typec: tcpci: Implement callbacks for FRSdrivers/usb/typec/tcpm/tcpci.c drivers/usb/typec/tcpm/tcpci.h+25 -01 reply
11/14usb: typec: tcpci_maxim: Add support for Sink FRSdrivers/usb/typec/tcpm/tcpci_maxim.c+46 -41 reply
12/14usb: typec: tcpm: Implement enabling Auto Discharge disconnect supportdrivers/usb/typec/tcpm/tcpm.c include/linux/usb/tcpm.h+86 -40 replies
13/14usb: typec: tcpci: Implement Auto discharge disconnect callbacksdrivers/usb/typec/tcpm/tcpci.c drivers/usb/typec/tcpm/tcpci.h+53 -20 replies
14/14usb: typec: tcpci_maxim: Implemnent set_auto_vbus_discharge_thresholddrivers/usb/typec/tcpm/tcpci_maxim.c+48 -00 replies

Reviews trailers per patch

6 of 14 patches have a Reviewed-by or Acked-by.

PatchHeikki Krogerus
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14
6/14
7/14
8/14
9/14
10/14R-b
11/14R-b
12/14
13/14
14/14

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

Read the v6 thread

Cover letter [PATCH v6 00/14] TCPM support for FRS and AutoDischarge Disconnect

First of all apologies for mixing up the patch version as noted by Heikki and Greg. All of them were v1's but since I was manually adding the version numbers I mixed them up. Using the --reroll-count option now. Updating the patch version to v6 (highest version number in the previous patchset + 1) to avoid confusion.

I also rebased on to off of the recent usb-next tip:
5fedf0d295d3 (origin/usb-testing, origin/usb-next) Merge 5.9-rc3 into usb-next
Which had the following changes causing merge conflict:
3ed8e1c2ac99 usb: typec: tcpm: Migrate workqueue to RT priority for processing events 6bbe2a90a0bb usb: typec: tcpm: During PR_SWAP, source caps should be sent only after tSwapSourceStart

Addressed comments from Heikki and Randy which have described in the individual commit's change history as well.

Badhri Jagan Sridharan (14):
usb: typec: tcpci: Add register definitions to tcpci
usb: typec: tcpci: Add support when hidden tx registers are
inaccessible
usb: typec: tcpci: update ROLE_CONTROL for DRP
usb: typec: tcpci: Add a getter method to retrieve tcpm_port reference
usb: typec: tcpci: Add set_vbus tcpci callback
dt-bindings: usb: Maxim type-c controller device tree binding document
usb: typec: tcpci_maxim: Chip level TCPC driver
dt-bindings: connector: Add property to set initial current cap for
FRS
usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)
usb: typec: tcpci: Implement callbacks for FRS
usb: typec: tcpci_maxim: Add support for Sink FRS
usb: typec: tcpm: Implement enabling Auto Discharge disconnect support
usb: typec: tcpci: Implement Auto discharge disconnect callbacks
usb: typec: tcpci_maxim: Implemnent set_auto_vbus_discharge_threshold

 .../bindings/connector/usb-connector.txt      | 128 ++++
 .../devicetree/bindings/usb/maxim,tcpci.txt   |  44 ++
 drivers/usb/typec/tcpm/Kconfig                |   5 +
 drivers/usb/typec/tcpm/Makefile               |  13 +-
 drivers/usb/typec/tcpm/tcpci.c                | 146 ++++-
 drivers/usb/typec/tcpm/tcpci.h                |  43 ++
 drivers/usb/typec/tcpm/tcpci_maxim.c          | 564 ++++++++++++++++++
 drivers/usb/typec/tcpm/tcpm.c                 | 291 ++++++++-
 include/dt-bindings/usb/pd.h                  |  10 +
 include/linux/usb/pd.h                        |  19 +-
 include/linux/usb/tcpm.h                      |  24 +-
 include/linux/usb/typec.h                     |  13 +
 12 files changed, 1266 insertions(+), 34 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/connector/usb-connector.txt
 create mode 100644 Documentation/devicetree/bindings/usb/maxim,tcpci.txt
 create mode 100644 drivers/usb/typec/tcpm/tcpci_maxim.c

base-commit: 5fedf0d295d3ef69fd85fdee4cb68fd3756b54c2

Signature · 1 line
2.28.0.402.g5ffc5be6b7-goog