UART2 is not coming up in iMX 8 Quad Max MEK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART2 is not coming up in iMX 8 Quad Max MEK

822 Views
vinay_hasyagar
Contributor III

Hi ,

We are using  Hardknott 5.10.72 version BSP on iMX8 Quad Max Mek board. We modified the default dts file of the board to enable UART2 as below. But we are not seeing ttyLP2 listed on the target. We can see ttyLP0/LP1/LP3 are installed. We want to enable UART2 for our application. Please help us with this.

Modified DTS file

&lpuart0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpuart0>;
status = "okay";
};

&lpuart1 { /* BT */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpuart1>;
resets = <&modem_reset>;
status = "okay";
};

&lpuart2 { /* Dbg console */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpuart2>;
status = "okay";
};

&lpuart3 { /* MKbus */
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_lpuart3>;
status = "okay";
};

 

 

pinctrl_lpuart0: lpuart0grp {
fsl,pins = <
IMX8QM_UART0_RX_DMA_UART0_RX 0x06000020
IMX8QM_UART0_TX_DMA_UART0_TX 0x06000020
>;
};

pinctrl_lpuart1: lpuart1grp {
fsl,pins = <
IMX8QM_UART1_RX_DMA_UART1_RX 0x06000020
IMX8QM_UART1_TX_DMA_UART1_TX 0x06000020
IMX8QM_UART1_CTS_B_DMA_UART1_CTS_B 0x06000020
IMX8QM_UART1_RTS_B_DMA_UART1_RTS_B 0x06000020
>;
};

pinctrl_lpuart2: lpuart2grp {
fsl,pins = <
IMX8QM_UART0_RTS_B_DMA_UART2_RX 0x06000020
IMX8QM_UART0_CTS_B_DMA_UART2_TX 0x06000020
>;
};

pinctrl_lpuart3: lpuart3grp {
fsl,pins = <
IMX8QM_M41_GPIO0_00_DMA_UART3_RX 0x06000020
IMX8QM_M41_GPIO0_01_DMA_UART3_TX 0x06000020
>;
};

 

dmesg Logs

[ 0.506385] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.510801] 5a060000.serial: ttyLP0 at MMIO 0x5a060010 (irq = 52, base_baud = 5000000) is a FSL_LPUART
[ 1.660982] printk: console [ttyLP0] enabled
[ 1.666356] 5a070000.serial: ttyLP1 at MMIO 0x5a070010 (irq = 53, base_baud = 5000000) is a FSL_LPUART
[ 1.676419] imx8qm-pinctrl scu:pinctrl: pin_config_set op failed for pin 13
[ 1.683407] fsl-lpuart 5a090000.serial: Error applying setting, reverse things back
[ 1.691358] 5a090000.serial: ttyLP3 at MMIO 0x5a090010 (irq = 54, base_baud = 5000000) is a FSL_LPUART

Thanks

3 Replies

759 Views
sushi_happy
Contributor III

@vinay_hasyagar 

I'm also having trouble with the same issue.
Is the issue still unresolved?

I don't understand why only the ttyLP2 device file is not registered.

0 Kudos
Reply

724 Views
sushi_happy
Contributor III

How about changing imx8qm-mek-rpmsg.dts?

&lpuart2 {
status = "okay";
};

&uart2_lpcg {
status = "okay";
};

 

I solved this way.

Please refer to : Solved: [iMX8QM-MEK] LPUART2 setting - NXP Community

0 Kudos
Reply

689 Views
vinay_hasyagar
Contributor III

Hi @sushi_happy 

Thank you for your response. I will check and let you know

0 Kudos
Reply