[PATCH 0/2] usb: typec: ucsi_ccg: Add CC orientation-gpios support
From: Akash Kumar
Date: Tue Nov 17 2026 - 08:48:32 EST
The CCGx Type-C PD controller has no HPI register exposing CC
polarity, so UCSI status alone cannot tell the typec class which way
a connector is plugged in. This series adds an optional
orientation-gpios property so boards that wire a board-level
CC-orientation sense line to the connector can still report
orientation through typec_set_orientation().
Patch 1 documents the new orientation-gpios property on
cypress,cypd4226.yaml, ordered by connector number (an entry may be
left as <0> for connectors with no sense line).
Patch 2 wires it up in ucsi_ccg: acquire an optional GPIO per
connector in probe(), indexed by the connector's reg property, and
use it from new update_connector/connector_status UCSI ops to set
typec_cap.orientation_aware and drive typec_set_orientation().
Signed-off-by: Akash Kumar <akakum@xxxxxxxxxxxxxxxx>
---
Akash Kumar (2):
dt-bindings: usb: cypress,cypd4226: Add orientation-gpios property
usb: typec: ucsi_ccg: Add CC orientation sensing via GPIO
.../devicetree/bindings/usb/cypress,cypd4226.yaml | 10 +++
drivers/usb/typec/ucsi/ucsi_ccg.c | 76 +++++++++++++++++++++-
2 files changed, 85 insertions(+), 1 deletion(-)
---
base-commit: 2c46a57079874df3a60770278f08404f5d0f782d
change-id: 20261117-ucsi-ccg-cc-orientation-cd3e221ed635
Best regards,
--
Akash Kumar <akakum@xxxxxxxxxxxxxxxx>