U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Support MSM8916 USB PHY + UDC in qcom_defconfig
@ 2026-05-27  0:37 Sam Day
  2026-05-27  0:37 ` [PATCH v2 1/3] usb: udc: ci: support USB gadget driver model Sam Day
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Sam Day @ 2026-05-27  0:37 UTC (permalink / raw)
  To: Lukasz Majewski, Mattijs Korpershoek, Marek Vasut, Tom Rini,
	Neil Armstrong, Sumit Garg, Stephan Gerhold, Casey Connolly
  Cc: u-boot, u-boot-qcom, Quentin Schulz, Kever Yang, Peter Robinson,
	Jonas Karlman, George Chan, Balaji Selvanathan, Petr Beneš,
	Heiko Schocher, Simon Glass, Aswin Murugan, Paul Sajna,
	Marek Vasut, Varadarajan Narayanan, Svyatoslav Ryhel,
	Ilias Apalodimas, Luca Weiss, Sam Day

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.

Signed-off-by: Sam Day <me@samcday.com>
---
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/20250412-msm8916-usb-v1-0-2925239caf4b@samcday.com

---
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,
-- 
Sam Day <me@samcday.com>



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-06-30  1:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-27  0:37 [PATCH v2 0/3] Support MSM8916 USB PHY + UDC in qcom_defconfig Sam Day
2026-05-27  0:37 ` [PATCH v2 1/3] usb: udc: ci: support USB gadget driver model Sam Day
2026-06-29 12:20   ` Mattijs Korpershoek
2026-05-27  0:37 ` [PATCH v2 2/3] usb: host: ehci-msm: Register ChipIdea UDC from glue wrapper Sam Day
2026-06-29 12:33   ` Mattijs Korpershoek
2026-05-27  0:38 ` [PATCH v2 3/3] qcom_defconfig: Enable MSM8916 USB PHY + ChipIdea UDC Sam Day
2026-06-29 12:34   ` Mattijs Korpershoek
2026-06-30  1:45   ` Balaji Selvanathan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox