Hi John,
UART supports 2 working modes: DCE or DTE, users can configure it to be DCE or DTE mode in device tree.
For example, UART4 works at DCE mode.
1. IOMUX for it's signals

2. signa's features
signal CPU pad direction conncetion with external DTE
UART4_CTS_B---->ECSPI2_MISO output DTE_UART_CTS( for DTE, CTS is input)
UART4_RTS_B---->ECSPI2_SS0 input DTE_UART_RTS(for DTE, RTS is output)
If you want CPU uart4 to work at DTE mode, signals will be like below:
signal CPU pad direction conncetion with external DCE
UART4_CTS_B---->ECSPI2_MISO input DTE_UART_RTS( for DCE, RTS is output)
UART4_RTS_B---->ECSPI2_SS0 output DTE_UART_CTS(for DCE, RTS is input)
3. For your application on iomux
you can configure it as DCE mode in dts, using these 2 iomux below.
MX8MM_IOMUXC_ECSPI2_MISO_UART4_DCE_CTS_B /* DCE mode, and UART4_CTS_B---->ECSPI2_MISO */
MX8MM_IOMUXC_ECSPI2_SS0_UART4_DCE_RTS_B /* DCE mode, and UART4_RTS_B---->ECSPI2_SS0 */
Hope above information can help you understand iomux of i.MX8MM!
Have a nice day!
BR,
Weidong