Need some help with auart on imx23

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I could really need some help to get the second application uart working 
on my imx23 based board.

I've seen this message: http://article.gmane.org/gmane.linux.serial/9184/: 
"But in mx23, the DMA has a bug(see errata:2836). We can not add the DMA 
support in mx23"

Hopefully there is only something wrong with my devicetree.

In arm/boot/dts/imx23-olinuxino.dts I've added:

auart1: serial@8006e000 {
  pinctrl-names = "default";
  pinctrl-0 = <&auart1_2pins_a>;
  status = "okay";
};

And in arch/arm/boot/dts/imx23.dtsi I've added:

auart1_2pins_a: auart1-2pins@0 {
  reg = <0>;
  fsl,pinmux-ids = <
    0x00e0 /* MX23_PAD_GPMI_D14__GPMI_D14 */
    0x00f0 /* MX23_PAD_GPMI_D15__GPMI_D15 */
  >;
  fsl,drive-strength = <0>;
  fsl,voltage = <1>;
  fsl,pull-up = <0>;
};

I've adapted both from auart0 that was working on my OLinuXino.

The device /dev/ttyAPP1 is available and the serial getty should be configured 
correctly because I can use /dev/ttyAPP0 on my OLinuXino and I've configured 
it here in the same way. I can also eliminate a hardware problem because I 
have a working minimal example without OS where I can receive something on 
auart1.

Here is my current devicetree:

- http://www.jann.cc/_downloads/next-20130910_imx23.dtsi,
- http://www.jann.cc/_downloads/next-20130910_imx23-olinuxino.dts,
- http://www.jann.cc/_downloads/next-20130910.diff

It wasn't working in 3.9.4 and 3.10.11 too.

And my odyssey is documented here:

- http://www.jann.cc/2013/08/31/porting_linux_to_a_new_board.html#step-4-the-application-uart

I can use GDB to debug the kernel but I don't really know where to start, 
maybe something is broken in drivers/tty/serial/mxs-auart.c. Hopefully 
somebody could give me a hint what to do.

--
chris


--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux