How can i enable idle-line detection on my UART1

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

How can i enable idle-line detection on my UART1

424 次查看
Jarvis3345
Contributor II

Hi,
I'm currently working on imx8mmini SoM where im trying to communicate with an external M7 controller throught uart1(/dev/ttymxc0).
This is my dt node:

uart1: serial@30860000 {
compatible = "fsl,imx8mm-uart", "fsl,imx6q-uart";
reg = <0x30860000 0x10000>;
interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MM_CLK_UART1_ROOT>,
<&clk IMX8MM_CLK_UART1_ROOT>;
clock-names = "ipg", "per";
dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
dma-names = "rx", "tx";
status = "disabled";
};
I have enabled the dt node on my custom dts file.
1. How can i enable the idle line detection for my UART1 ?
2.How can i set the ICD frame as 16 frames ?
Abiram_0-1737972862115.png

 


Any help on the above problem would be appreciated
Thankyou
0 项奖励
回复
1 回复

382 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

The default configuration can be found in the defconfig file: boards/nxp/imx8mm_evk/imx8mm_evk_mimx8mm6_m4_defconfig

It is recommended to disable peripherals used by the M4 core on the Linux host.

Also check your dtb:, as example this is for rs485

&uart1 {
status = “okay”;
linux,rs485-enabled-at-boot-time;
rs485-rts-active-high;
rs485-rx-during-tx;
//rs485-rts-delay = <100 100>;
max-speed = <4000000>;
assigned-clocks = <&clk IMX8MM_CLK_UART3>;
assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_80M>;
/delete-property/ dmas;
/delete-property/ dma-names;
};

 

Regards

0 项奖励
回复