[PATCH v4 0/2] usb: typec: tcpci: support setting orientation via GPIO

From: Xu Yang

Date: Thu Mar 19 2026 - 05:47:16 EST


This patchset will add support to set orientation via a simple GPIO in
case the tcpci compatible chip doesn't present "Connection Orientation"
standard output capability.

---
Changes in v4:
- simplify gpiod_set_value_cansleep()
- Link to v3: https://lore.kernel.org/r/20260316-support-setting-orientation-use-gpio-v3-0-0e6622b00dd9@xxxxxxx

Changes in v3:
- use "err = !!orient_gpio"
- Link to v2: https://lore.kernel.org/r/20260312-support-setting-orientation-use-gpio-v2-0-59c523a09f12@xxxxxxx

Changes in v2:
- rename the property as orientation-gpios
- add maxItems to the property and modify description
- improve tcpci_set_orientation()
- Link to v1: https://lore.kernel.org/r/20260310-support-setting-orientation-use-gpio-v1-0-da31dc6cd641@xxxxxxx

---
Xu Yang (2):
dt-bindings: usb: nxp,ptn5110: add optional orientation-gpios property
usb: typec: tcpci: support setting orientation via GPIO

Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml | 4 ++++
drivers/usb/typec/tcpm/tcpci.c | 18 ++++++++++++++++++
2 files changed, 22 insertions(+)
---
base-commit: 84db3719d27337b952fe382413d341fb95351130
change-id: 20260310-support-setting-orientation-use-gpio-5942d9a0b22e

Best regards,
--
Xu Yang <xu.yang_2@xxxxxxx>