Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Getting ttyO2 and ttyO3 to work?

$
0
0

Guys,

Are there any additional steps that need to be done to get /dev/ttyO2 and /dev/ttyO3 working in the linux-3.2.0-psp05.06.00.00 package?  I believe I am pinmuxing them correctly:

static struct pinmux_config uart2_pin_mux[] = {
        {"spi0_sclk.uart2_rxd", OMAP_MUX_MODE1 | AM33XX_SLEWCTRL_SLOW |
                                                AM33XX_PIN_INPUT_PULLUP},
        {"spi0_d0.uart2_txd", OMAP_MUX_MODE1 | AM33XX_PULL_UP |
                                                AM33XX_PULL_DISA |
                                                AM33XX_SLEWCTRL_SLOW},
        {NULL, 0},
};

static struct pinmux_config uart3_pin_mux[] = {
        {"spi0_cs1.uart3_rxd", AM33XX_PIN_INPUT_PULLUP},
        {"ecap0_in_pwm0_out.uart3_txd", AM33XX_PULL_ENBL},
        {NULL, 0},
};

In my current test setup I have an RS-485 serial signal going from my test PC to my board, looks like it's correctly converted to 3.3V TTL by the line driver and I can see what looks like a regular 3.3V TTL serial set of data bits present on the uart3 RX pin to the CPU.  For my test I ran picocom on /dev/ttyO3 and was expecting to see the characters I'm sending echoed on the console, but I don't see anything.  ttyO0 is working fine as my console port.  The chip is an AM3352.

My Linux startup seems to indicate all serial ports are being initialized (below).  Are there any additional steps that need to be taken to get all the serial ports to work.

[    0.683258] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    1.332611] console [ttyO0] enabled
[    1.338928] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    1.349273] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    1.360382] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    1.371520] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    1.381805] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>