Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit c99834d

Browse files
committed
BACKPORT: FROMGIT: dt-bindings: connector: Add properties to define time values
This commit adds the following properties: * sink-wait-cap-time-ms * ps-source-off-time-ms * cc-debounce-time-ms This is to enable setting of platform/board specific timer values as these timers have a range of acceptable values. Signed-off-by: Amit Sunil Dhamne <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> Bug:296723174 (cherry picked from commit eea5457 in https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ usb-next) [amitsd: patch was not cleanly applying as it was looking for capabilities property which exists in kernel mainline] Change-Id: I3def551f5462c16251d35ff92600a749b8324dbc Signed-off-by: Amit Sunil Dhamne <[email protected]>
1 parent 54b58c8 commit c99834d

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

Documentation/devicetree/bindings/connector/usb-connector.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,36 @@ properties:
231231
SNK_READY for non-pd link.
232232
type: boolean
233233

234+
sink-wait-cap-time-ms:
235+
description: Represents the max time in ms that USB Type-C port (in sink
236+
role) should wait for the port partner (source role) to send source caps.
237+
SinkWaitCap timer starts when port in sink role attaches to the source.
238+
This timer will stop when sink receives PD source cap advertisement before
239+
timeout in which case it'll move to capability negotiation stage. A
240+
timeout leads to a hard reset message by the port.
241+
minimum: 310
242+
maximum: 620
243+
default: 310
244+
245+
ps-source-off-time-ms:
246+
description: Represents the max time in ms that a DRP in source role should
247+
take to turn off power after the PsSourceOff timer starts. PsSourceOff
248+
timer starts when a sink's PHY layer receives EOP of the GoodCRC message
249+
(corresponding to an Accept message sent in response to a PR_Swap or a
250+
FR_Swap request). This timer stops when last bit of GoodCRC EOP
251+
corresponding to the received PS_RDY message is transmitted by the PHY
252+
layer. A timeout shall lead to error recovery in the type-c port.
253+
minimum: 750
254+
maximum: 920
255+
default: 920
256+
257+
cc-debounce-time-ms:
258+
description: Represents the max time in ms that a port shall wait to
259+
determine if it's attached to a partner.
260+
minimum: 100
261+
maximum: 200
262+
default: 200
263+
234264
dependencies:
235265
sink-vdos-v1: [ sink-vdos ]
236266
sink-vdos: [ sink-vdos-v1 ]
@@ -316,7 +346,7 @@ examples:
316346
};
317347
318348
# USB-C connector attached to a typec port controller(ptn5110), which has
319-
# power delivery support and enables drp.
349+
# power delivery support, explicitly defines time properties and enables drp.
320350
- |
321351
#include <dt-bindings/usb/pd.h>
322352
typec: ptn5110 {
@@ -329,6 +359,9 @@ examples:
329359
sink-pdos = <PDO_FIXED(5000, 2000, PDO_FIXED_USB_COMM)
330360
PDO_VAR(5000, 12000, 2000)>;
331361
op-sink-microwatt = <10000000>;
362+
sink-wait-cap-time-ms = <465>;
363+
ps-source-off-time-ms = <835>;
364+
cc-debounce-time-ms = <101>;
332365
};
333366
};
334367

0 commit comments

Comments
 (0)