]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: mux: intel_pmc_mux: Support for static SBU/HSL orientation
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 7 May 2020 15:08:58 +0000 (18:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 12:20:49 +0000 (14:20 +0200)
commit89f2e5397777a2f754e551e352e5be6519e80348
treed984e07dceea1d9e9be9e984718e4ba3af86127a
parent6925e279ccac4f7e6417649af005fc98506b94be
usb: typec: mux: intel_pmc_mux: Support for static SBU/HSL orientation

The SBU and HSL orientation may be fixed/static from the mux
PoW. Apparently the retimer may take care of the orientation
of these lines. Handling the static SBU (AUX) and HSL
orientation with device properties.

If the SBU orientation is static, a device property
"sbu-orintation" can be used. When the property exists, the
driver always sets the SBU orientation according to the
property value, and when it's not set, the driver uses the
cable plug orientation with SBU.

And with static HSL orientation, "hsl-orientation" device
property can be used in the same way.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200507150900.12102-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c