imx6sl uart rts/cts

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

imx6sl uart rts/cts

跳至解决方案
1,257 次查看
yan2anfei
Contributor III

hi ,

 my chip is imx6sl, I use uart4 with rts and cts ,

the set is as follow. but  the imx6sl's rts pin (MX6SL_PAD_SD1_DAT6__UART4_RTS_B) is always high. 

whether should I pull it down force or my set is something  wrong.

pinctrl_uart4_1: uart4grp-1 {
fsl,pins = <
MX6SL_PAD_SD1_DAT4__UART4_RX_DATA 0x1b0b1
MX6SL_PAD_SD1_DAT5__UART4_TX_DATA 0x1b0b1
MX6SL_PAD_SD1_DAT7__UART4_CTS_B 0x1b0b1
MX6SL_PAD_SD1_DAT6__UART4_RTS_B 0x1b0b1
>;
};

&uart4 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart4_1>;
fsl,uart-has-rtscts;
status = "okay";
/* for DTE mode, add below change */
/* fsl,dte-mode; */
/* pinctrl-0 = <&pinctrl_uart4dte_1>; */
};

&usdhc1 {
status = "disabled";
};

标签 (3)
0 项奖励
1 解答
852 次查看
igorpadykov
NXP Employee
NXP Employee

Hi yan2

UART_RTS  direction is output in DTE mode according to

Table 55. UART I/O Configuration vs. Mode i.MX6SL Datasheet
https://www.nxp.com/docs/en/data-sheet/IMX6SLCEC.pdf

so one can try to uncomment dte statement in dts file and check

bit DCEDTE in UARTx_UFCR register.

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

在原帖中查看解决方案

0 项奖励
2 回复数
853 次查看
igorpadykov
NXP Employee
NXP Employee

Hi yan2

UART_RTS  direction is output in DTE mode according to

Table 55. UART I/O Configuration vs. Mode i.MX6SL Datasheet
https://www.nxp.com/docs/en/data-sheet/IMX6SLCEC.pdf

so one can try to uncomment dte statement in dts file and check

bit DCEDTE in UARTx_UFCR register.

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

0 项奖励
852 次查看
yan2anfei
Contributor III

thank you very much.

0 项奖励