From: "Grant Likely" <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: Christian Rund <Christian.Rund-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org
Subject: Re: devicetree-discuss Digest, Vol 6, Issue 7
Date: Fri, 19 Dec 2008 16:24:14 -0700 [thread overview]
Message-ID: <fa686aa40812191524k6ae8fab0r962da830ab159ca0@mail.gmail.com> (raw)
In-Reply-To: <OF6B36395E.E0A4363C-ONC1257522.0035FA7C-C1257523.004E84FF-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
On Thu, Dec 18, 2008 at 7:17 AM, Christian Rund
<Christian.Rund-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org> wrote:
> From: "Grant Likely" <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
>> Is a new OpenFirmware driver interface being defined for working with
>> 'be' devices?
>
> No
>
>> If not then the device-type property should not be
>> defined.
>
> The device-type property instances will be removed where not
> necessary or no OpenFirmware binding recommendations exist
> respectively.
Okay, good.
>> > Default value is { 0x00510000 0x00001000 0x00511000 0x00001000 }.
>>
>> These spaces are contiguous; what is the reason for the two array entries?
>
> The spaces are in fact contiguous, but belong to two different units.
> 0x00510xxx covers the IOC Address Translation MMIO Registers, whereras
> 0x00511xxx covers the I/O Command MMIO Registers.
> Despite, Linux is mapping the two ranges in one single step, which means
> the range can well be summarized to
> Default value is { 0x00510000 0x00002000 }.
Belonging to different units is not a problem if it makes logical
sense. How Linux is currently using the data is irrelevant. Do
whatever describes the hardware best, *but* if two ranges are used,
then the documentation must say what each of the ranges are.
>> > The pervasive node node represents the pervasive unit in the device
>> > tree.
>> > T>he main property value is the address range of MMIO register space
>> > controlling the pervasive unit.
>>
>> Umm, what is a "pervasive unit"?
>
> The pervasive node represents the 'Pervasive MMIO Registers' (i.e.
> Pervasive Monitor, Power Management and Thermal Management described
> in the Cell/B.E. public register spec.
Sounds like this blurb should be added to the document. :-)
>> > property name: Property to specify the physical id of an SPE.
>> >
>> > Default values for the physical id is encoded as with encode-int.
>>
>> Unless there is some shared register set that needs the SPE physical
>> id to operate then I encourage you not to define this property. If it
>> is just a logical number, the I think it is better to rely on the node
>> name instead of an arbitrarily defined logical number. However, if
>> there is a register set shared between the SPEs that needs the SPE
>> number, then you should follow the lead of other existing bindings and
>> use the property name "cell-index" instead of physical-id.
>
> The "physical-id" property is used by Linux (see information on ppc-patch
> below).
"Because Linux Uses It" isn't actually a good answer. The device tree
must describe the hardware platform; not the way the OS uses it. What
is the physical ID used for? Does it have a bearing on how Linux
drives the hardware or is it just a convenient number to uniquely id
the SPE? If it doesn't have a bearing on how to use the hardware then
I think the 'physical-id' property is just a hack and should be
removed. If Linux wants a unique id, then Linux should assign and
manage the ID numbers itself (IMNSHO).
If it *does* have a bearing on how to drive the hardware, then yes it
makes sense to use such a property.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
next prev parent reply other threads:[~2008-12-19 23:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.11.1229475607.16627.devicetree-discuss@ozlabs.org>
[not found] ` <mailman.11.1229475607.16627.devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org>
2008-12-18 14:17 ` devicetree-discuss Digest, Vol 6, Issue 7 Christian Rund
[not found] ` <OF6B36395E.E0A4363C-ONC1257522.0035FA7C-C1257523.004E84FF-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2008-12-19 23:24 ` Grant Likely [this message]
[not found] ` <fa686aa40812191524k6ae8fab0r962da830ab159ca0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-01-13 22:57 ` Device Tree documentation discussion for Cell/B.E. binding DRAFT - see Digest, Vol 6, Issues 1,7,9,10,11 Christian Rund
[not found] ` <OF55C5DDBA.0683A31A-ONC125753D.0075E4B1-C125753D.007E1E34-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org>
2009-01-13 23:24 ` Device Tree documentation discussion for Cell/B.E. binding DRAFT - see Digest, Vol 6, Issues 1, 7, 9, 10, 11 Grant Likely
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=fa686aa40812191524k6ae8fab0r962da830ab159ca0@mail.gmail.com \
--to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
--cc=Christian.Rund-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org \
--cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@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