Skip to content

Commit d327b70

Browse files
author
Desnes Nunes
committed
dt-bindings: connector: Add time property for Sink BC12 detection completion
JIRA: https://issues.redhat.com/browse/RHEL-78828 Conflicts: * Avoiding commit <4569820881c6> ("dt-bindings: Drop remaining unneeded quotes") commit 9e5cb09 Author: Amit Sunil Dhamne <amitsd@google.com> Date: Sat, 2 Nov 2024 20:43:28 -0700 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 <amitsd@google.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20241103034402.2460252-2-amitsd@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Desnes Nunes <desnesn@redhat.com>
1 parent f6d8baf commit d327b70

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)