From: Kevin Hilman <khilman@deeprootsystems.com>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: "Tony Lindgren" <tony@atomide.com>,
linux-omap@vger.kernel.org,
"Enric Balletbo i Serra" <eballetbo@iseebcn.com>,
"Gregory Clément" <gregory.clement@free-electrons.com>,
"Michael Opdenacker" <michael.opdenacker@free-electrons.com>,
"Maxime Ripard" <maxime.ripard@free-electrons.com>
Subject: Re: ttyO2 broken on IGEPv2 on 3.3, 3.4-rc5 or arm-soc/for-next, working on 3.2
Date: Thu, 04 Oct 2012 16:06:27 -0700 [thread overview]
Message-ID: <877gr5vnv0.fsf@deeprootsystems.com> (raw)
In-Reply-To: <20121004221118.4316181d@skate> (Thomas Petazzoni's message of "Thu, 4 Oct 2012 22:11:18 +0200")
Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> Kevin,
>
> On Thu, 04 Oct 2012 10:18:04 -0700, Kevin Hilman wrote:
>
>> Can you dump the UART mux registers on a working kernel and compare
>> them to the broken one? (Table 7-4 in the 34xx public TRM[1] will
>> list all the mux registers.) Maybe the bootloader code for that
>> board will shed some light as well since it will be setting the
>> muxing too.
>>
>> If the console uart is ttyO2 (UART3 in TI docs), then the interesting
>> registers will be any of the padconf registers in that table that
>> contain 'uart3'. e.g. for UART3 RX:
>>
>> CONTROL_PADCONF_DSS_DATA4 (mode 2)
>> CONTROL_PADCONF_UART3_RTS_SD (mode 0)
>> CONTROL_PADCONF_HSUSB0_DATA1 (mode 2)
>>
>> omap_mux has some useful debugfs output under <debugfs>/omap_mux. For
>> example:
>>
>> # cd /sys/kernel/debug/omap_mux
>> # cat dss_data4
>> # cat uart3_rx_irrx
>> # cat hsusb0_data1
>>
>> would provide a very useful comparison between a working kernel and a
>> non-working one.
>
> It seems they are exactly the same, unless my eyes missed something, of course.
The example I gave was only for the UART3 RX, you should dump the UART3
TX pins as. Using the omap_mux debugfs, you can see all of the
potential pins where uart3_tx can be routed:
# cd /sys/kernel/debug/omap_mux
# grep -H uart3_tx * |grep signal
dss_data5:signals: dss_data5 | NA | uart3_tx_irtx | NA | gpio_75 | NA | NA | safe_mode
hsusb0_data0:signals: hsusb0_data0 | NA | uart3_tx_irtx | NA | gpio_125 | NA | NA | safe_mode
uart3_tx_irtx:signals: uart3_tx_irtx | NA | NA | NA | gpio_166 | NA | NA | safe_mode
So a 'cat' on dss_data, hsusb0_data0 and uart3_tx_irtx on a working an
non-working kernel should point us in the right direction (assuming of
course, that it's acutally a muxing problem that we're after.)
[...]
> Regarding the bootloader, I am not 100% sure what are the relevant
> bits, but the UART3 related muxing for this board, done in U-Boot seems
> to be:
>
> MUX_VAL(CP(UART3_TX_IRTX), (IDIS | PTD | DIS | M0)) /* UART3_TX */\
> MUX_VAL(CP(UART3_RX_IRRX), (IEN | PTD | DIS | M0)) /* UART3_RX */\
>
> Does this helps?
>
Yes, that tells me where UART3 is expected to be mux'd on the board. So
you can ignore the dss_data* and husb_data* files above and focus on
uart3*
So to summarize, in /sys/kernel/debug/omap_mux, just do a 'cat uart3*'
on a working and non-working board and see if there are any differences.
Kevin
next prev parent reply other threads:[~2012-10-04 23:06 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-04 13:52 ttyO2 broken on IGEPv2 on 3.3, 3.4-rc5 or arm-soc/for-next, working on 3.2 Thomas Petazzoni
2012-05-04 16:27 ` Kevin Hilman
2012-05-04 17:51 ` Tony Lindgren
2012-05-04 23:46 ` Kevin Hilman
2012-10-04 16:07 ` Thomas Petazzoni
2012-10-04 17:18 ` Kevin Hilman
2012-10-04 20:11 ` Thomas Petazzoni
[not found] ` <CAKQ2WVp71=ULs_yK7Tkuo=8F4hATq0YCQ6RtV0ziJQQmnrib_g@mail.gmail.com>
2012-10-04 20:57 ` Thomas Petazzoni
2012-10-04 23:08 ` Kevin Hilman
2012-10-05 7:32 ` Javier Martinez Canillas
2012-10-05 8:10 ` Thomas Petazzoni
2012-10-05 10:01 ` Javier Martinez Canillas
2012-10-06 9:04 ` Enric Balletbò i Serra
2012-10-07 23:37 ` Javier Martinez Canillas
2012-10-04 23:06 ` Kevin Hilman [this message]
2012-10-05 8:06 ` Thomas Petazzoni
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=877gr5vnv0.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=eballetbo@iseebcn.com \
--cc=gregory.clement@free-electrons.com \
--cc=linux-omap@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=michael.opdenacker@free-electrons.com \
--cc=thomas.petazzoni@free-electrons.com \
--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 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.