Hi,
Although I haven't tried using UARTs other than UART1, I can tell you
where there mux settings are.
The /sys/kernel/debug/omapmux filenames are taken from the Mode 0
usages of the pins, regardless of which mode the pin mux is currently
in.
You can get the mode 0 names from Tables 10 and 12 of the Beaglebone
System Reference Manual.
For example, uart2_rxd is in Table 12 of the SRM (port 9 pin 22), and
the mode 0 usage for that pin is spi0_sclk. So, the mux setting uses
the following file:
root@beaglebone:/sys/kernel/debug/omap_mux# cat spi0_sclk
name: spi0_sclk.(null) (0x44e10950/0x950 = 0x0037), b NA, t NA
mode: OMAP_PIN_OUTPUT | OMAP_MUX_MODE7
signals: spi0_sclk | NA | NA | NA | NA | NA | NA | NA
In this case, it is currently in mode 7. Since uart2_rxd is mode 1,
you would change the mode (and keep the receive bit enabled, but set
the pullup to pulldown) with:
root@beaglebone:/sys/kernel/debug/omap_mux# echo 21 > spi0_sclk
root@beaglebone:/sys/kernel/debug/omap_mux# cat spi0_sclk
name: spi0_sclk.(null) (0x44e10950/0x950 = 0x0021), b NA, t NA
mode: OMAP_PIN_OUTPUT | OMAP_MUX_MODE1
signals: spi0_sclk | NA | NA | NA | NA | NA | NA | NA
As I said, I haven't actually tried using UART2, so I can't say for
sure that this mux setting works as expected.
Dan.
On Jan 11, 10:40 am, vitoracmm <
vitor.moinho...@gmail.com> wrote:
> Hi, anyone know how to use the UARTS 2 ,3,4 and 5 for the beaglebone?
> For the uart 1 , just need to change the mode from OMAP_MUX_MODE7 to
> OMAP_MUX_MODE0 with the script in this linkhttp://
groups.google.com/group/beagleboard/msg/bff6ba02dffcbf0f