From: Lucas Stach <dev@lynxeye.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 06/11] tegra20: switch over seaboard and ventana to use tablebased pinmux
Date: Fri, 25 Jan 2013 22:38:18 +0100 [thread overview]
Message-ID: <1359149898.1540.86.camel@tellur> (raw)
In-Reply-To: <CAPnjgZ1EgJsesWNPENRU0rWuYm_imkOha=pnstVoXB0a9=sPOg@mail.gmail.com>
Hello Simon,
Am Samstag, den 26.01.2013, 10:20 +1300 schrieb Simon Glass:
> Hi Lucas,
>
> On Fri, Jan 25, 2013 at 7:22 AM, Lucas Stach <dev@lynxeye.de> wrote:
> > Am Freitag, den 25.01.2013, 06:54 +1300 schrieb Simon Glass:
> >> Hi Lucas,
> >>
> >> On Fri, Jan 25, 2013 at 5:48 AM, Lucas Stach <dev@lynxeye.de> wrote:
> >> > Init pinmux in one shot, in order to avoid any conflicts.
> >> >
> >> > Signed-off-by: Lucas Stach <dev@lynxeye.de>
> >> > ---
> >> > board/nvidia/seaboard/seaboard.c | 133 +++++++++++++++++++++++++++++++++------
> >> > include/configs/seaboard.h | 3 +
> >> > include/configs/ventana.h | 3 +
> >> > 3 files changed, 121 insertions(+), 18 deletions(-)
> >>
> >> This seems like a lot of code and presumably quite a bit of
> >> duplication between boards. What sort of conflicts does this avoid,
> >> and is it the only way of avoiding them?
> >>
> > I don't see it as duplication, but as explicitly spelling out how the
> > pinmux configuration should be set up on a certain board.
>
> I mean that the table is very similar for different boards, so looks
> like duplicated coded (133 very similar lines for each board).
>
> Also, this seems to break FDT use. At present it is possible (I think)
> to boot the same U-Boot on any board, with the device tree specifying
> the config. With your change that is no longer possible, I think?
>
> Looking ahead to T114 I see a similar problem. The funcmux approach
> was a compromise in that we could just select appropriate values for
> each function - there was no agreement on how to put this in the FDT
> though (my intention was that it would depend on the kernel binding,
> but that is now defined, so what excuse do we have for not
> implementing it in U-Boot?).
>
That Tegra30 doesn't do so either. ;) But I agree, that's no valid
excuse and we should resolve this before Tegra114 introduces more of
this stuff. See below.
> >
> > Before this change we would leave some pads uninitialised in their
> > (random) reset configuration. For example on the Colibri this leads to
> > NAND not working as it's wired up to the KBC pads. If we only configure
> > those, ATC will remain in it's reset state and would be also configured
> > to the NAND function, which leads to fail. Having an explicit, known to
> > be conflict free configuration for all pads avoids all those unpleasant
> > surprises.
>
> Well yes, but we seem to be right back to where we started, with the
> FDT unable to describe a key feature of the boards (pinmux).
>
I see your point now. The obvious answer for now is: it's not regressing
functionality, as we were never able to boot the same U-Boot image by
just changing the DT.
But yes in the end we want to pack this information into the DT files.
But even then it would be nice if people would test this pachset, as I
imagine DT based pinmux is the same as tablebased pinmux, just in a
slightly different flavour. ;) So if people test the tablebased config
now, we can do the conversion to DT based with a lot more confidence.
I'll look into using the kernel pinmux binding minus the MUX stuff, as I
think there's no real reason to have this in U-Boot.
Regards,
Lucas
next prev parent reply other threads:[~2013-01-25 21:38 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-24 16:48 [U-Boot] [PATCH 00/11] tablebased pinmux for Tegra20 Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 01/11] tegra: introduce config option to do table based pinmux Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 02/11] tegra20: add entry point and helper for tablebased pinmux Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 03/11] tegra20: switch over colibri_t20 board to use " Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 04/11] tegra20: switch over tamonten platform " Lucas Stach
2013-01-25 22:04 ` Stephen Warren
2013-01-25 22:11 ` Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 05/11] tegra20: switch over harmony board " Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 06/11] tegra20: switch over seaboard and ventana " Lucas Stach
2013-01-24 17:54 ` Simon Glass
2013-01-24 18:22 ` Lucas Stach
2013-01-25 21:20 ` Simon Glass
2013-01-25 21:38 ` Lucas Stach [this message]
2013-01-25 21:49 ` Simon Glass
2013-01-25 21:57 ` Lucas Stach
2013-01-25 22:09 ` Stephen Warren
2013-01-25 22:10 ` Stephen Warren
2013-01-27 16:36 ` Simon Glass
2013-01-25 22:06 ` Stephen Warren
2013-01-24 16:48 ` [U-Boot] [PATCH 07/11] tegra20: switch over whistler board " Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 08/11] tegra20: switch over paz00 " Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 09/11] tegra20: switch over trimslice " Lucas Stach
2013-01-24 16:48 ` [U-Boot] [PATCH 10/11] tegra20: remove old pinmux setup Lucas Stach
2013-01-25 22:12 ` Stephen Warren
2013-01-25 22:19 ` Lucas Stach
2013-01-25 22:34 ` Stephen Warren
2013-01-24 16:48 ` [U-Boot] [PATCH 11/11] tegra20: remove funcmux Lucas Stach
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=1359149898.1540.86.camel@tellur \
--to=dev@lynxeye.de \
--cc=u-boot@lists.denx.de \
/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