Hey!
I want to use the UART2 of our custom am3352 board. Uart2 rx and tx are connected to mii1_tx_clk and mii1_rx_clk.
I did the muxing of 0x12c to be an INPUT and 0x130 to be an OUTPUT:
static struct module_pin_mux uart2_pin_mux[] = { {OFFSET(mii1_txclk), (MODE(1) | PULLDOWN_EN | RXACTIVE)}, /* UART2_RXD */ {OFFSET(mii1_rxclk), (MODE(1) | PULLUP_EN)}, /* UART2_TXD */ {-1}, };
With this muxing and the following cmper module enabling the uart2 should be working in my understanding:
enable_clock_module(&cmper->l4lsclkctrl, MODULE_CLKCTRL_MODULEMODE_SW_EXPLICIT_EN, 1); enable_clock_module(&cmper->uart2clkctrl, MODULE_CLKCTRL_MODULEMODE_SW_EXPLICIT_EN, 1);
But the only working direction is the rx. So I can receive data send to UART2 but when I want to loopback this data, there is nothing happening. Any hints what can be wrong here? Regards Thilo