All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 2/5] board support of arm64
Date: Thu, 22 Aug 2013 12:50:44 -0500	[thread overview]
Message-ID: <1377193844.5029.107.camel@snotra.buserror.net> (raw)
In-Reply-To: <CALRxmdBbLr_NFXKiNWErkC=8HLud_YDKJ4jq=AH_ipcvewdt-Q@mail.gmail.com>

On Thu, 2013-08-22 at 12:44 -0500, Stuart Yoder wrote:
> On Thu, Aug 22, 2013 at 11:23 AM, Scott Wood <scottwood@freescale.com> wrote:
> > On Thu, 2013-08-22 at 11:15 -0500, Stuart Yoder wrote:
> >> On Mon, Aug 19, 2013 at 2:59 PM, Scott Wood <scottwood@freescale.com> wrote:
> >> > On Fri, 2013-08-16 at 09:14 -0500, Stuart Yoder wrote:
> >> >> Why is the device tree source in u-boot (instead of in the kernel)?
> >> >> Is this temporary?   It
> >> >> looks like this device tree is just a copy from somewhere else.
> >> >>
> >> >> Would suggest removing this from this patch series and keep the dts maintained
> >> >> in the Linux kernel.
> >> >
> >> > U-Boot itself uses the device tree (not just to patch up for Linux) on
> >> > some targets.
> >> >
> >> > Even with the way PPC uses device trees, it doesn't really make sense to
> >> > keep them in the kernel given that they're meant to be OS-neutral, and
> >> > have ties to U-Boot in terms of what gets fixed up at runtime.
> >>
> >> It may not make sense, but that is where they are kept currently.
> >
> > For PPC.
> 
> $ find arch/arm/boot/dts | wc -l
> 425
> $ find arch/powerpc/boot/dts | wc -l
> 315

My point is this isn't the first device tree to go into U-Boot for ARM.

> >> It doesn't make sense to maintain 2 copies of a vexpress64.dts device tree in 2 different
> >> places...or to maintain 1 lone device tree in u-boot.
> >
> > Why does it not make sense for there to be one lone device tree in
> > U-Boot?
> 
> It doesn't make sense to me to keep one device tree in u-boot
> and the rest in the kernel.

That's not what's being proposed.

> > Submodules can be a pain.  If we don't use them for DTC, why would we
> > use them for this?  Since they require extra commands, you'd be
> > modifying the workflow of everyone that builds U-Boot and/or Linux for
> > affected platforms.
> 
> You shouldn't need device trees for building u-boot or the kernel.

Then why mess around with submodules instead of just a separate
repository?

> I don't think a couple of extra commands is that burdensome.

I disagree, and at the least don't want to be the one to advocate such a
change. :-)

> I agree the DTS files really don't belong in the kernel, but there is
> currently no better repository that has been proposed.   I'm not
> sure u-boot is a better place.    Device trees should be independent
> of any particular bootloader or OS.

The final device tree that the OS sees should be independent of the OS.
The dts is not the final device tree, and is tied to U-Boot.  The device
tree in general is also tied to the bootloader in other ways -- U-Boot
expects certain aliases, configurable addresses must match, etc.

-Scott

  reply	other threads:[~2013-08-22 17:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-15 13:47 [U-Boot] [PATCH v3 0/5] arm64 patch fenghua at phytium.com.cn
2013-08-15 13:47 ` [U-Boot] [PATCH v3 1/5] core support of arm64 fenghua at phytium.com.cn
2013-08-15 13:47 ` [U-Boot] [PATCH v3 2/5] board " fenghua at phytium.com.cn
2013-08-16 14:14   ` Stuart Yoder
2013-08-19 19:59     ` Scott Wood
2013-08-19 20:43       ` Tom Rini
2013-08-22 16:15       ` Stuart Yoder
2013-08-22 16:23         ` Scott Wood
2013-08-22 17:44           ` Stuart Yoder
2013-08-22 17:50             ` Scott Wood [this message]
2013-08-23 19:48               ` Tom Rini
2013-08-15 13:47 ` [U-Boot] [PATCH v3 3/5] arch support 1 " fenghua at phytium.com.cn
2013-08-15 13:47 ` [U-Boot] [PATCH v3 4/5] arch support 2 " fenghua at phytium.com.cn
2013-08-15 13:47 ` [U-Boot] [PATCH v3 5/5] 64bit initrd start address support fenghua at phytium.com.cn
2013-08-15 17:26 ` [U-Boot] [PATCH v3 0/5] arm64 patch Simon Glass
2013-08-16  5:02   ` [U-Boot] about CONFIG_SYS_GENERIC_BOARD FengHua
2013-08-16 19:19     ` Scott Wood
2013-08-16 19:28     ` Simon Glass
2013-08-16 19:41       ` Tom Rini
2013-08-16  4:32 ` [U-Boot] [PATCH v3 0/5] arm64 patch Dennis Gilmore
2013-08-16 19:53   ` Scott Wood
2013-08-17  4:55     ` Sharma Bhupesh-B45370

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=1377193844.5029.107.camel@snotra.buserror.net \
    --to=scottwood@freescale.com \
    --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 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.