uart mapping to /dev/tty on Beaglebone AI

145 views
Skip to first unread message

John Allwine

unread,
May 14, 2020, 11:22:07 AM5/14/20
to BeagleBoard
I'm trying to set up UART3 on the Beaglebone AI to work as a serial port, but I'm not sure what is involved. I configured P9.21b and P9.22b to be in mode 1, which is mapped to uart3_tx and uart3_rx. How do I get those pins bound to a tty device under /dev? Maybe they already are and I don't know which one?

John Allwine

unread,
May 14, 2020, 6:39:23 PM5/14/20
to BeagleBoard
Adding this to my device tree overlay seemed to make /dev/ttyO2 show up:
&uart3 {
  status = "okay";
};

I am not able to receive data, though, only send. Any ideas?

John Allwine

unread,
May 14, 2020, 6:59:18 PM5/14/20
to Beagle Board
This works!

DRA7XX_CORE_IOPAD( 0x34F0, PIN_INPUT | MUX_MODE14 ) // P9.21a
DRA7XX_CORE_IOPAD( 0x37C4, PIN_OUTPUT_PULLUP | INPUT_EN | MUX_MODE1 ) // P9.21b
DRA7XX_CORE_IOPAD( 0x369C, PIN_INPUT   | MUX_MODE14 ) // P9.22a
DRA7XX_CORE_IOPAD( 0x37C0, PIN_OUTPUT_PULLUP | INPUT_EN | MUX_MODE1 ) // P9.22b


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/4e851999-7922-41c1-9002-b7a357b37249%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages