mbox series

[v2,0/4] Enable USB type C support on SM8150

Message ID 20201009082843.28503-1-wcheng@codeaurora.org
Headers show
Series Enable USB type C support on SM8150 | expand

Message

Wesley Cheng Oct. 9, 2020, 8:28 a.m. UTC
Changes in v2:
 - Added patch to fix a typo in dwc3_qcom_vbus_override_enable()
 - Modified dwc3_qcom_find_usb_connector_match() to search the child nodes for
   the connector device as well
 - Moved out the DRD switch remote endpoint from the connector node in the
   pm8150b_typec device

This series adds support for setting of the orientation multiplexor within the
QMP PHY based on the detection output from the PM8150B.  It will also introduce
a role switch in DWC3 QCOM, which is used so that the DWC3 QCOM glue can receive
role switch change events, and set the vbus override accordingly.  This event
will then be propagated down to the DWC3 core driver, by the DWC3 QCOM getting a
handle to the DWC3 core's role switch.

Wesley Cheng (4):
  arm64: boot: dts: qcom: sm8150: Add nodes for PMIC based typec
    detection
  phy: qcom-qmp: Register as a typec switch for orientation detection
  usb: dwc3: dwc3-qcom: Find USB connector and register role switch
  usb: dwc3: dwc3-qcom: Fix typo in the dwc3 vbus override API

 arch/arm64/boot/dts/qcom/sm8150-mtp.dts |  40 +++++++-
 drivers/phy/qualcomm/Kconfig            |  11 ++
 drivers/phy/qualcomm/phy-qcom-qmp.c     |  70 ++++++++++++-
 drivers/usb/dwc3/dwc3-qcom.c            | 128 ++++++++++++++++++++++--
 4 files changed, 239 insertions(+), 10 deletions(-)