irda-mode Setting

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

irda-mode Setting

1,987件の閲覧回数
myungjukim
Contributor II

Hi, Community

I'm Imxqsabresd evt board user.

I'll do test various setting but I don't get proper output and any event.

Strange point is

1) memtool UART2.* output is

      SOC: i.MX6Q

      UART2    Addr:0x21e8000

      Bus error

2) When 1) try test, also output is "Unhandled fault: external abort on non-linefetch (0x1018) at 0x76ff9000"

How to setting for Irda-mode use uart ? What is check point ? Is it possible irda as imx.c serial driver ?

<dmesg>

[    1.323353] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59) is a IMX

[    1.323671] serial: Freescale lpuart driver

My setting is as below.

&uart2 {

    pinctrl-names = "default";

    pinctrl-0 = <&pinctrl_uart2_1>;

    status = "okay";

};

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

    fsl,irda-mode;

    status = "disabled";

};

uart2 {

    pinctrl_uart2_1: uart2grp-1 {

        fsl,pins = <

            MX6QDL_PAD_GPIO_7__UART2_TX_DATA  0x1b0b1

            MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1

        >;

    };

ラベル(3)
タグ(1)
0 件の賞賛
返信
7 返答(返信)

1,378件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Christian

had you tried to add to imx_v7_defconfig

CONFIG_IRDA=m

Best regards

igor

0 件の賞賛
返信

1,378件の閲覧回数
myungjukim
Contributor II

Hi, igor,

I have already done the kernel config that you said.

It Is same result.

Best regards.

0 件の賞賛
返信

1,378件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Christian

one can add debug printfs to linux..tty/serial/imx.c (it has "#ifdef CONFIG_IRDA ")

and check  MDEN, IREN settings as in attached part of RM

irda.jpg

Best regards

igor

0 件の賞賛
返信

1,378件の閲覧回数
myungjukim
Contributor II

Hi, igor

I've already checked of IRDA mode procedure. and MDEN, IREN setting id is below.

Can you check it what I missing it ?

I think that I've do that any method as possible. but I don't get any event.

# ./memtool UART2.UCR1.IREN=0x01

# modprobe irtty-sir

# irattach /dev/ttymxc1 -s

# irdadump -d -x -s 256

Best Regards,

0 件の賞賛
返信

1,378件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Christian

if MDEN, IREN are set then UART is working in irda mode

SIR format. In this mode you should place irda transceiver

before UART input/output, however from user point of view

operation is similar to conventional UART.

So you should work with it in usual "UART" way.

SIR format provides ability to convert irda signal to such

form, that uart working with it as with usual UART signal (not irda).

~igor

0 件の賞賛
返信

1,378件の閲覧回数
myungjukim
Contributor II

Hi, igor.

I've already do usual "UART" way for SIR format.

I don't get any event also.

Is it sholud use other uart driver not freescale uart driver ?

Best Regards,

0 件の賞賛
返信

1,378件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Christian

I think you should check signals by oscilloscope

on i.MX6 UART input.

Does uart work ok without irda converters, non-irda mode ?

Would "event", UART RDY appear without OS test,

say with i.MX 6Series Platform SDK​ : Bare-metal SDK for the i.MX 6 ?

~igor

0 件の賞賛
返信