]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: tcpci: support setting orientation via GPIO
authorXu Yang <xu.yang_2@nxp.com>
Thu, 19 Mar 2026 09:48:49 +0000 (17:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Mar 2026 14:49:56 +0000 (16:49 +0200)
commit35a99b690c9e0cf7e2ff70934e7a985839193948
tree374053a9009f3aa1a006053ce8c25bae9fe155a6
parent7ef80d637e8da8ae6a0a277068ebc6a56451a9b3
usb: typec: tcpci: support setting orientation via GPIO

If the chip indicates its "Connection Orientation" standard output control
in STANDARD_OUTPUT_CAPABILITIES register, it can do the thing by
programming CONFIG_STANDARD_OUTPUT register. Due to the optional feature,
the chip which not present this capability currently doesn't have a way to
correctly set the data path. This add the support to set orientation via
a simple GPIO.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260319-support-setting-orientation-use-gpio-v4-2-ab6dfa8610c2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci.c