From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 00/10] Use the mvebu PCIe driver on Kirkwood
Date: Sat, 13 Apr 2013 15:14:36 +0200 [thread overview]
Message-ID: <20130413131436.GL2824@lunn.ch> (raw)
In-Reply-To: <1365632436-25367-1-git-send-email-thomas.petazzoni@free-electrons.com>
On Thu, Apr 11, 2013 at 12:20:26AM +0200, Thomas Petazzoni wrote:
> Hello,
>
> Here is a set of patches that migrates adds support for Kirkwood
> platforms to use the mvebu PCIe driver. All the Kirkwood platforms
> that have already been converted to the Device Tree are converted to
> use the new driver, and the DB-88F6281 evaluation board from Marvell
> is also converted to the Device Tree and the usage of the new PCIe
> driver.
>
> Only non-DT platforms continue to use the legacy code in
> arch/arm/mach-kirkwood/pcie.c.
>
> This branch depends on the mvebu-mbus driver and the mvebu-pcie
> driver. I have pushed this branch to the following Git repository for
> easier testing:
>
> https://github.com/MISL-EBU-System-SW/mainline-public/tree/kirkwood-dt
>
> # /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.
>
> Changes between v1 and v2:
>
> * Remove the 'needs_pcie_win' logic, and instead move the static
> initialization of PCIe windows into the legacy PCIe code, for the
> platforms that will still be using it. Platforms that will use the
> new PCIe driver benefit directly from dynamic allocation of PCIe
> windows.
>
> * Move the PCIe interface definitions from kirkwood.dtsi to
> kirkwood-6281.dtsi and kirkwood-6282.dtsi to take into account the
> fact that the 6281 has one PCIe interface, and the 6282 has two of
> them.
>
> * Convert all DT-platforms that were initializing PCIe using the
> legacy driver to use the DT to initialize the PCIe interface. This
> includes the Iomega Iconnect, the MPL CEC4, the ZyXEL NSA310and the
> QNAP TS219.
>
> * Fix the conversion to the Device Tree of the DB-88F6181/6282
> board. We now have two Device Trees, one for the 6281 variant of
> the board (one PCIe interface) and another for the 6282 variant of
> the board (two PCIe interfaces).
>
> * Update the defconfig with PCIe driver enabled and some board
> updates.
>
> Best regards,
>
> Thomas
>
> Thomas Petazzoni (10):
> pci: mvebu: enable driver usage on Kirkwood
> bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood
> arm: kirkwood: move PCIe window init to legacy driver
> arm: kirkwood: add SoC-level Device Tree data for PCIe interfaces
> arm: kirkwood: convert Iomega Iconnect to use DT for the PCIe
> interface
> arm: kirkwood: convert MPL CEC4 to use DT for the PCIe interface
> arm: kirkwood: convert ZyXEL NSA310 to use DT for the PCIe interface
> arm: kirkwood: convert QNAP TS219 to use DT for the PCIe interface
> arm: kirkwood: convert db-88f6281 to the Device Tree
> arm: kirkwood: update defconfig with PCIe driver and board updates
>
> .../devicetree/bindings/pci/mvebu-pci.txt | 1 +
> arch/arm/boot/dts/Makefile | 5 +-
> arch/arm/boot/dts/kirkwood-6281.dtsi | 31 ++++++
> arch/arm/boot/dts/kirkwood-6282.dtsi | 48 +++++++++
> arch/arm/boot/dts/kirkwood-db-88f6281.dts | 30 ++++++
> arch/arm/boot/dts/kirkwood-db-88f6282.dts | 34 ++++++
> arch/arm/boot/dts/kirkwood-db.dtsi | 89 ++++++++++++++++
> arch/arm/boot/dts/kirkwood-iconnect.dts | 8 ++
> arch/arm/boot/dts/kirkwood-mplcec4.dts | 8 ++
> arch/arm/boot/dts/kirkwood-nsa310.dts | 8 ++
> arch/arm/boot/dts/kirkwood-ts219.dtsi | 7 ++
> arch/arm/boot/dts/kirkwood.dtsi | 1 +
> arch/arm/configs/kirkwood_defconfig | 6 +-
> arch/arm/mach-kirkwood/Kconfig | 21 ++--
> arch/arm/mach-kirkwood/Makefile | 3 +-
> arch/arm/mach-kirkwood/board-db88f6281-bp.c | 26 +++++
> arch/arm/mach-kirkwood/board-dt.c | 2 +
> arch/arm/mach-kirkwood/board-iconnect.c | 8 --
> arch/arm/mach-kirkwood/board-mplcec4.c | 1 -
> arch/arm/mach-kirkwood/board-nsa310.c | 25 -----
> arch/arm/mach-kirkwood/board-ts219.c | 10 --
> arch/arm/mach-kirkwood/common.c | 24 -----
> arch/arm/mach-kirkwood/common.h | 6 ++
> arch/arm/mach-kirkwood/db88f6281-bp-setup.c | 108 --------------------
> arch/arm/mach-kirkwood/pcie.c | 22 ++++
> drivers/bus/mvebu-mbus.c | 2 +-
> drivers/pci/host/Kconfig | 2 +-
> drivers/pci/host/pci-mvebu.c | 1 +
> 28 files changed, 339 insertions(+), 198 deletions(-)
> create mode 100644 arch/arm/boot/dts/kirkwood-db-88f6281.dts
> create mode 100644 arch/arm/boot/dts/kirkwood-db-88f6282.dts
> create mode 100644 arch/arm/boot/dts/kirkwood-db.dtsi
> create mode 100644 arch/arm/mach-kirkwood/board-db88f6281-bp.c
> delete mode 100644 arch/arm/mach-kirkwood/board-nsa310.c
> delete mode 100644 arch/arm/mach-kirkwood/db88f6281-bp-setup.c
>
> --
> 1.7.9.5
>
Hi Thomas
So i tested on QNAP and Topkick. Neither of which actually have any
PCI devices on the busses. So you can add my some what worthless:
Tested-by: Andrew Lunn <andrew@lunn.ch>
Andrew
prev parent reply other threads:[~2013-04-13 13:14 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-10 22:20 [PATCHv2 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
2013-04-10 22:20 ` [PATCHv2 01/10] pci: mvebu: enable driver usage " Thomas Petazzoni
2013-04-10 22:20 ` [PATCHv2 02/10] bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood Thomas Petazzoni
2013-04-11 17:14 ` Jason Cooper
2013-04-10 22:20 ` [PATCHv2 03/10] arm: kirkwood: move PCIe window init to legacy driver Thomas Petazzoni
2013-04-10 22:20 ` [PATCHv2 04/10] arm: kirkwood: add SoC-level Device Tree data for PCIe interfaces Thomas Petazzoni
2013-04-13 10:30 ` Andrew Lunn
2013-04-13 14:04 ` Thomas Petazzoni
2013-04-13 19:04 ` Jason Cooper
2013-04-10 22:20 ` [PATCHv2 05/10] arm: kirkwood: convert Iomega Iconnect to use DT for the PCIe interface Thomas Petazzoni
2013-04-10 22:20 ` [PATCHv2 06/10] arm: kirkwood: convert MPL CEC4 " Thomas Petazzoni
2013-04-10 22:20 ` [PATCHv2 07/10] arm: kirkwood: convert ZyXEL NSA310 " Thomas Petazzoni
2013-04-10 22:20 ` [PATCHv2 08/10] arm: kirkwood: convert QNAP TS219 " Thomas Petazzoni
2013-04-11 0:33 ` Jason Cooper
2013-04-11 5:24 ` Andrew Lunn
2013-04-11 16:51 ` Jason Gunthorpe
2013-04-13 9:26 ` Andrew Lunn
2013-04-13 10:40 ` Thomas Petazzoni
2013-04-11 19:45 ` Andrew Lunn
2013-04-11 19:33 ` Andrew Lunn
2013-04-13 10:36 ` Andrew Lunn
2013-04-13 11:03 ` [PATCH] " Andrew Lunn
2013-04-10 22:20 ` [PATCHv2 09/10] arm: kirkwood: convert db-88f6281 to the Device Tree Thomas Petazzoni
2013-04-10 22:20 ` [PATCHv2 10/10] arm: kirkwood: update defconfig with PCIe driver and board updates Thomas Petazzoni
2013-04-13 13:14 ` Andrew Lunn [this message]
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=20130413131436.GL2824@lunn.ch \
--to=andrew@lunn.ch \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.