cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Serdev on USART 3

SAman.1
Associate III

Helllo i configurated my Device tree so i a can use my USART3 as a serdev. But when i run "cat /proc/tty/driver/stm32-usart". i can see my serial port but my RTS pin is missing. I configurated my device tree like this:

&usart3 {

pinctrl-names = "default", "sleep", "idle";

pinctrl-0 = <&usart3_pins_c>;

pinctrl-1 = <&usart3_sleep_pins_c>;

pinctrl-2 = <&usart3_idle_pins_c>;

uart-has-rtscts;

status = "ok";

ethernet {

compatible = "st,stm32_usart_net";

local-mac-address = [ A0 B0 C0 D0 E0 F0 ];

  };

};

So But if i remove the ethernet part it shows the RTS port. Why is that happening?

1 REPLY 1
SAman.1
Associate III

I need to correct myself. It only happens when my driver is not loaded as soon as i atach the serdev it shows up. But i am not able to change The RTS pin with this command serdev_device_set_tiocm(serdev, TIOCM_RTS, 0);. My hardware flow control is disabled. Anyone had a simular problem.