Commit eb5fd177 authored by Andriy Gelman's avatar Andriy Gelman Committed by Fabio Baltieri
Browse files

tests: drivers: uart_async_api_api: Add overlay for xmc45_relax_kit



Adds overlay and config for xmc45_relax_kit.
The Kconfig entry CONFIG_SPEED_OPTIMIZATIONS=y must be set
to pass the test at baudrate 921600 bps.

Signed-off-by: default avatarAndriy Gelman <andriy.gelman@gmail.com>
parent 30b11260
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
CONFIG_SPEED_OPTIMIZATIONS=y
+34 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: Apache-2.0 */

#include <zephyr/dt-bindings/dma/infineon-xmc4xxx-dma.h>

&usic2ch0 {
	compatible = "infineon,xmc4xxx-uart";
	current-speed = <921600>;
	pinctrl-0 = <&uart_tx_p5_0_u2c0 &uart_rx_p5_1_u2c0>;
	pinctrl-names = "default";
	input-src = "DX0G";
	interrupts = <96 1 97 1>;
	interrupt-names = "tx", "rx";
	dmas = <&dma1 1 0 XMC4XXX_SET_CONFIG(10,6)>, <&dma1 2 0 XMC4XXX_SET_CONFIG(11,6)>;
	dma-names = "tx", "rx";
	fifo-start-offset = <0>;
	fifo-tx-size = <0>;
	fifo-rx-size = <0>;
	status = "okay";
};

&uart_tx_p5_0_u2c0 {
	drive-strength = "strong-soft-edge";
	drive-push-pull;
	hwctrl = "disabled";
};

&uart_rx_p5_1_u2c0 {
	drive-strength = "strong-soft-edge";
	hwctrl = "disabled";
};

&dma1 {
	status = "okay";
};
+2 −0
Original line number Diff line number Diff line
@@ -85,6 +85,8 @@
#define UART_DEVICE_DEV DT_NODELABEL(lpuart4)
#elif defined(CONFIG_SOC_ESP32C3)
	#define UART_DEVICE_DEV DT_NODELABEL(uart1)
#elif defined(CONFIG_BOARD_XMC45_RELAX_KIT)
#define UART_DEVICE_DEV DT_NODELABEL(usic2ch0)
#else
#define UART_DEVICE_DEV DT_CHOSEN(zephyr_console)
#endif