Hi.
How can I use LPUART4(ttyLP4) ?
I made the following changes and the device ttyLP4 is recognized.
However, there is an error in the console message and LPUART4 cannot be used.
Am I missing something or is it wrong?
environment
・Android-11.0.0_2.6.0
・MCIMX8QM-CPU + MCIMX8-8X-BB
changes
・init.rc (/device/nxp/imx8q/mek_8q)
- Added the following code before "on boot".
chmod 0777 /dev/ttyLP4
・imx8qm-ss-dma.dtsi (/vendor/nxp-opensource/kernel-imx/arch/arm64/boot/dts/freescale)
- Added the following code.
&lpuart4 {
compatible = "fsl,imx8qm-lpuart", "fsl,imx8qxp-lpuart";
};
・imx8qm-mek.dts (/vendor/nxp-opensource/kernel-imx/arch/arm64/boot/dts/freescale)
- added the following code.
&lpuart4 {
pinctrl-0 = <&pinctrl_lpuart4>;
status = "okay";
};
pinctrl_lpuart4: lpuart4grp {
fsl,pins = <
IMX8QM_M40_GPIO0_00_DMA_UART4_RX 0x06000020
IMX8QM_M40_GPIO0_01_DMA_UART4_TX 0x06000020
>;
};
boot msg
[ 0.674545] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.677943] 5a060000.serial: ttyLP0 at MMIO 0x5a060010 (irq = 55, base_baud = 5000000) is a FSL_LPUART
[ 1.932236] printk: console [ttyLP0] enabled
[ 1.937290] 5a070000.serial: ttyLP1 at MMIO 0x5a070010 (irq = 56, base_baud = 5000000) is a FSL_LPUART
[ 1.947052] imx8qm-pinctrl scu:pinctrl: pin_config_set op failed for pin 9
[ 1.953939] fsl-lpuart 5a0a0000.serial: Error applying setting, reverse things back
[ 1.961846] 5a0a0000.serial: ttyLP4 at MMIO 0x5a0a0010 (irq = 79, base_baud = 5000000) is a FSL_LPUART