From: Christian Jann <christian.jann@ymail.com>
To: linux-serial@vger.kernel.org
Subject: Need some help with auart on imx23
Date: Tue, 10 Sep 2013 12:26:32 +0200 [thread overview]
Message-ID: <3205717.NO7EKVN077@thinkpad> (raw)
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
next reply other threads:[~2013-09-10 10:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-10 10:26 Christian Jann [this message]
2013-09-10 17:58 ` Need some help with auart on imx23 Christian Jann
2013-09-13 19:28 ` Christian Jann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3205717.NO7EKVN077@thinkpad \
--to=christian.jann@ymail.com \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.