platform/chrome: cros_typec_switch: Add switch driver
authorPrashant Malani <pmalani@chromium.org>
Tue, 16 Aug 2022 21:48:30 +0000 (21:48 +0000)
committerPrashant Malani <pmalani@chromium.org>
Thu, 18 Aug 2022 22:20:35 +0000 (22:20 +0000)
commitaffc804c44c8259ae53423aa3b5c20907e3a9a34
tree4e26804341ec985301d39aa92c72ab2117c1183e
parent77947238dad3b83bbe085ebcd576ea55afb70425
platform/chrome: cros_typec_switch: Add switch driver

Introduce a driver to configure USB Type-C mode switches and retimers
which are controlled by the ChromeOS EC (Embedded Controller).
This allows Type-C port drivers, as well as alternate mode drivers to
configure their relevant mode switches and retimers according to the
Type-C state they want to achieve.

ACPI devices with ID GOOG001A will bind to this driver.

Currently, we only register a retimer switch with a stub set function.
Subsequent patches will implement the host command set functionality,
and introduce mode switches.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220816214857.2088914-3-pmalani@chromium.org
MAINTAINERS
drivers/platform/chrome/Kconfig
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_typec_switch.c [new file with mode: 0644]