@stmatscaps
1. Have you measured both TX and RX?
2. Have you removed fsl, dte-mode; and then measured again?
One error is that the debug serial port uses DMA.
If you look at the 8MN EVK, the debug serial port does not use DMA. Using DMA will cause the debug information to not be real-time.
What you need to do is add DMA to the debug UART in the original BSP, and remove the DMA from the debug UART in the current design.
Original debug uart2 has no dma, in your design, you need to add them.
serial@30890000 {
pinctrl-names = "default";
pinctrl-0 = <0x23>;
clock-names = "ipg\0per";
fsl,dte-mode;
interrupts = <0x00 0x1b 0x04>;
clocks = <0x02 0xaa 0x02 0xaa>;
compatible = "fsl,imx8mn-uart\0fsl,imx6q-uart";
status = "okay";
reg = <0x30890000 0x10000>;
};
Your current design debug uart1 has dmas, it is wrong, you need to remove them.
serial@30860000 {
pinctrl-names = "default";
pinctrl-0 = <0x22>;
clock-names = "ipg\0per";
fsl,dte-mode;
interrupts = <0x00 0x1a 0x04>;
clocks = <0x02 0xa9 0x02 0xa9>;
dma-names = "rx\0tx";
compatible = "fsl,imx8mn-uart\0fsl,imx6q-uart";
status = "okay";
reg = <0x30860000 0x10000>;
dmas = <0x1e 0x16 0x04 0x00 0x1e 0x17 0x04 0x00>;
};