Hello,
I have a board that is very similar to the imx8ulp-evk, but I am having some trouble switching the debug terminal from LPUART5 to LPUART7. I've referenced this post https://community.nxp.com/t5/i-MX-Processors/iMX8ULP-change-u-boot-serial-console-from-UART5-to-UART... and made the following changes:
- For imx-atf plat/imx/imx8ulp/include/platform_def.h added #define IMX_LPUART7_BASE U(0x29870000) and changed #define IMX_LPUART_BASE to be IMX_LPUART7_BASE.
- In my local.conf added the line ATF_BOOT_UART_BASE = "0x29870000"
- In meta-freescale/conf/machine/include/imx8ulp-evk.inc changed SERIAL_CONSOLES = "115200;ttyLP1" to be SERIAL_CONSOLES = "115200;ttyLP3"
- For U-boot include/configs/imx8ulp_evk.h changed console=ttyLP1 to console=ttyLP3
- For U-boot device tree imx8ulp-evk.dts:
- Changed stdout-path to be &lpuart7
- In bootargs changed console=ttyLP1 to console=ttyLP3
- Enabled lpuart7
- Created a pin group for lpuart7 that muxes PTE14 and PTE15 to LPUART7 TX and RX with configurations 0x3
- Kept lpuart5 enabled but removed the pin group
- In imx8ulp-evk-u-boot.dtsi, changed &pinctrl_lpuart5 and &lpuart5 to be &pinctrl_lpuart7 and &lpuart7
- In the U-boot config, I've also set:
- CONFIG_SPL_LOG=y
- CONFIG_SPL_LOG_MAX_LEVEL=9
- CONFIG_SPL_LOG_CONSOLE=y
However, I'm still not seeing anything on LPUART7. Any thoughts on what I am missing?