Using UART2 from Linux on i.MX8M-EVK board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Using UART2 from Linux on i.MX8M-EVK board

940件の閲覧回数
BernardDAUTREVA
Contributor II

On the i.MX8M-EVK board there are two UARTs available through the USB micro socket, which is fine.

One is used as a Linux console and the other is connected to the Cortex-M4 core.

In my case I would not use the Cortex-M4 but would like to have access to the UART2 from Linux. I presume I will have to modify the DTS, adding a node for uart2, but I wonder what pin multiplexing definitions to use (probably I will have to add them too).

Moreover, I presume that the UART2 was dedicated to the Cortex-M4 and I don't know how (and especially where) to reprogram the RDC (Resource Domain Controler) to arrange for the UART2 to be accessible from the Cortex-A53). Or is the UART2 declared as a shared peripheral at boot time?

Thanks for any pointer to relevant BSP documentation or to any hints on how to do that.

Bernard

タグ(1)
0 件の賞賛
返信
1 返信

819件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Bernard

RDC is not used at boot time and it has default settings.

To have access to the UART2 from Linux one can use below dts (set status = "okay" for UART2)

linux/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk-root.dts

fsl-imx8mq-evk-root.dts\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel 

For using UART2 with M4 below dts file is used ( UART2 is dedicated to the Cortex-M4)

linux/arch/arm64/boot/dts/freescale/fsl-imx8mq-evk-m4.dts

fsl-imx8mq-evk-m4.dts\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信