kernel entry for thumb2-only cpus
Nicolas Pitre
nico at fluxnic.net
Wed Aug 8 14:53:34 EDT 2012
On Wed, 8 Aug 2012, Matt Sealey wrote:
> On Wed, Aug 8, 2012 at 12:04 AM, Nicolas Pitre <nico at fluxnic.net> wrote:
> > Note that I previously opposed the idea of any hard linkage between the
> > bootloader and the device tree content. If you are spending so much
> > time validating your DT, you might feel so confident as to not allow it
> > to be updatable unless the whole bootloader is also updated.
>
> The DTB is seperate from the firmware. But the firmware does all the pinmuxing
> long before the DTB is loaded - that way the DTB does the correct thing and
> in the worst case describes only the currently configured and ready-to-operate
> hardware (or in the best case, describes hardware the bootloader is currently
> using..).
I do not disagree with that. What's the problem?
> There are good reasons to pinmux stuff at runtime - configurable hardware such
> as on my HP Touchpad, the headphone port is also a UART. It's creepy, but
> you may want to listen to audio and then switch to debugging
Exact. There are cases like that where changing pin muxing at run time
is necessary. We therefore have a subsystem in Linux to deal with that
in a common way.
But if nothing has to change at run time then just let the boot loader
set it up and be done with it... if your boot loader isn't buggy that
is.
I'm always fighting against too much reliance on DT especially for stuff
that the code can easily probe at run time. I'm all for _reducing_ the
dependencies between all the moving pieces i.e. the firmware, the
bootloader, the DTB and the kernel. Interactions must be kept to a
minimum. Hence my stance on the fixed CPU mode for booting Linux.
> But as we just saw when submitting our device tree, we got a nit from
> the maintainer that we don't set up pinctrl - and that pinctrl setup
> would be required in case any device drivers needed it.
And what's wrong with that statement? The key point here is "in case
device drivers need it". If they don't, you don't, right? I don't
think you should provide information in your DTB if it is never going to
be useful.
> I'm saying no; pinctrl shouldn't be *required* by a platform, it
> should be optional for all those where it's impossible to entertain it
> or where there's some kind of late-hitting errata that nobody could
> have predicted (like the MX51 SPI chipselect bug) and the
> collaboration between updating U-Boot and Linux to match using GPIO
> for chipselects instead of letting the chip handle it is too much cost
> or effort compared to adding 2 entries to a device tree and updating
> Linux.
>
> But not 100 entries in device tree, please, and no hard requirements..
Again, no disagreement from me on this.
Nicolas
More information about the linux-arm-kernel
mailing list