Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions boards/aithinker/ai_m62_12f/ai_m62_12f.dts
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@
&gpio0 {
status = "okay";
};

zephyr_udc0: &usbd {
status = "okay";
};
1 change: 1 addition & 0 deletions boards/aithinker/ai_m62_12f/ai_m62_12f.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ supported:
- gpio
- pinctrl
- uart
- usbd
vendor: bflb
1 change: 1 addition & 0 deletions drivers/usb/udc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ zephyr_library()
zephyr_library_sources(udc_common.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers/usb/common/)

zephyr_library_sources_ifdef(CONFIG_UDC_BFLB_BL61X udc_bflb_bl61x.c)
zephyr_library_sources_ifdef(CONFIG_UDC_DWC2 udc_dwc2.c)
zephyr_library_sources_ifdef(CONFIG_UDC_NRF udc_nrf.c)
zephyr_library_sources_ifdef(CONFIG_UDC_KINETIS udc_kinetis.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/udc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ module = UDC_DRIVER
module-str = usb drv
source "subsys/logging/Kconfig.template.log_config"

source "drivers/usb/udc/Kconfig.bflb"
source "drivers/usb/udc/Kconfig.dwc2"
source "drivers/usb/udc/Kconfig.nrf"
source "drivers/usb/udc/Kconfig.kinetis"
Expand Down
22 changes: 22 additions & 0 deletions drivers/usb/udc/Kconfig.bflb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2024-2025 MASSDRIVER EI (massdriver.space)
# SPDX-License-Identifier: Apache-2.0

config UDC_BFLB_BL61X
bool "BL61x USB device controller driver"
select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
imply UDC_WORKQUEUE
default y
depends on DT_HAS_BFLB_BL61X_UDC_ENABLED
help
Bouffalolab BL61x USB device controller driver

if UDC_BFLB_BL61X

config UDC_BFLB_BL61X_EVENT_COUNT
int "Number or blocks in event slab"
range 4 16
default 8
help
Number of blocks in slab for internal endpoint events.

endif # UDC_BFLB_BL61X
Loading