Skip to content

RFC Add support for time DT property in TCPM

Amit Sunil Dhamne linux-devicetree linux-usb lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 RFC Latest2 patches 2 repliesIn review
  2. v3 RFC2 patches 4 repliesSuperseded
  3. v2 RFC2 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC2 patches10 repliesSuperseded

Changes in v4 from the cover letter

- nit: removed an extra newline that got added in tcpm_register_port()

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: connector: Add properties to define time valuesDocumentation/devicetree/bindings/connector/usb-connector.yaml+34 -10 replies
2/2usb: typec: tcpm: Add support for parsing time dt propertiesdrivers/usb/typec/tcpm/tcpm.c+57 -160 replies

Reviews trailers per patch

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

PatchRob Herring (Arm)Heikki Krogerus
1/2R-b
2/2R-b

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

Read the v4 thread

Cover letter [RFC v4 0/2] Add support for time DT property in TCPM

USB PD specification defines a bunch of timers that can have a range of acceptable values instead of specific values. These values have to be tuned based on the platform. However, TCPM currently sets them to a default value without providing a mechanism to set platform specific values.

This patchset adds new DT properties per timer to allow users to define platform specific values.

Changes compared to v3:
- nit: removed an extra newline that got added in tcpm_register_port()

Changes compared to v2:
- Added min, max & default values to DT property in Documentation.
- Changed return type of tcpm_fw_get_timings to void instead of int.

Changes compared to v1:
- Defined new properties per timer that we are interested in rather than defining a single pd-timers u32 array property.
- Better description of the timer properties.
- Since subject has changed, adding link for previous patchset for

    posterity:
    https://lore.kernel.org/all/[email protected]/

Amit Sunil Dhamne (2):
dt-bindings: connector: Add properties to define time values
usb: typec: tcpm: Add support for parsing time dt properties

 .../bindings/connector/usb-connector.yaml     | 35 ++++++++-
 drivers/usb/typec/tcpm/tcpm.c                 | 73 +++++++++++++++----
 2 files changed, 91 insertions(+), 17 deletions(-)

base-commit: 68d4209158f43a558c5553ea95ab0c8975eab18c

Signature · 1 line
2.46.0.792.g87dc391469-goog