Skip to content

Enable USB type C support on SM8150

Wesley Cheng linux-arm-msm linux-devicetree linux-usb lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v13 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- 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

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm64: boot: dts: qcom: sm8150: Add nodes for PMIC based typec detectionarch/arm64/boot/dts/qcom/sm8150-mtp.dts+39 -10 replies
2/4phy: qcom-qmp: Register as a typec switch for orientation detectiondrivers/phy/qualcomm/Kconfig drivers/phy/qualcomm/phy-qcom-qmp.c+78 -30 replies
3/4usb: dwc3: dwc3-qcom: Find USB connector and register role switchdrivers/usb/dwc3/dwc3-qcom.c+118 -20 replies
4/4usb: dwc3: dwc3-qcom: Fix typo in the dwc3 vbus override APIdrivers/usb/dwc3/dwc3-qcom.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Enable USB type C support on SM8150

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(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project