All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2, 1/2] dt-bindings: connector: Add time property for sender response
@ 2024-12-22 10:52 joswang
  2024-12-22 10:52 ` [PATCH v2, 2/2] usb: typec: tcpm: fix the sender response time issue joswang
  2024-12-31 13:47 ` [PATCH v2, 1/2] dt-bindings: connector: Add time property for sender response Rob Herring
  0 siblings, 2 replies; 11+ messages in thread
From: joswang @ 2024-12-22 10:52 UTC (permalink / raw)
  To: heikki.krogerus, robh, krzk+dt, conor+dt
  Cc: gregkh, linux-usb, linux-kernel, devicetree, rdbabiera, Jos Wang

From: Jos Wang <joswang@lenovo.com>

Add "pd2-sender-response-time-ms" and "pd3-sender-response-time-ms"
DT attributes to better solve the following test items in the usb
pd compliance test:
  TEST.PD.PROT.SRC3.2 SenderResponseTimer Timeout
  TEST.PD.PROT.SNK.6 SenderResponseTimer Timeout

This is to enable setting of platform/board specific timer values as
these timers have a range of acceptable values.

[1] https://usb.org/document-library/
    usb-power-delivery-compliance-test-specification-0/USB_PD3_CTS_Q4_2024_OR.zip

Signed-off-by: Jos Wang <joswang@lenovo.com>
---
v1 -> v2:
- modify the commit message
- patch 1/2 and patch 2/2 are placed in the same thread

 .../bindings/connector/usb-connector.yaml     | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml
index 67700440e23b..83be66f6d406 100644
--- a/Documentation/devicetree/bindings/connector/usb-connector.yaml
+++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml
@@ -293,6 +293,26 @@ properties:
       PD negotiation till BC1.2 detection completes.
     default: 0
 
+  pd2-sender-response-time-ms:
+    description: Represents the PD20 max time in ms that port started from
+      the time the last bit of the GoodCRC Message EOP has been received by
+      the Physical Layer, it shall be stopped when the last bit of the expected
+      response Message EOP has been received by the Physical Layer. A timeout
+      leads to a hard reset message by the port.
+    minimum: 24
+    maximum: 30
+    default: 27
+
+  pd3-sender-response-time-ms:
+    description: Represents the PD30 max time in ms that port started from
+      the time the last bit of the GoodCRC Message EOP has been received by
+      the Physical Layer, it shall be stopped when the last bit of the expected
+      response Message EOP has been received by the Physical Layer. A timeout
+      leads to a hard reset message by the port.
+    minimum: 27
+    maximum: 33
+    default: 30
+
 dependencies:
   sink-vdos-v1: [ sink-vdos ]
   sink-vdos: [ sink-vdos-v1 ]
-- 
2.17.1


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

end of thread, other threads:[~2025-01-05 13:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22 10:52 [PATCH v2, 1/2] dt-bindings: connector: Add time property for sender response joswang
2024-12-22 10:52 ` [PATCH v2, 2/2] usb: typec: tcpm: fix the sender response time issue joswang
2024-12-22 13:13   ` Dmitry Baryshkov
2025-01-01 13:00     ` Jos Wang
2025-01-03  5:39       ` Dmitry Baryshkov
2025-01-04  5:23         ` Jos Wang
2025-01-05  2:51     ` Jos Wang
2025-01-05  6:31       ` Dmitry Baryshkov
2025-01-05 13:03         ` Jos Wang
2024-12-31 13:47 ` [PATCH v2, 1/2] dt-bindings: connector: Add time property for sender response Rob Herring
2025-01-04  5:10   ` Jos Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.