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
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ supported:
- sdhc
- spi
- usb_device
- usbd
- watchdog
vendor: atmel
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ supported:
- sdhc
- spi
- usb_device
- usbd
- watchdog
vendor: atmel
1 change: 1 addition & 0 deletions boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ supported:
- sdhc
- spi
- usb_device
- usbd
- watchdog
- xpro_gpio
- xpro_i2c
Expand Down
1 change: 1 addition & 0 deletions boards/atmel/sam/sam_v71_xult/sam_v71_xult_samv71q21b.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ supported:
- sdhc
- spi
- usb_device
- usbd
- watchdog
- xpro_gpio
- xpro_i2c
Expand Down
1 change: 1 addition & 0 deletions boards/others/canbardo/canbardo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ ram: 384
supported:
- can
- gpio
- usbd
- usb_device
vendor: others
1 change: 1 addition & 0 deletions drivers/usb/udc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ 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)
zephyr_library_sources_ifdef(CONFIG_UDC_SAM_USBHS udc_sam_usbhs.c)
1 change: 1 addition & 0 deletions drivers/usb/udc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,6 @@ 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"
source "drivers/usb/udc/Kconfig.sam_usbhs"

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

DT_SAM_HAS_HIGH_SPEED := $(dt_compat_any_has_prop,$(DT_COMPAT_ATMEL_SAM_USBHS),maximum-speed,high-speed)

config UDC_SAM_USBHS
bool "SAM USBHS USB Device Controller driver"
default y
depends on DT_HAS_ATMEL_SAM_USBHS_ENABLED
select PINCTRL
select EVENTS
select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT if $(DT_SAM_HAS_HIGH_SPEED)
help
SAM E70/S70/V70/V71 family USBHS device controller driver.

The driver support High-Speed (480 Mbps) and Full-Speed (12 Mbps)
operation.

if UDC_SAM_USBHS

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

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

endif # UDC_SAM_USBHS
Loading
Loading