Skip to content

mutiple selectable capabilities in tcpm

Kyle Tso linux-devicetree linux-usb lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 1 replyIn review
  2. v52 patches 3 repliesSuperseded
  3. v42 patches 1 replySuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches1 replySuperseded
v22 patches6 repliesSuperseded
v12 patches2 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: connector: Add child nodes for multiple PD capabilitiesDocumentation/devicetree/bindings/connector/usb-connector.yaml+50 -310 replies
2/2usb: typec: tcpm: Support multiple capabilitiesdrivers/usb/typec/tcpm/tcpm.c+298 -891 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchHeikki Krogerus
1/2
2/2R-b

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 0/2] mutiple selectable capabilities in tcpm

updates in v6

dt-bindings: connector: Add child nodes for multiple PD capabilities
- Cherry-picked from https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?h=dt/next&id=0d3a771610d0e155c9aa305f142f84dda5030fae
- Rob did some modification on it

usb: typec: tcpm: Support multiple capabilities
- Removed the function tcpm_fw_get_properties and merged it to tcpm_fw_get_caps

---
updates in v5

dt-bindings: connector: Add child nodes for multiple PD capabilities
- Fixed DT_CHECK errors

usb: typec: tcpm: Support multiple capabilities
- no change

---
updates in v4

dt-bindings: connector: Add child nodes for multiple PD capabilities
- Modified the structure as corrected in v2
- Modified the commit message

usb: typec: tcpm: Support multiple capabilities
- no change

---
updates in v3

dt-bindings: connector: Add child nodes for multiple PD capabilities
- Updated the commit message
- Remain unchanged for the comments about the property/node refactor

usb: typec: tcpm: Support multiple capabilities
- Changed the error handling and the usage of the APIs
- Updated the commit message

---
updates in v2

dt-bindings: connector: Add child nodes for multiple PD capabilities
- revised the dt-bindings

usb: typec: tcpm: Support multiple capabilities
- Added missing cleanups in the function tcpm_port_unregister_pd

---
Original cover letter:

In commit a7cff92f0635 ("usb: typec: USB Power Delivery helpers for ports and partners"), typec_operations has two new ops .pd_get and .pd_set providing selection of different PD capabilities. This commit implements these two ops in tcpm.

To support multiple capabilities, new dt-binding properties need to be defined to create a tree structure for the driver to get each set of capabilities one by one. The first tier of the child node under connector is called "capabilities". Under this child node lies several 2nd tier of child nodes whose names are in the pattern of ^caps[0-9]+$. And the source and sink capabilities are placed in these nodes.

Kyle Tso (2):
dt-bindings: connector: Add child nodes for multiple PD capabilities
usb: typec: tcpm: Support multiple capabilities

 .../bindings/connector/usb-connector.yaml     |  81 ++--
 drivers/usb/typec/tcpm/tcpm.c                 | 387 ++++++++++++++----
 2 files changed, 348 insertions(+), 120 deletions(-)
Signature · 1 line
2.43.0.472.g3155946c3a-goog