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)
commitff4a30d5e24307b416d3eac092c81b1f12a7a599
treed984e07dceea1d9e9be9e984718e4ba3af86127a
parent8c49c9ee4a91c158d28c583862718b348881cb16
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