Skip to content
Merged
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
3 changes: 2 additions & 1 deletion boards/atmel/sam/sam4l_ek/sam4l_ek.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2025, Gerson Fernando Budke <nandojve@gmail.com>
# Copyright (c) 2020-2026, Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

identifier: sam4l_ek
Expand All @@ -19,5 +19,6 @@ supported:
- spi
- uart
- usb_device
- usbd
Comment thread
nandojve marked this conversation as resolved.
- watchdog
vendor: atmel
3 changes: 2 additions & 1 deletion boards/peregrine/sam4l_wm400_cape/sam4l_wm400_cape.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2025 Gerson Fernando Budke <nandojve@gmail.com>
# Copyright (c) 2020-2026 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

identifier: sam4l_wm400_cape
Expand All @@ -20,5 +20,6 @@ supported:
- uart
- usart
- usb_device
- usbd
- watchdog
vendor: peregrine
1 change: 1 addition & 0 deletions drivers/usb/udc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ zephyr_library_sources_ifdef(CONFIG_UDC_AMBIQ udc_ambiq.c)
zephyr_library_sources_ifdef(CONFIG_UDC_RENESAS_RA udc_renesas_ra.c)
zephyr_library_sources_ifdef(CONFIG_UDC_MAX32 udc_max32.c)
zephyr_library_sources_ifdef(CONFIG_UDC_SAM0 udc_sam0.c)
zephyr_library_sources_ifdef(CONFIG_UDC_SAM_USBC udc_sam_usbc.c)
1 change: 1 addition & 0 deletions drivers/usb/udc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ source "drivers/usb/udc/Kconfig.ambiq"
source "drivers/usb/udc/Kconfig.renesas_ra"
source "drivers/usb/udc/Kconfig.max32"
source "drivers/usb/udc/Kconfig.sam0"
source "drivers/usb/udc/Kconfig.sam_usbc"

endif # UDC_DRIVER
27 changes: 27 additions & 0 deletions drivers/usb/udc/Kconfig.sam_usbc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright (c) 2025-2026 Gerson Fernando Budke <nandojve@gmail.com>
# SPDX-License-Identifier: Apache-2.0

config UDC_SAM_USBC
bool "SAM USBC family USB device controller driver"
default y
depends on DT_HAS_ATMEL_SAM_USBC_ENABLED
select PINCTRL
select EVENTS
help
Driver for SAM USBC family USB device controller (SAM4L series).

if UDC_SAM_USBC

config UDC_SAM_USBC_STACK_SIZE
int "UDC controller driver internal thread stack size"
default 512
help
Device controller driver internal thread stack size.

config UDC_SAM_USBC_THREAD_PRIORITY
int "UDC controller driver thread priority"
default 8
help
Device controller driver thread priority.

endif # UDC_SAM_USBC
Loading
Loading