AnsweredAssumed Answered

UART2 on Linux 3.10.53

Question asked by JHY on Jun 2, 2015
Latest reply on Jun 2, 2015 by igorpadykov

I found this in imx6qdl.dtsi


                        uart2: serial@021e8000 {
                                compatible = "fsl,imx6q-uart", "fsl,imx21-uart";
                                reg = <0x021e8000 0x4000>;
                                interrupts = <0 27 0x04>;
                                clocks = <&clks 160>, <&clks 161>;
                                clock-names = "ipg", "per";
                                dmas = <&sdma 27 4 0>, <&sdma 28 4 0>;
                                dma-names = "rx", "tx";
                                status = "disabled";


To use UART2, editing status "enabled" is needed, I think.

What is next step? 'i.MX_6_Linux_Reference_Manual.pdf' just says imx.c is driver file and it has no example for init port, tx data, rx interrupt.

Maybe sabre board can access GPS module via UART, please tell me at least where is the source file for GPS DATA collecting.


ps)3.0.xx BSP has this routine. Does 3.10.53 have similar one?



static inline void mx6q_sabresd_init_uart(void)


  imx6q_add_imx_uart(2, NULL);

  imx6q_add_imx_uart(0, NULL);