arm/nrf54l: add USBHS device support

arm/nrf54l: add USBHS device support

Assisted-by: Codex:GPT-6
Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl 2026-09-20 16:25:22 +02:00 • committed by Alan C. Assis
parent b27b064931
commit a57a5f656b
10 changed files with 7371 additions and 1 deletions

View file

@ -26,7 +26,7 @@ SPIM Yes
TIMER Yes
TWIM Yes
UARTE Yes No hardware flow control
USBHS No
USBHS Yes LM20A/B device controller
WDT No
========== ======= =====================================
@ -149,6 +149,18 @@ pin assignment table.
stop bit configuration. A format change returns ``-EBUSY`` while a byte is
being transmitted or DMA error recovery is in progress.
USBHS
-----
``CONFIG_NRF54L_USBDEV`` enables the LM20A/B USB device controller.
``CONFIG_USBDEV_DUALSPEED`` enables high-speed operation; otherwise the
controller uses full speed. The driver provides sixteen endpoints in each
direction, including EP0. IN endpoints support packets up to 512 bytes.
USBHS is a Synopsys DWC2 core. ``nrf54l_usbd.c`` is a port of the STM32H7
OTG device driver (``stm32h7/stm32_otgdev.c``); ``nrf54l_usbhs.c`` handles
the Nordic wrapper: clock, PHY, core reset and VBUS detection.
Power Management
================