Skip to content

Commit 6974c7c

Browse files
jfischer-nocfriedt
authored andcommitted
boards: degu_evk: add chosen nodes for shell and console
Remove UART_CONSOLE_ON_DEV_NAME and UART_SHELL_ON_DEV_NAME options and add chosen nodes for shell and console. Enable USB device support because the board uses CDC ACM UART for console. Signed-off-by: Johann Fischer <[email protected]>
1 parent 134488a commit 6974c7c

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

boards/arm/degu_evk/Kconfig.defconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ config UART_INTERRUPT_DRIVEN
2222
config UART_LINE_CTRL
2323
default y
2424

25-
config UART_CONSOLE_ON_DEV_NAME
26-
default "CDC_ACM_0"
27-
28-
config UART_SHELL_ON_DEV_NAME
29-
default "CDC_ACM_0"
30-
3125
endif # USB_DEVICE_STACK
3226

3327
if DISK_DRIVER_FLASH

boards/arm/degu_evk/degu_evk.dts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
chosen {
1515
zephyr,sram = &sram0;
1616
zephyr,flash = &flash0;
17+
zephyr,console = &degu_cdc_acm_uart;
18+
zephyr,shell-uart = &degu_cdc_acm_uart;
1719
zephyr,code-partition = &slot0_partition;
1820
};
1921

@@ -141,4 +143,9 @@
141143
zephyr_udc0: &usbd {
142144
compatible = "nordic,nrf-usbd";
143145
status = "okay";
146+
147+
degu_cdc_acm_uart: degu_cdc_acm_uart {
148+
compatible = "zephyr,cdc-acm-uart";
149+
label = "CDC_ACM_0";
150+
};
144151
};

boards/arm/degu_evk/degu_evk_defconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ CONFIG_SERIAL=y
1212
CONFIG_CONSOLE=y
1313
CONFIG_UART_CONSOLE=y
1414

15+
# enable USB
16+
CONFIG_USB_DEVICE_STACK=y
17+
1518
# additional board options
1619
CONFIG_GPIO=y
1720
CONFIG_GPIO_AS_PINRESET=y

0 commit comments

Comments
 (0)