By entering sudo cat /sys/kernel/debug/pinctrl/9804e000.pinctrl/pinmux-pins I can see that uart1 is mapped to GPIO pins 8 and 9, but what do I need to do to access the serial port with my application program?
I’m using 2020-05-18-raspbian-stretch-bpi-m4-sd-emmc.img
I’ve done some more testing and determined that UART1 is mapped to /dev/ttyS1 (by installing setserial and entering setserial -a /dev/ttyS[0123]). I also found that it is operating at 9600 baud by connecting a serial cable and trying different baud rates and doing a simple echo "hello" > /dev/ttyS1 command.
So… How do I get it to run 115200 baud… Use sudo stty -F /dev/ttyS1 115200