devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mitch Bradley <wmb-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
To: Dave Martin <dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: "Paweł Moll" <Pawel.Moll-5wv7dgnIgG8@public.gmane.org>,
	patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org,
	"Rob Herring"
	<rob.herring-CfjtxxwdHycX+EX/Zwu52A@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH] ARM: vexpress: initial device tree support
Date: Wed, 21 Sep 2011 07:47:32 -1000	[thread overview]
Message-ID: <4E7A2334.7020904@firmworks.com> (raw)
In-Reply-To: <20110921171545.GG2872-5wv7dgnIgG8@public.gmane.org>

On 9/21/2011 7:15 AM, Dave Martin wrote:
> On Wed, Sep 21, 2011 at 11:37:54AM -0500, Rob Herring wrote:
>> On 09/21/2011 09:57 AM, Grant Likely wrote:
>>> On Wed, Sep 21, 2011 at 7:24 AM, Rob Herring<robherring2-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>  wrote:
>>>> On 09/21/2011 04:19 AM, Dave Martin wrote:
>>>>>        * arm,amba-bus -- widely used by other boards and patchsets, but
>>>>>          seems not to be documented.
>>>>>
>>>>
>>>> This should be dropped. There's not really any bus component to an amba
>>>> bus. All the probing info is within the primecell peripherals.
>>>
>>> No, if it is an AMBA bus, then it is entirely appropriate to declare
>>> it as an amba bus, but to also be compatible with "simple-bus".  In
>>> fact, it would be better to use a compatible string that specifies the
>>> specific implementation of AMBA bus since there are several versions
>>> of the spec.
>>
>> And type of AMBA bus as the spec includes AXI, AHB, and APB. None of
>> which have any sort of programmability or software view.
>>
>> If this is required, then the policy should be simple-bus should never
>> be allowed alone as every bus has some underlying type. Seems like
>> overkill for buses like this.
>
> The key question is _where_ to draw the line between generic and specific.
> By definition, the DT can never be a comprehensive description of the
> hardware -- rather a good DT is a description of those details of the hardware
> which could relevant to any hypothetical OS.
>
> The flipside is that details which were thought to be irrelevant at
> design/implementation time can turn out to be relevant in practice, due
> to errata and implementation issues etc.  So taking the description slightly
> beyond what the OS needs to know can still have some merit.
>
>
> I still don't know how to say where the line should be drawn in this particular
> case though.

Here are some criteria:

If the controller for the bus itself has registers, include the bus node

If it is possible to plug new stuff into the bus, include the bus node

If the base address for the bus can be changed, thereby changing all the 
addresses of its subordinates by the same offset, include the bus node 
(this usually goes along with "has registers".)

ARM buses typically don't have any of those attributes, but there are 
some weaker criteria that can be used to justify including a bus node. 
The SoC on which I'm currently working has some peripherals on AXI and 
others on APB.  That doesn't matter from that addressing standpoint - 
the individual peripherals can each be viewed as having an address, end 
of story - but it does matter from a power management standpoint.  The 
clock tree is quite related to the bus layout.  Including bus nodes in 
the device tree might provide useful place-holders for properties 
describing power or clock domains.

So, on the whole, I'm in favor of including bus nodes for ARM standard 
buses.  There is little down side to doing so, and a fair chance that it 
might come in handy in the future.

>
> Cheers
> ---Dave
> _______________________________________________
> devicetree-discuss mailing list
> devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
> https://lists.ozlabs.org/listinfo/devicetree-discuss
>

  parent reply	other threads:[~2011-09-21 17:47 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-21  9:19 [PATCH] ARM: vexpress: initial device tree support Dave Martin
     [not found] ` <1316596786-2539-1-git-send-email-dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-09-21 13:24   ` Rob Herring
     [not found]     ` <4E79E588.6010703-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-09-21 14:24       ` Dave Martin
2011-09-21 14:33         ` Pawel Moll
     [not found]           ` <1316615590.4611.624.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-09-21 15:49             ` Dave Martin
2011-09-21 14:57       ` Grant Likely
2011-09-21 16:01         ` Pawel Moll
     [not found]           ` <1316620877.4611.647.camel-okZbbLrgpR/YkXV2EHHjLW3o5bpOHsLO@public.gmane.org>
2011-09-21 16:17             ` Dave Martin
2011-09-21 16:28               ` Pawel Moll
     [not found]         ` <CACxGe6sTYYXbpXvPb4C+y4JX0eRxLvwjbFycXA8Mjc-XWS1QUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-21 16:37           ` Rob Herring
     [not found]             ` <4E7A12E2.9040107-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-09-21 17:15               ` Dave Martin
     [not found]                 ` <20110921171545.GG2872-5wv7dgnIgG8@public.gmane.org>
2011-09-21 17:47                   ` Mitch Bradley [this message]
     [not found]                     ` <4E7A2334.7020904-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2011-09-22 12:19                       ` Dave Martin
2012-01-09 23:26   ` Tabi Timur-B04825
     [not found]     ` <CAOZdJXXPJEaFO-ymvb_TsTJ6W2T7_aWXA=9RZprVmKBOn9cu8A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-01-10  0:42       ` Mitch Bradley
     [not found]         ` <4F0B897A.20502-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2012-01-10  2:24           ` Tabi Timur-B04825
2012-01-10 12:22         ` Jamie Lokier
     [not found]           ` <20120110122252.GA7180-DqlFc3psUjeg7Qil/0GVWOc42C6kRsbE@public.gmane.org>
2012-01-10 21:58             ` Timur Tabi
     [not found]               ` <4F0CB485.9010106-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2012-01-10 22:35                 ` Mitch Bradley
     [not found]                   ` <4F0CBD46.2010909-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2012-01-10 23:55                     ` Stephen Warren
     [not found]                       ` <74CDBE0F657A3D45AFBB94109FB122FF177EE3A59C-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2012-01-11  0:02                         ` Timur Tabi
2012-01-11  0:28                     ` Timur Tabi
     [not found]                       ` <4F0CD7BC.7080409-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2012-01-11  6:43                         ` Mitch Bradley
     [not found]                           ` <4F0D2F90.8020801-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2012-01-11 20:17                             ` Timur Tabi
     [not found]                               ` <4F0DEE4F.3080103-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2012-01-11 23:20                                 ` Mitch Bradley
     [not found]                                   ` <4F0E1923.4090703-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2012-01-11 23:32                                     ` Timur Tabi
2012-01-11 20:29                           ` Stephen Warren
     [not found]                             ` <74CDBE0F657A3D45AFBB94109FB122FF177EE3A770-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2012-01-11 20:32                               ` Timur Tabi
     [not found]                                 ` <4F0DF1E6.40602-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2012-01-11 20:36                                   ` Stephen Warren
     [not found]                                     ` <74CDBE0F657A3D45AFBB94109FB122FF177EE3A777-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2012-01-11 21:37                                       ` Timur Tabi
     [not found]                                         ` <4F0E0113.9090703-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2012-01-11 21:57                                           ` Stephen Warren
2012-01-12 12:24                                       ` Jamie Lokier
     [not found]                                         ` <20120112122406.GG7180-DqlFc3psUjeg7Qil/0GVWOc42C6kRsbE@public.gmane.org>
2012-01-12 16:49                                           ` Stephen Warren
2012-01-11 23:16                               ` Mitch Bradley
     [not found]                                 ` <4F0E1843.7030207-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2012-01-12  0:15                                   ` Stephen Warren
     [not found]                                     ` <74CDBE0F657A3D45AFBB94109FB122FF177EE3A848-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org>
2012-01-12  0:38                                       ` Mitch Bradley
     [not found]                                         ` <4F0E2B95.7070402-D5eQfiDGL7eakBO8gow8eQ@public.gmane.org>
2012-01-12  0:47                                           ` Mitch Bradley
2012-01-12 16:45                                           ` Stephen Warren
2012-01-12 12:09                                       ` Jamie Lokier
     [not found]                                         ` <20120112120920.GF7180-DqlFc3psUjeg7Qil/0GVWOc42C6kRsbE@public.gmane.org>
2012-01-12 16:52                                           ` Stephen Warren
2012-01-10 11:04       ` Dave Martin

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=4E7A2334.7020904@firmworks.com \
    --to=wmb-d5eqfidgl7eakbo8gow8eq@public.gmane.org \
    --cc=Pawel.Moll-5wv7dgnIgG8@public.gmane.org \
    --cc=dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=rob.herring-CfjtxxwdHycX+EX/Zwu52A@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;
as well as URLs for NNTP newsgroup(s).