]> Git Repo - J-linux.git/commitdiff
dt-bindings: connector: Add time property for Sink BC12 detection completion
authorAmit Sunil Dhamne <[email protected]>
Sun, 3 Nov 2024 03:43:28 +0000 (20:43 -0700)
committerGreg Kroah-Hartman <[email protected]>
Sat, 16 Nov 2024 08:05:44 +0000 (09:05 +0100)
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]>
Documentation/devicetree/bindings/connector/usb-connector.yaml

index 21a0c58c65cd4161dc00d0f30e5e2a6766ff8b3b..67700440e23b5b7ca0db2c395c8a455bcf650864 100644 (file)
@@ -283,6 +283,16 @@ properties:
     maximum: 200
     default: 200
 
+  sink-bc12-completion-time-ms:
+    description: Represents the max time in ms that a port in sink role takes
+      to complete Battery Charger (BC1.2) Detection. BC1.2 detection is a
+      hardware mechanism, which in some TCPC implementations, can run in
+      parallel once the Type-C connection state machine reaches the "potential
+      connect as sink" state. In TCPCs where this causes delays to respond to
+      the incoming PD messages, sink-bc12-completion-time-ms is used to delay
+      PD negotiation till BC1.2 detection completes.
+    default: 0
+
 dependencies:
   sink-vdos-v1: [ sink-vdos ]
   sink-vdos: [ sink-vdos-v1 ]
@@ -426,6 +436,7 @@ examples:
             sink-wait-cap-time-ms = <465>;
             ps-source-off-time-ms = <835>;
             cc-debounce-time-ms = <101>;
+            sink-bc12-completion-time-ms = <500>;
         };
     };
 
This page took 0.074842 seconds and 4 git commands to generate.