Question
How to setup rs485 with linux,rs485-enabled-at-boot-time?
This is how I would like to use rs485:
&usart3{
pinctrl-names = "default", "sleep";
pinctrl-0 = <&usart3_pins_mx>;
pinctrl-1 = <&usart3_sleep_pins_mx>;
status = "okay";
uart-has-rtscts;
linux,rs485-enabled-at-boot-time;
rs485-rts-delay-ns = <800 300>;
};But it does not work.
The setup function stm32_usart_config_rs485() in drivers/tty/serial/stm32-usart.c does not get executed. This seems wrong. Could you elaborate on this?
When configuring rs485 from userland by using the ioctl, the setup function stm32_usart_config_rs485() does get executed and rs485 does work.
