Skip to content
Draft
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
6 changes: 6 additions & 0 deletions boards/ti/sk_am62/sk_am62_am6254_a53.dts
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,9 @@
ngpios = <24>;
};
};

zephyr_udc0: &main_usb0 {
status = "okay";
ti,syscon-phy-pll-refclk = <&usb0_phy_ctrl>;
ti,vbus-divider;
};
1 change: 1 addition & 0 deletions drivers/usb/udc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ zephyr_library_sources(udc_common.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers/usb/common/)

zephyr_library_sources_ifdef(CONFIG_UDC_DWC2 udc_dwc2.c)
zephyr_library_sources_ifdef(CONFIG_UDC_DWC3 udc_dwc3.c)
zephyr_library_sources_ifdef(CONFIG_UDC_NRF udc_nrf.c)
zephyr_library_sources_ifdef(CONFIG_UDC_KINETIS udc_kinetis.c)
zephyr_library_sources_ifdef(CONFIG_UDC_SKELETON udc_skeleton.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 @@ -70,6 +70,7 @@ module-str = usb drv
source "subsys/logging/Kconfig.template.log_config"

source "drivers/usb/udc/Kconfig.dwc2"
source "drivers/usb/udc/Kconfig.dwc3"
source "drivers/usb/udc/Kconfig.nrf"
source "drivers/usb/udc/Kconfig.kinetis"
source "drivers/usb/udc/Kconfig.skeleton"
Expand Down
45 changes: 45 additions & 0 deletions drivers/usb/udc/Kconfig.dwc3
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# SPDX-FileCopyrightText: Copyright tinyVision.ai Inc.
# SPDX-License-Identifier: Apache-2.0

config UDC_DWC3
bool "Synopsys USB device controller driver"
default y
select NOCACHE_MEMORY if ARCH_HAS_NOCACHE_MEMORY_SUPPORT
select UDC_BUF_FORCE_NOCACHE
select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
depends on DT_HAS_SNPS_DWC3_ENABLED
help
Synopsys DWC3 USB device controller driver.

if UDC_DWC3

config UDC_DWC3_EVENTS_NUM
int "Number of events in the event ring buffer"
default 16
help
It is typically not needed to increase the number of events, but
if it were to happen due to some rare condition, increasing this
number could be useful.

config UDC_DWC3_TRB_NUM
int "Number of buffers for each non-control endpoint"
default 4
range 3 32
help
This is a general knob for the number of buffers present for each
endpoint. This does not affect control endpoints. The default is
enough for most conditions, but for performance and debug purposes,
increasing could reveal useful.

config UDC_DWC3_TI_AM62
bool "TI's AM62 quirk module for the Synopsys DWC3 controller"
default y
select UDC_DRIVER_HAS_HIGH_SPEED_SUPPORT
select SYSCON
depends on DT_HAS_TI_DWC3_AM62_ENABLED
depends on CLOCK_CONTROL
help
Wrapper for configuring TI's vendor specific registers when using
Synopsys DWC3 contorller on TI AM62x SK EVM.

endif # UDC_DWC3
Loading
Loading