Devicetree
 help / color / mirror / Atom feed
From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Scott Wood <scottwood-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
	Li Yang <LeoLi-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
	devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org
Subject: Re: The usage of compatible 'simple-bus'
Date: Tue, 6 Jan 2009 12:43:23 +1100	[thread overview]
Message-ID: <20090106014323.GB29456@yookeroo.seuss> (raw)
In-Reply-To: <20090105192053.GB23766-VKaLA/mbEU932VTgPCOETVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>

On Mon, Jan 05, 2009 at 01:20:53PM -0600, Scott Wood wrote:
> On Mon, Jan 05, 2009 at 06:27:39PM +0800, Li Yang wrote:
> > I got an assumption from the existing device trees that having
> > 'simple-bus' in the compatible property of a node means that all child
> > nodes should be added as of_platform_device in platform initialization
> > phase.  No matter it represents a bus in common sense or not.  Is this
> > truly the case? 
> 
> Yes, simple-bus indicates that the children can be driven standalone from
> any knowledge of the parent bus.

Erm, well, sort of.  Strictly it indicates that the only way to locate
the child devices of this bus is by using the address information in
the device tree - there's no way to dynamically probe the bus.

The fact that this causes of_platform_devices to be instantiated is a
Linux implementation specific detail (and one we might change in
future).

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

  parent reply	other threads:[~2009-01-06  1:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3A45394FD742FA419B760BB8D398F9ED0B37E7@zch01exm26.fsl.freescale.net>
     [not found] ` <3A45394FD742FA419B760BB8D398F9ED0B37E7-bKEhWGtIRUJ4Lp7cDGe+DVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2009-01-05 19:20   ` The usage of compatible 'simple-bus' Scott Wood
     [not found]     ` <20090105192053.GB23766-VKaLA/mbEU932VTgPCOETVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2009-01-06  1:43       ` David Gibson [this message]
2009-01-06  5:46         ` Li Yang
     [not found]         ` <20090106014323.GB29456-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2009-01-06  5:46           ` Li Yang
     [not found]         ` <3A45394FD742FA419B760BB8D398F9ED0B38C9@zch01exm26.fsl.freescale.net>
     [not found]           ` <3A45394FD742FA419B760BB8D398F9ED0B38C9-bKEhWGtIRUJ4Lp7cDGe+DVjVikpgYyvb5NbjCUgZEJk@public.gmane.org>
2009-01-06  6:35             ` Grant Likely
     [not found]               ` <fa686aa40901052235t1342b6e2w4fde664f1ebb3aa3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-01-06  7:01                 ` Li Yang
2009-01-07  2:00             ` David Gibson
2009-01-07  2:00           ` David Gibson
     [not found]           ` <20090107020006.GD13731@yookeroo.seuss>
2009-01-07  3:26             ` Grant Likely
     [not found]             ` <20090107020006.GD13731-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2009-01-07  3:26               ` Grant Likely
2009-01-07  3:51               ` Li Yang
     [not found]                 ` <2a27d3730901061951g333d10b6mf4dc0219570e521b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-01-07 15:25                   ` Scott Wood
2009-01-05 10:27 Li Yang
  -- strict thread matches above, loose matches on Subject: below --
2009-01-05 10:27 Li Yang

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=20090106014323.GB29456@yookeroo.seuss \
    --to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
    --cc=LeoLi-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
    --cc=linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
    --cc=scottwood-KZfg59tc24xl57MIdRCFDg@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