devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DTs, Linux drivers & PCI Devices
@ 2013-01-28 14:39 Saridakis, Dean   (US SSA)
       [not found] ` <B98BBFB67D89184E8E876F332BDBC3E0A0C372-2l2KXrxQdxTyDgnK/IoVOaDTYR/rgm5H+Z/3o1Xo0Lw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Saridakis, Dean   (US SSA) @ 2013-01-28 14:39 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org

I've been diving into Linux kernel drivers & device trees for a new project & am looking for some help. 

First, is it reasonable/possible to define a PCI (PCIe) device in a device tree? Seems like you'd have to reference a BAR#s to do this (& still have addresses mapped by enumeration).  A couple reasons I'm interested in doing this:
- The PCI device logic will be migrated to a system bus
- DT properties provide a nice way to pass in driver configuration data 

It's not clear to me how the linux kernel interprets/processes the device tree. I'm working w/ powerpc (fsl QorIQ). E.g., shouldn't everything from the DT show up in /sys/bus/platform/devices ? I noticed that not everything is there, e.g., only 2 of the 4 PCIe RCs. (Noticed this after trying to add my own simple dummy entry to a reserved reg space as an experiment).

Ultimately I'd like to use the DT to describe a set of logic cores on a subordinate bus. There is also a subordinate interrupt controller, which I think I can figure out how to describe, but am not sure how kernel glue works -- somehow I'd need to bind that controller to routing code I provide. 

Documentation I've been reading includes:
- ePAPR
- DT wiki
- kernel doc (driver-model, devicetree)
- Linux DDs v3 (no coverage of platform drivers) Any other recommended docs?

Thanks,
Dean 

^ permalink raw reply	[flat|nested] 5+ messages in thread
* DTs, Linux drivers & PCI Devices
@ 2013-01-25 16:30 Saridakis, Dean   (US SSA)
  0 siblings, 0 replies; 5+ messages in thread
From: Saridakis, Dean   (US SSA) @ 2013-01-25 16:30 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org

I've been diving into Linux kernel drivers & device trees for a new project & am looking for some help. 

First, is it reasonable/possible to define a PCI (PCIe) device in a device tree? Seems like you'd have to reference a BAR#s to do this (& still have addresses mapped by enumeration).  A couple reasons I'm interested in doing this:
- The PCI device logic will be migrated to a system bus
- DT properties provide a nice way to pass in driver configuration data 

It's not clear to me how the linux kernel interprets/processes the device tree. I'm working w/ powerpc (fsl QorIQ). E.g., shouldn't everything from the DT show up in /sys/bus/platform/devices ? I noticed that not everything is there, e.g., only 2 of the 4 PCIe RCs. (Noticed this after trying to add my own simple dummy entry to a reserved reg space as an experiment).

Ultimately I'd like to use the DT to describe a set of logic cores on a subordinate bus. There is also a subordinate interrupt controller, which I think I can figure out how to describe, but am not sure how kernel glue works -- somehow I'd need to bind that controller to routing code I provide. 

Documentation I've been reading includes:
- ePAPR
- DT wiki
- kernel doc (driver-model, devicetree)
- Linux DDs v3 (no coverage of platform drivers)
Any other recommended docs?

Thanks,
Dean 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-05  4:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28 14:39 DTs, Linux drivers & PCI Devices Saridakis, Dean   (US SSA)
     [not found] ` <B98BBFB67D89184E8E876F332BDBC3E0A0C372-2l2KXrxQdxTyDgnK/IoVOaDTYR/rgm5H+Z/3o1Xo0Lw@public.gmane.org>
2013-01-29  5:12   ` David Gibson
     [not found]     ` <20130129051244.GH16729-W9XWwYn+TF0XU02nzanrWNbf9cGiqdzd@public.gmane.org>
2013-01-30  0:58       ` Saridakis, Dean   (US SSA)
2013-02-05  4:28     ` David Gibson
  -- strict thread matches above, loose matches on Subject: below --
2013-01-25 16:30 Saridakis, Dean   (US SSA)

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).