devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCHv1 0/5] Use the mvebu PCIe driver on Kirkwood
@ 2013-03-27 18:04 Thomas Petazzoni
  2013-03-27 18:05 ` [RFC PATCHv1 1/5] pci: mvebu: enable driver usage " Thomas Petazzoni
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2013-03-27 18:04 UTC (permalink / raw)
  To: Bjorn Helgaas, Grant Likely, Russell King
  Cc: linux-pci, linux-arm-kernel, devicetree-discuss, Lior Amsalem,
	Andrew Lunn, Jason Cooper, Arnd Bergmann, Maen Suleiman,
	Thierry Reding, Gregory Clement, Ezequiel Garcia, Olof Johansson,
	Tawfik Bayouk, Jason Gunthorpe, Mitch Bradley, Andrew Murray

Hello,

Here is a set of five patches that demonstrate that the mvebu PCIe
driver can be used on Kirkwood with no modification at all. Those
patches are not meant to be applied yet, the Device Trees are not
completely correct yet (they don't take into account the fact that
6281 has one PCIe interface and 6282 has two PCIe interface).

It took less than two hours to enable PCIe on Kirkwood (and in those
two hours, the conversion of the DB-88F6281 board to the Device Tree
has been done as well), and the result works fine:

# /usr/sbin/lspci
00:01.0 PCI bridge: Marvell Technology Group Ltd. Device 7846
00:02.0 PCI bridge: Marvell Technology Group Ltd. Device 7846
01:00.0 SCSI storage controller: Marvell Technology Group Ltd. 88SX7042 PCI-e 4-port SATA-II (rev 02)
02:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet Controller (Copper) (rev 06)

# cat /proc/cpuinfo | grep ^Hardware
Hardware	: Marvell Kirkwood (Flattened Device Tree)

I've tested both the e1000e NIC card and the SATA 4 ports card and
they work fine.

Best regards,

Thomas

Thomas Petazzoni (5):
  pci: mvebu: enable driver usage on Kirkwood
  bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood
  arm: mach-kirkwood: seperate PCIe window init from other windows
  arm: kirkwood: add SoC-level Device Tree data for PCIe interfaces
  arm: kirkwood: convert db-88f6281 to the Device Tree

 .../devicetree/bindings/pci/mvebu-pci.txt          |    1 +
 arch/arm/boot/dts/Makefile                         |    1 +
 arch/arm/boot/dts/kirkwood-db-88f6281.dts          |   96 +++++++++++++++++
 arch/arm/boot/dts/kirkwood.dtsi                    |   49 +++++++++
 arch/arm/mach-kirkwood/Kconfig                     |   12 +--
 arch/arm/mach-kirkwood/Makefile                    |    2 +-
 arch/arm/mach-kirkwood/board-db88f6281-bp.c        |   26 +++++
 arch/arm/mach-kirkwood/board-dt.c                  |   11 ++
 arch/arm/mach-kirkwood/common.c                    |    7 +-
 arch/arm/mach-kirkwood/common.h                    |    7 ++
 arch/arm/mach-kirkwood/db88f6281-bp-setup.c        |  108 --------------------
 drivers/bus/mvebu-mbus.c                           |    2 +-
 drivers/pci/host/Kconfig                           |    2 +-
 drivers/pci/host/pci-mvebu.c                       |    1 +
 14 files changed, 207 insertions(+), 118 deletions(-)
 create mode 100644 arch/arm/boot/dts/kirkwood-db-88f6281.dts
 create mode 100644 arch/arm/mach-kirkwood/board-db88f6281-bp.c
 delete mode 100644 arch/arm/mach-kirkwood/db88f6281-bp-setup.c

-- 
1.7.9.5

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

end of thread, other threads:[~2013-04-03 11:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-27 18:04 [RFC PATCHv1 0/5] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
2013-03-27 18:05 ` [RFC PATCHv1 1/5] pci: mvebu: enable driver usage " Thomas Petazzoni
2013-03-27 18:05 ` [RFC PATCHv1 2/5] bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood Thomas Petazzoni
2013-04-03 10:52   ` Thomas Petazzoni
2013-04-03 10:57     ` Jason Cooper
2013-04-03 11:05       ` Thomas Petazzoni
2013-03-27 18:05 ` [RFC PATCHv1 3/5] arm: mach-kirkwood: seperate PCIe window init from other windows Thomas Petazzoni
2013-03-27 18:35   ` Jason Gunthorpe
2013-03-27 20:17     ` Thomas Petazzoni
2013-03-27 18:05 ` [RFC PATCHv1 4/5] arm: kirkwood: add SoC-level Device Tree data for PCIe interfaces Thomas Petazzoni
2013-03-27 18:05 ` [RFC PATCHv1 5/5] arm: kirkwood: convert db-88f6281 to the Device Tree Thomas Petazzoni
2013-03-27 18:07 ` [RFC PATCHv1 0/5] Use the mvebu PCIe driver on Kirkwood Arnd Bergmann
2013-03-27 18:11   ` Thomas Petazzoni
2013-03-27 18:18     ` Thomas Petazzoni

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