usb: typec: Add QCOM PMIC typec detection driver
authorWesley Cheng <wcheng@codeaurora.org>
Thu, 8 Oct 2020 23:59:31 +0000 (16:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Oct 2020 13:14:43 +0000 (15:14 +0200)
commit6c8cf369517640edcb4305b38a27f592a54b7bbe
tree8f723400a0ee06d8752fbf433fb47ab3d02a9eeb
parent3bfb8239be5753a6d7a77556d09ef99ebed89964
usb: typec: Add QCOM PMIC typec detection driver

The QCOM SPMI typec driver handles the role and orientation detection, and
notifies client drivers using the USB role switch framework.   It registers
as a typec port, so orientation can be communicated using the typec switch
APIs.  The driver also attains a handle to the VBUS output regulator, so it
can enable/disable the VBUS source when acting as a host/device.

Signed-off-by: Wesley Cheng <wcheng@codeaurora.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20201008235934.8931-2-wcheng@codeaurora.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/Kconfig
drivers/usb/typec/Makefile
drivers/usb/typec/qcom-pmic-typec.c [new file with mode: 0644]