dzhou
July 27, 2020, 9:08pm
1
Hi,
I am using P9.21 (SPIO_DO) and P9.20 (SPIO_SCLK) as UART port.
(BBB pins on Connector 9)
: https://vadl.github.io/beagleboneblack/2016/07/29/setting-up-bbb-gpio
How to link these pins as a port to a tty device, say /dev/ttyS1, or even /dev/ttyS10?
so, ttyS1 or ttyS10 is opened, it is the uart port connected by P9.20/P9.21 pins.
Thank you,
David
Hi @dzhou , P9.20 doesn’t have a TX/RX mode just cts.
P9.21 can be uart2_txd, which can be loaded via this overlay:
/*
* Copyright (C) 2013 CircuitCo
*
* Virtual cape for UART2 on connector pins P9.21 P9.22
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
#include <dt-bindings/pinctrl/am33xx.h>
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";
// identification
This file has been truncated. show original
Which should auto-configure as /dev/ttyS2 on startup…
Regards,
dzhou
July 28, 2020, 3:08pm
3
Hi Robert,
Thank you very much.
UART2 is on P9.22.P9.21. It was my typo.
Best Regards,
David