uart support with up to 4Mbps

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

uart support with up to 4Mbps

Jump to solution
471 Views
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 Kudos
1 Solution
453 Views
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

View solution in original post

0 Kudos
2 Replies
422 Views
alaskora_byk_mstang
Contributor I

Thanks it is working as expected

0 Kudos
454 Views
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 Kudos