* Re: PCI example for device tree
[not found] ` <4C1C9CEA.8050904-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
@ 2010-06-19 13:12 ` Grant Likely
[not found] ` <AANLkTik-TbdrIdr9YjeJGSlGH7-DUG_i1qK-X-aFVK4K-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Grant Likely @ 2010-06-19 13:12 UTC (permalink / raw)
To: stephan-tNItQxeJkt8dnm+yROfE0A, devicetree-discuss
[cc'ing mailing list]
On Sat, Jun 19, 2010 at 4:33 AM, Stephan Gatzka <stephan-tNItQxeJkt8dnm+yROfE0A@public.gmane.org> wrote:
> Hi Grant,
>
> I complete the first version of the PCI bus mapping example. It is in the
> draft section of your wiki. Maybe you can just look into it and if you like
> it, put it into the main wiki page.
Hi Stephan,
Thanks for this work. That is useful. Before I take it out of draft,
I'd like some changes to be made so that it better fits with the rest
of the documents. I talked about it in an earlier email, but I don't
know if you got it or not. Here's what I wrote:
On Sun, Jun 13, 2010 at 11:54 PM, Grant Likely
<grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> wrote:
> On Sat, Jun 12, 2010 at 11:33 AM, Stephan Gatzka <stephan-tNItQxeJkt8dnm+yROfE0A@public.gmane.org> wrote:
>> Hi Grant,
>>
>>> I've been doing a bit of work on some introductory level documentation
>>> of the flattened device tree. I've got a rough copy up on the
>>> devicetree.org wiki, and I could use some feedback. If anyone has
>>> some time to look at it, you can find it here:
>>>
>>> http://devicetree.org/Device_Tree_Usage
>>>
>>> Thanks,
>>> g.
>>>
>>
>> this looks good. Maybe an example of a complete host/PCI bridge might be
>> helpful. Probably I can write something during the next week.
>
> Hi Stephan,
>
> I see that you started drafting some of this on the wiki. Thanks for
> the draft you've done so far. Some comments:
>
> - Instead, of using an MPC5200 example, add a pci bus to the sample
> Coyote's Revenge system used in the rest of the page and describe
> that. The goal of this document is to lead a user step-by-step how
> each part of the device tree works. So, instead of plopping down the
> complete PCI bus node, the document should gradually build it up, and
> talk about each element as it is added. Focus on how it all works
> together.
>
> - It would be useful to also show a PCI-to-PCI bridge, and maybe a
> fixed PCI device as children of the host bridge node.
>
> - The current PCI nodes on all powerpc boards depend on a device_type
> = "PCI" property, but I'd like to look at moving away from that for
> new PCI controllers (device_type describes facilities in real open
> firmware. It shouldn't have any meaning in the flattened device
> tree). I need to look into the details though to see if it is
> feasible or not.
>
> - Describing the interrupt-map property will be particularly fiddly.
> It could have a section all to itself before you even get to talking
> about PCI irq swizzling.
>
> Thanks again for the help!
> g.
The most important bit I think it to break up the adding of the PCI
node so that it is built up piece by piece. For each element being
discussed, I want a reader to be able to focus on just the properties
that are involved.
Thanks,
g.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PCI example for device tree
[not found] ` <AANLkTik-TbdrIdr9YjeJGSlGH7-DUG_i1qK-X-aFVK4K-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-06-20 5:57 ` Stephan Gatzka
[not found] ` <4C1DADC6.2060505-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Stephan Gatzka @ 2010-06-20 5:57 UTC (permalink / raw)
To: Grant Likely; +Cc: devicetree-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2453 bytes --]
Hi Grant!
> Hi Stephan,
>
> Thanks for this work. That is useful. Before I take it out of draft,
> I'd like some changes to be made so that it better fits with the rest
> of the documents. I talked about it in an earlier email, but I don't
> know if you got it or not. Here's what I wrote:
No, unfortunately, I haven't read it.
>> - Instead, of using an MPC5200 example, add a pci bus to the sample
>> Coyote's Revenge system used in the rest of the page and describe
>> that. The goal of this document is to lead a user step-by-step how
>> each part of the device tree works. So, instead of plopping down the
>> complete PCI bus node, the document should gradually build it up, and
>> talk about each element as it is added. Focus on how it all works
>> together.
My intention was to describe a working example for a Host-to-PCI bridge.
Of course it is possible to rework it to your imaginary example but
again, I definitely prefer to do that for an existing board. Please just
consider to write something about the interrupt-map property without
having the schematics and a user manual for the SoC used. I can't
explain it without the wiring of IDSEL lines and the mapping of IDSEL to
device numbers in the PCI bridge.
>>
>> - It would be useful to also show a PCI-to-PCI bridge,
OK, but maybe sometimes later.
>> and maybe a
>> fixed PCI device as children of the host bridge node.
OK, but I think at least for PCI the current policy is just to describe
the bridge and leave the PCI devices up for PCI probing code. So adding
a PCI device as a children might be a bit academically.
>
> The most important bit I think it to break up the adding of the PCI
> node so that it is built up piece by piece. For each element being
> discussed, I want a reader to be able to focus on just the properties
> that are involved.
I have to think about it. My intention was more to explain what needs to
be done for integrating a HOST-to-PCI bridge in a device tree and to
describe the properties that are necessary for. There are some
properties that belong together and I can't easily explain them
stand-alone. That's the reason why I used colors to display the related
properties.
I know that my sections breaks with the style you've used in the intro
document. But I think for this complex PCI thing it is better to have a
walk-through example.
Kind regards,
Stephan
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5136 bytes --]
[-- Attachment #2: Type: text/plain, Size: 192 bytes --]
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PCI example for device tree
[not found] ` <4C1DADC6.2060505-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
@ 2010-06-23 4:30 ` Stephan Gatzka
[not found] ` <4C218DCB.1010108-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Stephan Gatzka @ 2010-06-23 4:30 UTC (permalink / raw)
To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
[-- Attachment #1.1: Type: text/plain, Size: 236 bytes --]
Hi Grant,
Maybe this is the best solution. Someone else writes a common PCI
section for your imaginary board. In this section could be a link to my
real world example (which is still useful, I think).
Regards,
Stephan
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5136 bytes --]
[-- Attachment #2: Type: text/plain, Size: 192 bytes --]
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PCI example for device tree
[not found] ` <4C218DCB.1010108-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
@ 2010-07-08 7:43 ` Grant Likely
[not found] ` <AANLkTikzLP_6Ac9G5ZOEwwhUY4AVQoneTP0D6jAdRYzr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Grant Likely @ 2010-07-08 7:43 UTC (permalink / raw)
To: stephan-tNItQxeJkt8dnm+yROfE0A; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
On Tue, Jun 22, 2010 at 10:30 PM, Stephan Gatzka <stephan-tNItQxeJkt8dnm+yROfE0A@public.gmane.org> wrote:
> Hi Grant,
>
> Maybe this is the best solution. Someone else writes a common PCI section
> for your imaginary board. In this section could be a link to my real world
> example (which is still useful, I think).
Hey Stephan. Took me a bit to get back to this, so sorry for the delay.
I really do like the text that you wrote, but I also needed something
that fit in with the style and purpose of the rest of the text,
specifically to be building up the PCI binding piece by piece. I
spent some time editing it tonight and I think I'm happy with the way
it turned out. It is still primarily your text, but reworked to suit
the purpose of the document. There are probably still mistakes and
typos in what I've written. I'll have to read it again when I'm not
tired, and it isn't late at night, but feel free to take a look and
make comments.
I'm totally fine with keeping your original text too on another page,
and I do agree that it is useful. You can use the page history link
to extract your old text and insert it into a new page. This is
probably a good location for it:
http://www.devicetree.org/Compatible%3Dfsl,mpc5200-pci
Cheers, and thanks again for the good work.
g.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PCI example for device tree
[not found] ` <AANLkTikzLP_6Ac9G5ZOEwwhUY4AVQoneTP0D6jAdRYzr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-07-08 17:44 ` Stephan Gatzka
[not found] ` <4C360E8F.6070908-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Stephan Gatzka @ 2010-07-08 17:44 UTC (permalink / raw)
To: Grant Likely; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
[-- Attachment #1.1: Type: text/plain, Size: 702 bytes --]
Hi Grant,
> I really do like the text that you wrote, but I also needed something
> that fit in with the style and purpose of the rest of the text,
> specifically to be building up the PCI binding piece by piece. I
> spent some time editing it tonight and I think I'm happy with the way
> it turned out. It is still primarily your text, but reworked to suit
> the purpose of the document. There are probably still mistakes and
> typos in what I've written. I'll have to read it again when I'm not
> tired, and it isn't late at night, but feel free to take a look and
> make comments.
I'll go through the text after my vacation (about 3 weeks from now).
Kind regards,
Stephan
[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5136 bytes --]
[-- Attachment #2: Type: text/plain, Size: 192 bytes --]
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: PCI example for device tree
[not found] ` <4C360E8F.6070908-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
@ 2010-07-08 17:53 ` Grant Likely
0 siblings, 0 replies; 6+ messages in thread
From: Grant Likely @ 2010-07-08 17:53 UTC (permalink / raw)
To: stephan-tNItQxeJkt8dnm+yROfE0A; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ
On Thu, Jul 8, 2010 at 11:44 AM, Stephan Gatzka <stephan-tNItQxeJkt8dnm+yROfE0A@public.gmane.org> wrote:
> Hi Grant,
>
>> I really do like the text that you wrote, but I also needed something
>> that fit in with the style and purpose of the rest of the text,
>> specifically to be building up the PCI binding piece by piece. I
>> spent some time editing it tonight and I think I'm happy with the way
>> it turned out. It is still primarily your text, but reworked to suit
>> the purpose of the document. There are probably still mistakes and
>> typos in what I've written. I'll have to read it again when I'm not
>> tired, and it isn't late at night, but feel free to take a look and
>> make comments.
>
> I'll go through the text after my vacation (about 3 weeks from now).
Okay, thanks.
g.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-07-08 17:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4C1C9CEA.8050904@gatzka.org>
[not found] ` <4C1C9CEA.8050904-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
2010-06-19 13:12 ` PCI example for device tree Grant Likely
[not found] ` <AANLkTik-TbdrIdr9YjeJGSlGH7-DUG_i1qK-X-aFVK4K-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-20 5:57 ` Stephan Gatzka
[not found] ` <4C1DADC6.2060505-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
2010-06-23 4:30 ` Stephan Gatzka
[not found] ` <4C218DCB.1010108-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
2010-07-08 7:43 ` Grant Likely
[not found] ` <AANLkTikzLP_6Ac9G5ZOEwwhUY4AVQoneTP0D6jAdRYzr-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-07-08 17:44 ` Stephan Gatzka
[not found] ` <4C360E8F.6070908-tNItQxeJkt8dnm+yROfE0A@public.gmane.org>
2010-07-08 17:53 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox