UART2 on Linux 3.10.53

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART2 on Linux 3.10.53

Jump to solution
976 Views
JHY
Contributor IV

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);

}

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

Labels (2)
Tags (2)
0 Kudos
1 Solution
530 Views
igorpadykov
NXP Employee
NXP Employee

Hi JHY

for uart configs one can look at attached Linux Manual

sect.47.3.4 Board Configuration Options,

also please check uart2 pinctrl settings, like in example below

[meta-freescale] [meta-fsl-arm-extra][PATCH v2 4/4] linux-compulab: ad

Best regards

igor

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

Note: If this post answers your question, please click the Correct Answer button. Thank you!

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

View solution in original post

0 Kudos
1 Reply
531 Views
igorpadykov
NXP Employee
NXP Employee

Hi JHY

for uart configs one can look at attached Linux Manual

sect.47.3.4 Board Configuration Options,

also please check uart2 pinctrl settings, like in example below

[meta-freescale] [meta-fsl-arm-extra][PATCH v2 4/4] linux-compulab: ad

Best regards

igor

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

Note: If this post answers your question, please click the Correct Answer button. Thank you!

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

0 Kudos