AnsweredAssumed Answered

IMX6q UART5 Bluetooth connection

Question asked by Saurabh Patel on Apr 17, 2014
Latest reply on Sep 11, 2017 by Shawn Yang

Hi,

All

 

I am using custom hardware based on IMX6q.

 

Bluetooth chip is connected on UART5.

 

Bluetooth pins          imx6

BT_RXD          --> KEY_COL1

BT_TXD          --> KEY_ROW1

BT_CTS          --> KEY_COL4

BT_RTS          --> KEY_ROW4

 

Following code i have added to enable UART5.

static iomux_v3_cfg_t mx6q_uart5_pads[] = {

    MX6Q_PAD_KEY_ROW1__UART5_RXD,

    MX6Q_PAD_KEY_COL1__UART5_TXD,

    MX6Q_PAD_KEY_ROW4__UART5_CTS,

    MX6Q_PAD_KEY_COL4__UART5_RTS,

};

 

static const struct imxuart_platform_data mx6q_sd_uart5_data __initconst = {

    .flags      = IMXUART_HAVE_RTSCTS ,

    .dma_req_rx = MX6Q_DMA_REQ_UART5_RX,

    .dma_req_tx = MX6Q_DMA_REQ_UART5_TX,

};

 

static void __init uart5_init(void)

{

    printk(KERN_INFO "uart5 is added\n");

    mxc_iomux_v3_setup_multiple_pads(mx6q_uart5_pads,

            ARRAY_SIZE(mx6q_uart5_pads));

    imx6q_add_imx_uart(4, &mx6q_sd_uart5_data);

}

 

With this setup I am getting error for firmware load, It seems that my UART5 configuration is not proper.

How to debug RTS/CTS issue?

Outcomes