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: 3 additions & 0 deletions boards/arm/rpi_pico/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ hardware features:
* - I2C
- :kconfig:option:`CONFIG_I2C`
- :dtcompatible:`snps,designware-i2c`
* - USB Device
- :kconfig:option:`CONFIG_USB_DEVICE_STACK`
- :dtcompatible:`raspberrypi,pico-usbd`
* - HWINFO
- :kconfig:option:`CONFIG_HWINFO`
- N/A
Expand Down
4 changes: 4 additions & 0 deletions boards/arm/rpi_pico/rpi_pico.dts
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@
pinctrl-0 = <&i2c1_default>;
pinctrl-names = "default";
};

zephyr_udc0: &usbd {
status = "okay";
};
1 change: 1 addition & 0 deletions drivers/usb/device/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if(CONFIG_USB_DEVICE_DRIVER)
zephyr_library()

zephyr_library_sources_ifdef(CONFIG_USB_DW usb_dc_dw.c)
zephyr_library_sources_ifdef(CONFIG_USB_DC_RPI_PICO usb_dc_rpi_pico.c)
zephyr_library_sources_ifdef(CONFIG_USB_DC_STM32 usb_dc_stm32.c)
zephyr_library_sources_ifdef(CONFIG_USB_DC_SAM0 usb_dc_sam0.c)
zephyr_library_sources_ifdef(CONFIG_USB_DC_SAM_USBC usb_dc_sam_usbc.c)
Expand Down
9 changes: 9 additions & 0 deletions drivers/usb/device/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Copyright (c) 2016 Wind River Systems, Inc.
# SPDX-License-Identifier: Apache-2.0

DT_COMPAT_RPI_PICO_USBD := raspberrypi,pico-usbd

menuconfig USB_DEVICE_DRIVER
bool "USB device controller drivers"
help
Expand Down Expand Up @@ -31,6 +33,13 @@ config USB_DW_USB_2_0
help
Indicates whether or not USB specification version 2.0 is supported

config USB_DC_RPI_PICO
bool "USB device controller driver for Raspberry Pi Pico devices"
default $(dt_compat_enabled,$(DT_COMPAT_RPI_PICO_USBD))
depends on SOC_SERIES_RP2XXX
help
Enable USB support on the RP2 family of processors.

config USB_DC_STM32
bool "USB device controller driver for STM32 devices"
depends on SOC_FAMILY_STM32
Expand Down
Loading