Hello shilesh,
Below is from device tree in L5.4.24_2.1.0:
...
pinctrl_uart3: uart3grp {
fsl,pins = <
MX8MN_IOMUXC_ECSPI1_SCLK_UART3_DCE_RX 0x140
MX8MN_IOMUXC_ECSPI1_MOSI_UART3_DCE_TX 0x140
MX8MN_IOMUXC_ECSPI1_SS0_UART3_DCE_RTS_B 0x140
MX8MN_IOMUXC_ECSPI1_MISO_UART3_DCE_CTS_B 0x140
>;
};
....
It means that you will used ECSPI1_SCLK pin and ECSPI1_MOSI pin to connect PC via UART to USB bridge.
Connections like below:
ECSPI1_SCLK(DCE_RX)------->TX of UART_TO_USB BRIDGE---->PC USB
ECSPI1_MOSI(DCE_TX)------->RX of UART_TO_USB BRIDGE---->PC USB
BUT you should pay attention to UART3 node in device tree: RTS_B & CTS_B are supported, which means communications via UART3 will use Hardware Flow Control.
......
&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart3>;
assigned-clocks = <&clk IMX8MN_CLK_UART3>;
assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_80M>;
fsl,uart-has-rtscts;
status = "okay";
};
......
So if you want to used it , you have 2 ways like below:
(1) Disabling RTS & CTS
Remove the line from above node:
/*fsl,uart-has-rtscts;*/
(2) Using Hardware Flow Control for your test
In DCE mode:
RTS_B is input: it should be connected to CTS_B of UART_TO_USB BRIDGE.
CTS_B is output: it should be connected to RTS_B of UART_TO_USB BRIDGE.
Hope above information is helpful to you!
Have a nice day!
B.R,
Weidong