devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to correctly define memory range of PCIe config space
@ 2022-07-10 22:51 Pali Rohár
  2022-07-23  9:05 ` Pali Rohár
  2022-08-06 11:06 ` Manivannan Sadhasivam
  0 siblings, 2 replies; 14+ messages in thread
From: Pali Rohár @ 2022-07-10 22:51 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Rob Herring, Mauri Sandberg, devicetree,
	linux-pci

Hello!

Together with Mauri we are working on extending pci-mvebu.c driver to
support Orion PCIe controllers as these controllers are same as mvebu
controller.

There is just one big difference: Config space access on Orion is
different. mvebu uses classic Intel CFC/CF8 registers for indirect
config space access but Orion has direct memory mapped config space.
So Orion DTS files need to have this memory range for config space and
pci-mvebu.c driver have to read this range from DTS and properly map it.

So my question is: How to properly define config space range in device
tree file? In which device tree property and in which format? Please
note that this memory range of config space is PCIe root port specific
and it requires its own MBUS_ID() like memory range of PCIe MEM and PCIe
IO mapping. Please look e.g. at armada-385.dtsi how are MBUS_ID() used:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/armada-385.dtsi

Krzysztof, would you be able to help with proper definition of this
property, so it would be fine also for schema checkers or other
automatic testing tools?

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

end of thread, other threads:[~2022-09-05 17:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-10 22:51 How to correctly define memory range of PCIe config space Pali Rohár
2022-07-23  9:05 ` Pali Rohár
2022-08-05 12:45   ` Pali Rohár
2022-08-06 11:06 ` Manivannan Sadhasivam
2022-08-06 11:17   ` Pali Rohár
2022-08-06 12:16     ` Manivannan Sadhasivam
2022-08-06 12:23       ` Pali Rohár
2022-08-06 12:46         ` Manivannan Sadhasivam
2022-08-09 16:13         ` Rob Herring
2022-08-09 15:59     ` Rob Herring
2022-08-09 16:29       ` Pali Rohár
2022-08-09 17:06         ` Rob Herring
2022-08-09 17:47           ` Pali Rohár
2022-09-05 17:02             ` Pali Rohár

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