public inbox for linux-tegra@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Daniel Stone <daniels-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Cc: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	Tomeu Vizoso
	<tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>,
	"linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Andrew Bresticker
	<abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
	Dylan Reid <dgreid-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Subject: Re: [pinmux scripts PATCH] Update Nyan-Big pinmux from ChromeOS
Date: Mon, 09 Mar 2015 10:23:17 -0600	[thread overview]
Message-ID: <54FDC8F5.6060408@wwwdotorg.org> (raw)
In-Reply-To: <1425915411.12254.0-u1PCbA9B4pYthqhpMEQ9fNBPR1lH4CV8@public.gmane.org>

On 03/09/2015 09:36 AM, Daniel Stone wrote:
> Hi Stephen,
> Thanks for looking at this.
>
> On Fri, 6 Mar, 2015 at 8:46 PM, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
> wrote:
>> On 03/06/2015 01:42 PM, Simon Glass wrote:
>>
>>     On 6 March 2015 at 13:31, Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org
>>     <mailto:swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>> wrote:
>>
>>         Can you comment on this change? If the data currently in
>>         tegra-pinmux-scripts is wrong, where did it come from if not
>>         the ChromeOS kernel?
>>
>>     Sorry, I have no direct knowledge.
>>
>> Oh, I see the answer in the patch description:
>>
>>     commit 4a5373e4bd6477addd3764e25989f74d34eba8c6 Author: Simon
>>     Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org <mailto:sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>> Date: Tue Feb 3
>>     11:29:03 2015 +0100 Add support for Nyan-big Add support for
>>     Tegra124 Nyan-big. Pinmux is based on norrin with a single change
>>     for the reset GPIO.
>>
>> The need for Daniel's patch seems like a good reason not to base one
>> board's pinmux on another board, assuming they're identical...
>
> Indeed.
>
>> Daniel, have you confirmed that 100% of the data in your patch matches
>> that used by the ChromeOS kernel, such that there shouldn't be any
>> more fixes needed down the line?
>
> Actually, no, I hadn't. The diff is annoying to produce, as the format
> used in chromeos-3.10 is totally different (different pin naming scheme,
> aggregation of one entry to multiple nvidia,pins entries),

I guess this is roughly what your Perl script does, but in the past I've 
written one-off scripts to import our downstream DT files into the 
*.board format that tegra-pinmux-scripts uses, and then diff'd that. The 
advantage here is that I can then use the output with tegra-pinmux-scripts.

> but I managed
> to get a full diff with a blindingly horrible bit of Perl[0] (take
> chromeos-3.10 entries, map names -> numbers, map back from numbers to
> current upstream names, produce DT fragment), and then manually
> reconcile that back to tegra-pinmux-scripts to remove the delta.
>
> There is only a small delta remaining between the two after manually
> harmonising these. First, the nvidia,lock property was set downstream
> but t-p-s doesn't seem to have any facility for handling this - is that
> a problem?

Lock doesn't do anything that would functionally affect the pinmux 
assuming there are no SW bugs that come along and corrupt the pinmux 
registers later. All lock does is prevent any changes to that particular 
register/pin after the bit is set. Good for safety, but shouldn't have 
any impact.

 > Secondly, chromeos-3.10 used TEGRA_PIN_PULL_DOWN for rcv-sel
> being enabled, which just happened to map to 1 (ENABLED).

Yikes!

> And lastly,
> there are a number of entries in nyan-big.config which aren't present in
> the downstream config. If these entries are unneeded (presumably unused
> ... ?), should they be removed?

Typically I'd hope that every pin had an explicit configuration, so that 
we know we've actively avoided any conflicting settings. Do you have a 
list of the pins that aren't configured in the ChromeOS kernel but are 
in the updated tegra-pinmux-scripts config file?

> These patches are sitting in
> git://git.collabora.com/git/user/daniels/tegra-pinmux-scripts - I'll
> post them after myself & Tomeu have done some more testing on them, as
> there are a rather worrying amount of changes. I can do the same to
> Blaze as well, but that'll have to wait a couple of days as I don't
> actually have one on my desk.
>
> Cheers,
> Daniel
>
> [0]: It really is horrible, and is only intended to be throwaway.
> http://people.collabora.com/~daniels/tmp/reconcile-downstream-dt.pl

  parent reply	other threads:[~2015-03-09 16:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-06 20:07 [PATCH] Update Nyan-Big pinmux from ChromeOS Daniel Stone
     [not found] ` <1425672435-19031-1-git-send-email-daniels-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-03-06 20:31   ` [pinmux scripts PATCH] " Stephen Warren
     [not found]     ` <54FA0EBB.3080208-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-03-06 20:42       ` Simon Glass
     [not found]         ` <CAPnjgZ0Uir9PZ1RWKCua0q0R6NMgGotqR7+jAkc_aJd1xTx4ew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-03-06 20:46           ` Stephen Warren
2015-03-09 15:39             ` Daniel Stone
     [not found]             ` <1425915411.12254.0@mail.collabora.com>
     [not found]               ` <1425915411.12254.0-u1PCbA9B4pYthqhpMEQ9fNBPR1lH4CV8@public.gmane.org>
2015-03-09 16:23                 ` Stephen Warren [this message]
2015-03-09 16:40                   ` Daniel Stone
     [not found]                     ` <loom.20150309T173610-946-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2015-03-10 16:26                       ` Stephen Warren

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=54FDC8F5.6060408@wwwdotorg.org \
    --to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
    --cc=abrestic-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=daniels-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org \
    --cc=dgreid-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox