imx6sl uart rts/cts

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,256件の閲覧回数
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 解決策
851件の閲覧回数
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 返答(返信)
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 件の賞賛
851件の閲覧回数
yan2anfei
Contributor III

thank you very much.

0 件の賞賛