Board:imx8qxp
Enviroment:yocto
dts config:
pinctrl_lpuart3: lpuart3grp {
fsl,pins = <
SC_P_FLEXCAN2_TX_ADMA_UART3_TX 0x06000020
SC_P_FLEXCAN2_RX_ADMA_UART3_RX 0x06000020
>;
};
kernel startup from OSPI/eMMC is nornal,but kernel startup from SD is abnormal,logs as following:
[ 1.434158] imx8qxp-pinctrl iomuxc: pin_config_set op failed for pin 110
[ 1.440888] fsl-lpuart 5a090000.serial: Error applying setting, reverse things back
[ 1.449278] 5a090000.serial: ttyLP3 at MMIO 0x5a090010 (irq = 54, base_baud = 5000000) is a FSL_LPUART
kernel startup from OSPI,fdt_file=fsl-imx8qxp-ctx0800-rohs.dtb in uboot.
kernel startup from SD,fdt_file=fsl-imx8qxp-ctx0800-rohs-rpmsg.dtb in uboot.Moreover
in fsl-imx8qxp-ctx0800-rohs-rpmsg.dtsi file,I masked
&lpuart3 {
status = "disabled";
};
kernel startup from OSPI or kernel startup from SD,The kernel Images are same.
I set enviroment varaible fdt_file=fsl-imx8qxp-ctx0800-rohs.dtb,When kernel startup from SD.But consequence is same.
Can somebody help me?
Tks!
Best Regards!
Solved! Go to Solution.
Hi igor,
Tks for your suggestion.
I try to mask BRD_ERR(rm_set_pad_movable(pt_boot, SC_P_FLEXCAN0_RX,
SC_P_FLEXCAN2_TX, SC_TRUE)); in function board_system_config of file imx-scfw/platform/board/mx8qx_mek/board.c,and I rebuild.
It works.
Best Regards!
Johnny
Hi liu
lpuart3 may be used by SDK_MEK-MIMX8QX (MCUXpresso SDK for i.MX Cortex-M),
please check MLK-21173 ARM64: dts: fix imx8qxp-pinctrl iomuxc error
"..assign all flexcan pins to M4, A core cannot access flexcan pins for now. LPUART3
uses flexcan pins before, so disable it.."
One can try to remove below two lines in : /vendor/nxp/fsl-proprietary/uboot-firmware/imx8q_car/board-imx8qxp.c
BRD_ERR(rm_set_pad_movable(pt_boot, SC_P_FLEXCAN0_RX,
SC_P_FLEXCAN2_TX, SC_TRUE));
And then use this board.c file to build scfw with scfw-porting-kit release to test.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igor,
Tks for your suggestion.
I try to mask BRD_ERR(rm_set_pad_movable(pt_boot, SC_P_FLEXCAN0_RX,
SC_P_FLEXCAN2_TX, SC_TRUE)); in function board_system_config of file imx-scfw/platform/board/mx8qx_mek/board.c,and I rebuild.
It works.
Best Regards!
Johnny