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

Commit 9e5cb09

Browse files
amitsd2gregkh
authored andcommitted
dt-bindings: connector: Add time property for Sink BC12 detection completion
This commit adds a new time property for Battery charger (BC1.2) type detection completion process (based on BCv1.2 detection spec) when typec port connects in a potential sink role. BC1.2 detection is used by some Type C port controllers implementations (such as "maxim,max33359") to detect the type of charger port. Signed-off-by: Amit Sunil Dhamne <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f5313c8 commit 9e5cb09

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,16 @@ properties:
283283
maximum: 200
284284
default: 200
285285

286+
sink-bc12-completion-time-ms:
287+
description: Represents the max time in ms that a port in sink role takes
288+
to complete Battery Charger (BC1.2) Detection. BC1.2 detection is a
289+
hardware mechanism, which in some TCPC implementations, can run in
290+
parallel once the Type-C connection state machine reaches the "potential
291+
connect as sink" state. In TCPCs where this causes delays to respond to
292+
the incoming PD messages, sink-bc12-completion-time-ms is used to delay
293+
PD negotiation till BC1.2 detection completes.
294+
default: 0
295+
286296
dependencies:
287297
sink-vdos-v1: [ sink-vdos ]
288298
sink-vdos: [ sink-vdos-v1 ]
@@ -426,6 +436,7 @@ examples:
426436
sink-wait-cap-time-ms = <465>;
427437
ps-source-off-time-ms = <835>;
428438
cc-debounce-time-ms = <101>;
439+
sink-bc12-completion-time-ms = <500>;
429440
};
430441
};
431442

0 commit comments

Comments
 (0)