zephyr/boards/common/usb/cdc_acm_serial.dtsi
Johann Fischer 0cae816b27 boards: add common configuration for CDC ACM UART
Many boards have similar code to configure the USB and CDC ACM UART that
they want to use as a logging or shell backend. Some of them have an
incorrect or incomplete configuration.

These boards do not have a built-in debug adapter, but a SoC with a USB
device controller and a bootloader with USB device support. Introduce
common CDC ACM UART configuration that these boards should use for
logging or shell backend to avoid duplicate or incorrect configuration.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2024-12-16 20:54:30 +01:00

21 lines
436 B
Text

/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,console = &board_cdc_acm_uart;
zephyr,shell-uart = &board_cdc_acm_uart;
zephyr,uart-mcumgr = &board_cdc_acm_uart;
zephyr,bt-mon-uart = &board_cdc_acm_uart;
zephyr,bt-c2h-uart = &board_cdc_acm_uart;
};
};
&zephyr_udc0 {
board_cdc_acm_uart: board_cdc_acm_uart {
compatible = "zephyr,cdc-acm-uart";
};
};