HI:
I use BSP version 07.00, but RTS automatic switchover is required. Then I add the following attribute (rts-gpios) in the device tree. Although it can be switched automatically, it is found that it cannot wake up after the sleep . If this attribute is removed,add rts-gpio, I can wake up from sleep. The following is my device tree configuration:
&uart1 {
pinctrl-names = "default";
pinctrl-0 = <&uart1_pins>;
status = "okay";
rts-gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
rs485-rts-active-high;
rs485-rx-during-tx;
rs485-rts-delay = <1 1>;
linux,rs485-enabled-at-boot-time;
};
Firstly, hibernate through echo mem > /sys/power/state, and then wake up through debug serial port UART0, that is, press any key. However, it is found that after adding rts-gpios, you cannot wake up. After adding rts-gpio , can wake up, but RTS cannot be switched automatically