Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 149015

Forum Post: RE: [AM335x] Board Porting - Enable UART 3/4/5

$
0
0

I have enabled uart4 and uart5 in am335x. loop back is working fine(shorting rx and tx at TTL) in both.But when i am througing kernel log(after converting TTL to RS232 converter) on ttyO4 and ttyO5(changing in u-boot only and getty login is on ttyO0 only) terminal is getting hanged.

I am using TTL to RS-232 converter for testing. ttyO1,ttyO2,ttyO3 are working fine . I can see kernel log on ttyO1,2,3.

But nothing is coming on ttyO4,ttyO5.Just loopback working(tested using minicom ).

For UART4  and UART5 these are my changes

/* pin-mux for UART4 support */
static struct pinmux_config uart4_pin_mux[] = {
        {"uart0_ctsn.uart4_rxd", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP |         AM33XX_SLEWCTRL_SLOW},

        {"uart0_rtsn.uart4_txd", OMAP_MUX_MODE1 | AM33XX_PULL_UP | AM33XX_PULL_DISA |
                                                                AM33XX_SLEWCTRL_SLOW},
        {NULL, 0},
};


/* pin-mux for UART5 support */
statre working fine.ic struct pinmux_config uart5_pin_mux[] = {
        {"lcd_data9.uart5_rxd", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT| AM33XX_SLEWCTRL_SLOW}        ,
        {"lcd_data8.uart5_txd", OMAP_MUX_MODE4 |AM33XX_PULL_DISA |
                                                            AM33XX_SLEWCTRL_SLOW},
        {NULL, 0},
};
there was no entry for UART5 in mux33xx.c so i enabled uart5 there.and loopback is working.But i am unable to send data on ttyO5.

_AM33XX_MUXENTRY(LCD_DATA8, 0,
                "lcd_data8", "gpmc_a12", NULL, "mcasp0_aclkx",
               "uart5_txd" , NULL, "uart2_ctsn", "gpio2_14"),

_AM33XX_MUXENTRY(LCD_DATA9, 0,
                "lcd_data9", "gpmc_a13", NULL, "mcasp0_fsx",
                "uart5_rxd" , NULL, "uart2_rtsn", "gpio2_15"),

same case with ttyO4 i.e UART4.just Loopback is working.

Suggest me what to do. only loopback working for UART4 and UART5.but i want to send continuous data on all UARTs 1-5. please help me as soon as possible.


Viewing all articles
Browse latest Browse all 149015

Trending Articles