Skip to content

Support MSM8916 USB PHY + UDC in qcom_defconfig

Sam Day u-boot 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20250412-msm8916-usb-a1dc93c01bd5

Versions newest first

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Deduplicate CI UDC setup/teardown paths
- Formatting fix
- Regenerate qcom_defconfig with savedefconfig
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3usb: udc: ci: support USB gadget driver modeldrivers/usb/gadget/Kconfig drivers/usb/gadget/ci_udc.c+97 -221 reply
2/3usb: host: ehci-msm: Register ChipIdea UDC from glue wrapperdrivers/usb/host/ehci-msm.c+7 -01 reply
3/3qcom_defconfig: Enable MSM8916 USB PHY + ChipIdea UDCconfigs/qcom_defconfig+3 -12 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchMattijs Korpershoek
1/3
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Support MSM8916 USB PHY + UDC in qcom_defconfig

The MSM8916 SoC includes a ChipIdea UDC. The U-Boot driver for this UDC is quite old, and did not support USB gadget driver model. As a result, it could not be built alongside the DWC3 driver. This meant that qcom_defconfig could not include support for USB on MSM8916.

This series adds support to build ChipIdea UDC with DM_USB_GADGET and ensures that the newly introduced driver is registered from the MSM EHCI glue driver.

The ChipIdea UDC driver continues to work without DM_USB_GADGET. I tested these changes by building dragonboard410c_defconfig (which does not enable DM_USB_GADGET), booting it, and then chain-booting (via fastboot) another u-boot build built with qcom_defconfig. USB gadget mode worked in both builds.

---
Changes in v2 (thanks Stephan):
- Deduplicate CI UDC setup/teardown paths
- Formatting fix
- Regenerate qcom_defconfig with savedefconfig
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Sam Day (3):
usb: udc: ci: support USB gadget driver model
usb: host: ehci-msm: Register ChipIdea UDC from glue wrapper
qcom_defconfig: Enable MSM8916 USB PHY + ChipIdea UDC

 configs/qcom_defconfig      |   4 +-
 drivers/usb/gadget/Kconfig  |   1 -
 drivers/usb/gadget/ci_udc.c | 118 ++++++++++++++++++++++++++++++++++++--------
 drivers/usb/host/ehci-msm.c |   7 +++
 4 files changed, 107 insertions(+), 23 deletions(-)

---
base-commit: 987907ae4bcc5d6055bdf7d318a3edf53e14d5fa
change-id: 20250412-msm8916-usb-a1dc93c01bd5

Best regards,

Signature · 1 line
Sam Day <[email protected]>