Devicetree
 help / color / mirror / Atom feed
* [PATCH v3 0/4] usb: typec: ucsi_ccg: Add cypd6129/cypd6229 support and CC orientation sensing via GPIO
@ 2026-11-24  8:53 Akash Kumar
  2026-11-24  8:53 ` [PATCH v3 1/4] dt-bindings: usb: cypress,cypd4226: Add cypd6129/cypd6229 support Akash Kumar
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Akash Kumar @ 2026-11-24  8:53 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Wayne Chang, Heikki Krogerus
  Cc: linux-usb, devicetree, linux-kernel, Akash Kumar, Akash Kumar,
	Conor Dooley, Abel Vesa

This series adds support for the Cypress cypd6129/cypd6229 dual
Type-C PD controllers (same I2C-controlled interface as cypd4226) to
the dt-bindings and ucsi_ccg driver, plus an optional
orientation-gpios property so boards without an HPI CC-polarity
register can still report Type-C connector orientation to the typec
class through typec_set_orientation().

Patches 1-2 (cypd6129/cypd6229 support) were previously reviewed and
carried as a standalone dependency for this series; folding them in
here so the whole stack goes out together.

Patch 1 extends the cypd4226 binding to cover cypd6129/cypd6229.

Patch 2 adds the corresponding of_device_id entries in ucsi_ccg.

Patch 3 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 4 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().

To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Wayne Chang <waynec@nvidia.com>
To: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: linux-usb@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Akash Kumar <akash.kumar@oss.qualcomm.com>

Changes in v3:
- Folded the previously-separate cypd6129/cypd6229 dt-bindings and
  ucsi_ccg of_device_id patches into this series (now 4 patches
  instead of 2), so the whole stack is reviewed and merged together.
- Fixed the orientation-gpios example in cypress,cypd4226.yaml: the
  GPIO specifier used a literal placeholder pin number ("XX")
  instead of a real pin number, which broke 'make dt_binding_check'
  (dtc lexer error parsing the example dts).
- Link to v2: https://lore.kernel.org/r/20261117-ucsi-ccg-cc-orientation-v2-0-2e3576a11eb7@qti.qualcomm.com

Changes in v2:
- Correct sender/author identity to akash.kumar@oss.qualcomm.com
  (no functional changes)
- Link to v1: https://lore.kernel.org/r/20261117-ucsi-ccg-cc-orientation-v1-0-a0fb052c7fcd@qti.qualcomm.com

---
Akash Kumar (4):
      dt-bindings: usb: cypress,cypd4226: Add cypd6129/cypd6229 support
      usb: typec: ucsi_ccg: Add cypd6129/cypd6229 OF device IDs
      dt-bindings: usb: cypress,cypd4226: Add orientation-gpios property
      usb: typec: ucsi_ccg: Add CC orientation sensing via GPIO

---
Akash Kumar (4):
      dt-bindings: usb: cypress,cypd4226: Add cypd6129/cypd6229 support
      usb: typec: ucsi_ccg: Add cypd6129/cypd6229 OF device IDs
      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  | 100 +++++++++++++++++++--
 drivers/usb/typec/ucsi/ucsi_ccg.c                  |  79 +++++++++++++++-
 2 files changed, 171 insertions(+), 8 deletions(-)
---
base-commit: 8e31dedb9ad496ea7dd7064d77d6f7d459c1c90f
change-id: 20261117-ucsi-ccg-cc-orientation-cd3e221ed635

Best regards,
-- 
Akash Kumar <akash.kumar@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-24  9:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24  8:53 [PATCH v3 0/4] usb: typec: ucsi_ccg: Add cypd6129/cypd6229 support and CC orientation sensing via GPIO Akash Kumar
2026-11-24  8:53 ` [PATCH v3 1/4] dt-bindings: usb: cypress,cypd4226: Add cypd6129/cypd6229 support Akash Kumar
2026-11-24  9:02   ` sashiko-bot
2026-11-24  8:53 ` [PATCH v3 2/4] usb: typec: ucsi_ccg: Add cypd6129/cypd6229 OF device IDs Akash Kumar
2026-11-24  8:53 ` [PATCH v3 3/4] dt-bindings: usb: cypress,cypd4226: Add orientation-gpios property Akash Kumar
2026-11-24  8:53 ` [PATCH v3 4/4] usb: typec: ucsi_ccg: Add CC orientation sensing via GPIO Akash Kumar
2026-11-24  9:06   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox