UART2 on Linux 3.10.53

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UART2 on Linux 3.10.53

跳至解决方案
2,504 次查看
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);

}

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

标签 (2)
标记 (2)
0 项奖励
回复
1 解答
2,058 次查看
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 项奖励
回复
1 回复
2,059 次查看
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 项奖励
回复