I am using an NRF53 DK board with nRFConnect/Zephyr 1.3.0. I need to define the UART pins I will use in a .overlay file but I would like to NOT define any flow control pins, just tx-pin and rx-pin, like so:
&uart1 {
status = "okay";
current-speed = <115200>;
tx-pin = <42>;
rx-pin = <43>;
};
However this doesn't work properly: when I call device_get_binding("UART_1") it returns NULL. If I include a couple of randomly chose flow control pins:
&uart1 {
status = "okay";
current-speed = <115200>;
tx-pin = <42>;
rx-pin = <43>;
rts-pin = <44>;
cts-pin = <45>;
};
...then it works every time, no problem, but I don't want to do that, I want to just ignore flow control pins, there are none, there is no flow control in my case.
What is the correct way to do that? I've tried using <-1> but that throws a parsing error inside Zephyr.
Thanks in advance for your help; the generated device_unfixed.h is attached in case it helps, the relevant part says:
Rob