AnsweredAssumed Answered

imx6q,16c554 and device tree

Question asked by fang xu on Sep 4, 2014
Latest reply on Mar 30, 2018 by mahendra kumar

I use 16c554 on imx6q,and I have a problem.

In linux 3.0.35,I add 16c554 information to board-mx6q_sabresd.c below. and it worked ok.

---------------------------

static struct plat_serial8250_port imx6_st16c554[] = {

    {    //st16c554_uart0

    .membase    =    NULL,

    .mapbase    =    0x0c004000,

    .irq        =    gpio_to_irq(IMX_GPIO_NR(2,14)),

    .uartclk    =    18432000,

    .regshift    =    0,

    .iotype        =    UPIO_MEM,

    .flags        =    UPF_IOREMAP,

    },

    {    //st16c554_uart1

    .membase    =    NULL,

    .mapbase    =    0x0c004010,

    .irq        =    gpio_to_irq(IMX_GPIO_NR(1,17)),

    .uartclk    =    18432000,

    .regshift    =    0,

    .iotype        =    UPIO_MEM,

    .flags        =    UPF_IOREMAP,

    },

    {    //st16c554_uart2

    .membase    =    NULL,

    .mapbase    =    0x0c004020,

    .irq        =    gpio_to_irq(IMX_GPIO_NR(2,11)),

    .uartclk    =    18432000,

    .regshift    =    0,

    .iotype        =    UPIO_MEM,

    .flags        =    UPF_IOREMAP,

    },

    {    //st16c554_uart3

    .membase    =    NULL,

    .mapbase    =    0x0c004030,

    .irq        =    gpio_to_irq(IMX_GPIO_NR(2,9)),

    .uartclk    =    18432000,

    .regshift    =    0,

    .iotype        =    UPIO_MEM,

    .flags        =    UPF_IOREMAP,

    },

    {},

};

static struct platform_device imx6_device_st16c554 = {

    .name        =    "ST16C554",

    .id        =    0,

    .dev        ={

        .platform_data    =    &imx6_st16c554,

    },

};

-------------------------------------

when I use linux 3.10.17,how I add the information above into device tree(imx6qdl-sabreauto.dtsi).

Outcomes