]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: tcpci: add support to set connector orientation
authorMarco Felsch <m.felsch@pengutronix.de>
Mon, 1 Jul 2024 13:21:24 +0000 (15:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2024 14:05:38 +0000 (16:05 +0200)
commit62ce9ef1479729b1a3f8a1b19900e28d68b3625e
tree522dcb92af281ff0b8ca38530a67ccb82dd13237
parent89b5a5a60771c60642d34019b3885d1d20934db8
usb: typec: tcpci: add support to set connector orientation

This add the support to set the optional connector orientation bit which
is part of the optional CONFIG_STANDARD_OUTPUT register 0x18 [1]. This
allows system designers to connect the tcpc orientation pin directly to
the 2:1 ss-mux.

[1] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240701132133.3054394-1-m.felsch@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci.c
include/linux/usb/tcpci.h