uart support with up to 4Mbps

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

uart support with up to 4Mbps

跳至解决方案
960 次查看
alaskora_byk_mstang
Contributor I

MicrosoftTeams-image (1).png

I’m working on a project on custom board based on  IMX8MP in that I’m working with UART for data transfer. We are able to data pacages with 1.5Mbps i.e. with baud rate 1500000. As per the data sheet, UART can support up to 4Mbps and we would like to use it to the fullest. 

Could anyone help me with this. ?

MicrosoftTeams-image.png

0 项奖励
回复
1 解答
942 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @alaskora_byk_mstang,

I hope you are doing well.

UART baudrate depende upon module clock of UART.

module_clock frequency must always be greater or equal to 16x the maximum baud rate.

default module_clock frequency is 24 MHz.

Please make below change in uart node to support 4Mbps baudrate.

&uart1 { /* BT */
      pinctrl-names = "default";
      pinctrl-0 = <&pinctrl_uart1>;
      assigned-clocks = <&clk IMX8MM_CLK_UART1>;
      assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
      fsl,uart-has-rtscts;
      status = "okay";
};
 
Thanks & Regards,
Dhruvit Vasavada

在原帖中查看解决方案

0 项奖励
回复
2 回复数
911 次查看
alaskora_byk_mstang
Contributor I

Thanks it is working as expected

0 项奖励
回复
943 次查看
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @alaskora_byk_mstang,

I hope you are doing well.

UART baudrate depende upon module clock of UART.

module_clock frequency must always be greater or equal to 16x the maximum baud rate.

default module_clock frequency is 24 MHz.

Please make below change in uart node to support 4Mbps baudrate.

&uart1 { /* BT */
      pinctrl-names = "default";
      pinctrl-0 = <&pinctrl_uart1>;
      assigned-clocks = <&clk IMX8MM_CLK_UART1>;
      assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
      fsl,uart-has-rtscts;
      status = "okay";
};
 
Thanks & Regards,
Dhruvit Vasavada
0 项奖励
回复