From: Kyle Manna <kyle.manna@fuel7.com>
To: Stefano Babic <sbabic@denx.de>
Cc: Tony Lindgren <tony@atomide.com>,
linux-omap@vger.kernel.org, Paul Walmsley <paul@pwsan.com>,
Kevin Hilman <khilman@ti.com>,
Nicolas Pitre <nicolas.pitre@linaro.org>,
Benoit Cousson <b-cousson@ti.com>,
linux-kernel@vger.kernel.org,
Peter Ujfalusi <peter.ujfalusi@ti.com>,
Santosh Shilimkar <santosh.shilimkar@ti.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] ARM: OMAP: Add support for AM35xx UART4/ttyO3
Date: Thu, 22 Mar 2012 12:00:00 -0500 [thread overview]
Message-ID: <4F6B5A90.6030808@fuel7.com> (raw)
In-Reply-To: <4F6B4D4A.2040103@denx.de>
On 03/22/2012 11:03 AM, Stefano Babic wrote:
> On 18/10/2011 20:47, Kyle Manna wrote:
>> Add hwmod support to enable access to UART4 of the AM35xx series of
>> chips. The UART4 device referenced from the TRM will show up as ttyO3.
>>
>> This was tested on an AM3505.
>>
>> Signed-off-by: Kyle Manna<kyle.manna@fuel7.com>
>> ---
> Hi Kyle,
>
>> arch/arm/mach-omap2/clock3xxx_data.c | 11 ++++++
>> arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 52 ++++++++++++++++++++++++++++
>> arch/arm/mach-omap2/prcm-common.h | 2 +
>> arch/arm/plat-omap/include/plat/irqs.h | 2 +-
>> arch/arm/plat-omap/include/plat/serial.h | 1 +
>> 5 files changed, 67 insertions(+), 1 deletions(-)
> Can I gently ask you which pinmux setup do you use to test your patch ?
>
> I am trying to make uart4 working on a am3517 with mainline kernel
> (3.3+, your patch is merged). However, on my board the uart4 pins are
> shared with the camera, and not with SD, as maybe is more common. I set
> the pinmux to switch the pins (gpio_95 / gpio_96 / gpio_97 /gpio_98) to
> the uart4, and ttyO3 is registered and available, and thanks your patch
> both clocks iclk and fclk are active. However, I cannot see activity on
> the tx line if I try to send some characters.
>
> Maybe do you use the same pinmux and am I forgetting something else ?
My pin mux is configured in u-boot and is as follows:
/* CCDC_FIELD: gpio_95, uP-TXD4 */ \
MUX_VAL(CP(CCDC_FIELD), (IDIS | PTD | DIS | M2)) \
/* CCDC_HD: gpio_96, uP-RTS4# */ \
MUX_VAL(CP(CCDC_HD), (IDIS | PTD | DIS | M2)) \
/* CCDC_VD: gpio_97, uP-CTS4# */ \
MUX_VAL(CP(CCDC_VD), (IEN | PTD | EN | M2)) \
/* CCDC_WEN: gpio_98, uP-RXD4 */ \
MUX_VAL(CP(CCDC_WEN), (IEN | PTD | DIS | M2)) \
I've just validated my AM3505 board does in fact toggle the TX line and
writes valid data. The running kernel is based on a linux-omap-3.1 and
was the source for that patch.
Since it sounds like you have the same pinmux, perhaps something changed
elsewhere in the kernel? Have you tried validating that your hardware
can toggle the pin as a GPIO first to eliminate any possibility of shorts?
- Kyle
next prev parent reply other threads:[~2012-03-22 17:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 18:47 [PATCH] ARM: OMAP: Add support for AM35xx UART4/ttyO3 Kyle Manna
2011-11-24 21:32 ` Paul Walmsley
2012-03-22 16:03 ` Stefano Babic
2012-03-22 17:00 ` Kyle Manna [this message]
2012-03-22 17:11 ` Stefano Babic
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=4F6B5A90.6030808@fuel7.com \
--to=kyle.manna@fuel7.com \
--cc=b-cousson@ti.com \
--cc=khilman@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=nicolas.pitre@linaro.org \
--cc=paul@pwsan.com \
--cc=peter.ujfalusi@ti.com \
--cc=santosh.shilimkar@ti.com \
--cc=sbabic@denx.de \
--cc=tony@atomide.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox