extcon: intel-cht-wc: Support devs with Micro-B / USB-2 only Type-C connectors
authorHans de Goede <hdegoede@redhat.com>
Tue, 1 Feb 2022 13:07:03 +0000 (14:07 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 1 Feb 2022 13:55:12 +0000 (14:55 +0100)
commitb7fa2cd357eded72159a6112e23839c47f4b50c1
tree89b9362febd07d35412182e6ff447670024e641f
parentb910a9cea8aa54d39275ebee8d0f04ff9656ab80
extcon: intel-cht-wc: Support devs with Micro-B / USB-2 only Type-C connectors

So far the extcon-intel-cht-wc code has only been tested on devices with
a Type-C connector with USB-PD, USB3 (superspeed) and DP-altmode support
through a FUSB302 Type-C controller.

Some devices with the intel-cht-wc PMIC however come with an USB-micro-B
connector, or an USB-2 only Type-C connector without USB-PD.

Which device-model we are running on can be identified with the new
cht_wc_model intel_soc_pmic field. On models without a Type-C controller
the extcon code must control the Vbus 5V boost converter and the USB role
switch depending on the detected cable-type.

Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/extcon/Kconfig
drivers/extcon/extcon-intel-cht-wc.c