File tree 7 files changed +792
-0
lines changed
7 files changed +792
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ hardware features:
60
60
* - I2C
61
61
- :kconfig:option: `CONFIG_I2C `
62
62
- :dtcompatible: `snps,designware-i2c `
63
+ * - USB Device
64
+ - :kconfig:option: `CONFIG_USB_DEVICE_STACK `
65
+ - :dtcompatible: `raspberrypi,pico-usbd `
63
66
* - HWINFO
64
67
- :kconfig:option: `CONFIG_HWINFO `
65
68
- N/A
Original file line number Diff line number Diff line change 84
84
pinctrl-0 = <&i2c1_default>;
85
85
pinctrl-names = "default";
86
86
};
87
+
88
+ zephyr_udc0: &usbd {
89
+ status = "okay";
90
+ };
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ if(CONFIG_USB_DEVICE_DRIVER)
5
5
zephyr_library()
6
6
7
7
zephyr_library_sources_ifdef(CONFIG_USB_DW usb_dc_dw.c)
8
+ zephyr_library_sources_ifdef(CONFIG_USB_DC_RPI_PICO usb_dc_rpi_pico.c)
8
9
zephyr_library_sources_ifdef(CONFIG_USB_DC_STM32 usb_dc_stm32.c)
9
10
zephyr_library_sources_ifdef(CONFIG_USB_DC_SAM0 usb_dc_sam0.c)
10
11
zephyr_library_sources_ifdef(CONFIG_USB_DC_SAM_USBC usb_dc_sam_usbc.c)
Original file line number Diff line number Diff line change 3
3
# Copyright (c) 2016 Wind River Systems, Inc.
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
+ DT_COMPAT_RPI_PICO_USBD := raspberrypi,pico-usbd
7
+
6
8
menuconfig USB_DEVICE_DRIVER
7
9
bool "USB device controller drivers"
8
10
help
@@ -31,6 +33,13 @@ config USB_DW_USB_2_0
31
33
help
32
34
Indicates whether or not USB specification version 2.0 is supported
33
35
36
+ config USB_DC_RPI_PICO
37
+ bool "USB device controller driver for Raspberry Pi Pico devices"
38
+ default $(dt_compat_enabled,$(DT_COMPAT_RPI_PICO_USBD))
39
+ depends on SOC_SERIES_RP2XXX
40
+ help
41
+ Enable USB support on the RP2 family of processors.
42
+
34
43
config USB_DC_STM32
35
44
bool "USB device controller driver for STM32 devices"
36
45
depends on SOC_FAMILY_STM32
You can’t perform that action at this time.
0 commit comments