]> www.infradead.org Git - nvme.git/commit
usb: typec: tcpm: Add support for sink-bc12-completion-time-ms DT property
authorAmit Sunil Dhamne <amitsd@google.com>
Sun, 3 Nov 2024 03:43:30 +0000 (20:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Nov 2024 08:05:44 +0000 (09:05 +0100)
commit237d4e0f41130a5ff0e1c7dc1cb41ee2fe21cd2a
treec3af1ec842b89fe9a25669697c13eec7c0906d3f
parent3b9d67e7e9237cb91f4830456e45f7e213ce42c3
usb: typec: tcpm: Add support for sink-bc12-completion-time-ms DT property

Add support for parsing DT time property "sink-bc12-completion-time-ms".
This timer is used to relax the PD state machine during Sink attach to
allow completion of Battery Charging (BC1.2) charger type detection in
TCPC before PD negotiations. BC1.2 detection is a hardware mechanism to
detect charger port type that is run by some controllers (such as
"maxim,max33359") in parallel to Type-C connection state machines.
This is to ensure that BC1.2 completes before PD is enabled as running
BC1.2 in parallel with PD negotiation results in delays violating timer
constraints in PD spec.

This is an optional timer and will not add any delay unless explicitly
set.

Signed-off-by: Amit Sunil Dhamne <amitsd@google.com>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20241103034402.2460252-4-amitsd@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c