linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Need some help with auart on imx23
@ 2013-09-10 10:26 Christian Jann
  2013-09-10 17:58 ` Christian Jann
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Jann @ 2013-09-10 10:26 UTC (permalink / raw)
  To: linux-serial

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-13 19:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-10 10:26 Need some help with auart on imx23 Christian Jann
2013-09-10 17:58 ` Christian Jann
2013-09-13 19:28   ` Christian Jann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).