public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC v4 0/2]  Add support for time DT property in TCPM
@ 2024-09-25  3:11 Amit Sunil Dhamne
  2024-09-25  3:11 ` [RFC v4 1/2] dt-bindings: connector: Add properties to define time values Amit Sunil Dhamne
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Amit Sunil Dhamne @ 2024-09-25  3:11 UTC (permalink / raw)
  To: gregkh, robh, dmitry.baryshkov, heikki.krogerus
  Cc: badhri, kyletso, rdbabiera, linux-kernel, linux-usb, devicetree,
	Amit Sunil Dhamne

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/20240911000715.554184-1-amitsd@google.com/

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
-- 
2.46.0.792.g87dc391469-goog


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

end of thread, other threads:[~2024-10-22  5:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25  3:11 [RFC v4 0/2] Add support for time DT property in TCPM Amit Sunil Dhamne
2024-09-25  3:11 ` [RFC v4 1/2] dt-bindings: connector: Add properties to define time values Amit Sunil Dhamne
2024-09-25  3:11 ` [RFC v4 2/2] usb: typec: tcpm: Add support for parsing time dt properties Amit Sunil Dhamne
2024-10-21 23:01 ` [RFC v4 0/2] Add support for time DT property in TCPM Amit Sunil Dhamne
2024-10-22  5:14   ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox