devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mutiple selectable capabilities in tcpm
@ 2023-08-07 17:41 Kyle Tso
  2023-08-07 17:41 ` [PATCH v2 1/2] dt-bindings: connector: Add child nodes for multiple PD capabilities Kyle Tso
  2023-08-07 17:41 ` [PATCH v2 2/2] usb: typec: tcpm: Support multiple capabilities Kyle Tso
  0 siblings, 2 replies; 9+ messages in thread
From: Kyle Tso @ 2023-08-07 17:41 UTC (permalink / raw)
  To: robh+dt, krzysztof.kozlowski+dt, conor+dt, linux, heikki.krogerus,
	gregkh
  Cc: badhri, devicetree, linux-kernel, linux-usb, Kyle Tso

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     |  80 +++-
 drivers/usb/typec/tcpm/tcpm.c                 | 419 ++++++++++++++----
 2 files changed, 390 insertions(+), 109 deletions(-)

-- 
2.41.0.585.gd2178a4bd4-goog


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-12-04 17:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 17:41 [PATCH v2 0/2] mutiple selectable capabilities in tcpm Kyle Tso
2023-08-07 17:41 ` [PATCH v2 1/2] dt-bindings: connector: Add child nodes for multiple PD capabilities Kyle Tso
2023-08-21 16:25   ` Rob Herring
2023-10-18 18:19     ` Kyle Tso
2023-11-22 15:36       ` Rob Herring
2023-12-04 17:24         ` Kyle Tso
2023-08-07 17:41 ` [PATCH v2 2/2] usb: typec: tcpm: Support multiple capabilities Kyle Tso
     [not found]   ` <d193368b-add5-471a-8eaf-2755afea3edf@web.de>
2023-08-09  8:30     ` Greg Kroah-Hartman
2023-08-09 10:27   ` Guenter Roeck

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).