Skip to content

Commit 134488a

Browse files
jfischer-nocfriedt
authored andcommitted
boards: bl654_usb: 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. Signed-off-by: Johann Fischer <[email protected]>
1 parent d90ed0c commit 134488a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

boards/arm/bl654_usb/Kconfig.defconfig

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ config USB_UART_CONSOLE
3131
config UART_LINE_CTRL
3232
default y
3333

34-
config UART_CONSOLE_ON_DEV_NAME
35-
default "CDC_ACM_0"
36-
37-
config UART_SHELL_ON_DEV_NAME
38-
default "CDC_ACM_0"
39-
4034
endif # USB_DEVICE_STACK
4135

4236
if IEEE802154

boards/arm/bl654_usb/bl654_usb.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 = &bl654_cdc_acm_uart;
18+
zephyr,shell-uart = &bl654_cdc_acm_uart;
1719
zephyr,code-partition = &slot0_partition;
1820
};
1921

@@ -101,4 +103,9 @@
101103
zephyr_udc0: &usbd {
102104
compatible = "nordic,nrf-usbd";
103105
status = "okay";
106+
107+
bl654_cdc_acm_uart: bl654_cdc_acm_uart {
108+
compatible = "zephyr,cdc-acm-uart";
109+
label = "CDC_ACM_0";
110+
};
104111
};

0 commit comments

Comments
 (0)