Hello!
We have DM385 IPNC. We are trying to use UART2 Rx/Tx and we can't mux pins in correct way.
I want to use these pins(mux814x.c):
_TI814X_MUXENTRY(DCAN0_TX, 0,
"dcan0_tx", "uart2_txd_mux2", NULL, NULL, NULL,
"i2c3_sda_mux1", NULL, "gpio1_0", NULL, NULL, NULL,
NULL),
_TI814X_MUXENTRY(DCAN0_RX, 0,
"dcan0_rx", "uart2_rxd_mux2", NULL, NULL, NULL,
"i2c3_scl_mux1", NULL, "gpio1_1", NULL, NULL, NULL,
NULL),
In board init file board-dm385ipnc.c file I tried to setup pinmux in a different ways
static void dm38x_uart2_pin_mux(void) { sprintf(mux_name, "uart2_rxd_mux2"); omap_mux_init_signal(mux_name, TI814X_PULL_DIS | TI814X_INPUT_EN); sprintf(mux_name, "uart2_txd_mux2"); omap_mux_init_signal(mux_name, TI814X_PULL_UP ); }
or like this
static void dm38x_uart2_pin_mux(void) { sprintf(mux_name, "dacn0_rx.uart2_rxd_mux2"); omap_mux_init_signal(mux_name, TI814X_PULL_DIS | TI814X_INPUT_EN); sprintf(mux_name, "dcan0_tx.uart2_txd_mux2"); omap_mux_init_signal(mux_name, TI814X_PULL_UP ); }
I even tryied to enable gpio function on one of these pins.
But when I am checking result after linux booted in debugfs I always see
dcan0_rx.dcan0_rx OMAP_MUX_MODE0
dcan0_tx.dcan0_tx OMAP_MUX_MODE0
As I know CAN doesn't exist on DM385. May it somehow could be a reason?
I found a place in u-boot where these pins setup is done. Acording to padconf map these pins are configured for UART2! Somehow these settings are overrided(?) during linux boot, or this setup just doesn't work..
And also I tried to do all this with UART1. Pinmux is ok and ttyO1 is working. But I need to use ttyO2(UART2).