UART rts/cts handshaking failure

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

UART rts/cts handshaking failure

Jump to solution
1,950 Views
hello-world123
Contributor II

Hello, I'm john and currently doing uart to control bluetooth module and I have difficulties to use UART with rts/cts.

 Without rts/cts setting in device-tree + hardware(connect bluetooth module's CTS to GND + open RTS), hciattach works. But with rts/cts, timeout occurs when do hciattach.

I think I use rts/cts device tree unproperly. The following's are my dts settings.

helloworld123_0-1639731174350.pnghelloworld123_1-1639731188204.png

Above picture UART1_RTS_B & UART1_CTS_B is 0x6 to tune data like pad things. (I used 0x140 as default)

When I type hciattach, i.mx's RTS doesn't assert as low. I think this is the reason why It's not working.

Does my device tree correct? Should I use 'uart-has-rtscts' instead of 'fsl,uart-has-rtscts'?

Thanks.

Labels (1)
0 Kudos
Reply
1 Solution
1,944 Views
igorpadykov
NXP Employee
NXP Employee

Hi Daewoong

 

for rts/cts example one can look at below &uart3 { /* BT */ :

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mq-evk.d...

For uart1 issue, just for test one can try to remove "dma" entries in dts.

 

Best regards
igor

View solution in original post

1 Reply
1,945 Views
igorpadykov
NXP Employee
NXP Employee

Hi Daewoong

 

for rts/cts example one can look at below &uart3 { /* BT */ :

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mq-evk.d...

For uart1 issue, just for test one can try to remove "dma" entries in dts.

 

Best regards
igor