All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: John Linn <John.Linn-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: dtsi vs dts files, where to better understand this
Date: Wed, 21 Mar 2012 14:36:35 -0600	[thread overview]
Message-ID: <4F6A3BD3.4040805@wwwdotorg.org> (raw)
In-Reply-To: <89736f85-54aa-4f71-814e-91ae5ce33bdc-+Ck8Kgl/v0+44QFJ4H5SYbjjLBE8jN/0@public.gmane.org>

On 03/21/2012 12:36 PM, John Linn wrote:
> Hi,
> 
> I've done some digging and not found any info, maybe I looked in the
> wrong places.
> 
> I'm trying to better understand how the dtsi file works with the dts
> file and what can go in each file.

The basic idea is that what's inside the SoC is identical across all
boards using that SoC. This information is put into the .dtsi file so it
can be included by the .dts file for any boards using the SoC.

Anything that's board-specific goes into the board's individual .dts
file. This might be new nodes to e.g. define which chips are connected
to an I2C bus hosted by the SoC, and much more.

Where properties existing in both, the most recent value in parsing
order overrides any earlier values. So for example, if the .dtsi file
said that 'status = "disabled"' for a particular HW module, the board
.dts could later override it by saying 'status = "okay"' within the same
node.

One other factor: Something like an SDHCI controller may have properties
that are defined by the SoC (e.g. compatible, reg, interrupts), and
properties that are defined by the board (e.g. the GPIO ID to use for
CD, WP, etc.). Just set the relevant properties in the .dtsi and .dts
files and they'll get merged together to form the final device tree.

Was that what you were looking for?

  parent reply	other threads:[~2012-03-21 20:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 18:36 dtsi vs dts files, where to better understand this John Linn
     [not found] ` <89736f85-54aa-4f71-814e-91ae5ce33bdc-+Ck8Kgl/v0+44QFJ4H5SYbjjLBE8jN/0@public.gmane.org>
2012-03-21 20:36   ` Stephen Warren [this message]
     [not found]     ` <4F6A3BD3.4040805-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-03-21 20:50       ` John Linn
     [not found]         ` <d09d039e-88ba-41d3-ac51-8de1a11d806b-+Ck8Kgl/v0/HU/wHWYriTLjjLBE8jN/0@public.gmane.org>
2012-03-22  1:01           ` David Gibson

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=4F6A3BD3.4040805@wwwdotorg.org \
    --to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
    --cc=John.Linn-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@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 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.