UART2 on Linux 3.10.53

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART2 on Linux 3.10.53

ソリューションへジャンプ
3,371件の閲覧回数
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,924件の閲覧回数
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,925件の閲覧回数
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 件の賞賛
返信