* [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood
@ 2013-04-13 14:56 Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 01/10] pci: mvebu: enable driver usage " Thomas Petazzoni
` (10 more replies)
0 siblings, 11 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
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-pcie-dt-v3
# /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 v2 and v3:
* Integrate a replacement patch from Andrew Lunn for the QNAP changes
after he tested on his hardware platform.
* Add Andrew Lunn Tested-by tags on the appropriate patches.
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-6281.dts | 3 +-
arch/arm/boot/dts/kirkwood-ts219-6282.dts | 3 +-
arch/arm/boot/dts/kirkwood-ts219.dtsi | 9 +-
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 +
30 files changed, 343 insertions(+), 202 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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCHv3 01/10] pci: mvebu: enable driver usage on Kirkwood
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-15 15:11 ` Bjorn Helgaas
2013-04-13 14:56 ` [PATCHv3 02/10] bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood Thomas Petazzoni
` (9 subsequent siblings)
10 siblings, 1 reply; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
We allow the pci-mvebu driver to be compiled on the Kirkwood platform,
and add the 'marvell,kirkwood-pcie' as a compatible string supported
by the driver.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
---
.../devicetree/bindings/pci/mvebu-pci.txt | 1 +
drivers/pci/host/Kconfig | 2 +-
drivers/pci/host/pci-mvebu.c | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/pci/mvebu-pci.txt b/Documentation/devicetree/bindings/pci/mvebu-pci.txt
index eb69d92..f8d4058 100644
--- a/Documentation/devicetree/bindings/pci/mvebu-pci.txt
+++ b/Documentation/devicetree/bindings/pci/mvebu-pci.txt
@@ -4,6 +4,7 @@ Mandatory properties:
- compatible: one of the following values:
marvell,armada-370-pcie
marvell,armada-xp-pcie
+ marvell,kirkwood-pcie
- #address-cells, set to <3>
- #size-cells, set to <2>
- #interrupt-cells, set to <1>
diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
index 6918fbc..1f1d67f 100644
--- a/drivers/pci/host/Kconfig
+++ b/drivers/pci/host/Kconfig
@@ -3,6 +3,6 @@ menu "PCI host controller drivers"
config PCI_MVEBU
bool "Marvell EBU PCIe controller"
- depends on ARCH_MVEBU
+ depends on ARCH_MVEBU || ARCH_KIRKWOOD
endmenu
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index 9c15a25..a083d19 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -853,6 +853,7 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
static const struct of_device_id mvebu_pcie_of_match_table[] = {
{ .compatible = "marvell,armada-xp-pcie", },
{ .compatible = "marvell,armada-370-pcie", },
+ { .compatible = "marvell,kirkwood-pcie", },
{},
};
MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 02/10] bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 01/10] pci: mvebu: enable driver usage " Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 03/10] arm: kirkwood: move PCIe window init to legacy driver Thomas Petazzoni
` (8 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
The target and attributes for the PCIe address decoding windows were
not correct on Kirkwood for the second PCIe interface.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
---
Note: this patch should be merged with the existing mvebu-mbus driver.
---
drivers/bus/mvebu-mbus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c
index 586d03e..4de2c6b 100644
--- a/drivers/bus/mvebu-mbus.c
+++ b/drivers/bus/mvebu-mbus.c
@@ -626,7 +626,7 @@ static const struct mvebu_mbus_soc_data armada_xp_mbus_data = {
static const struct mvebu_mbus_mapping kirkwood_map[] = {
MAPDEF("pcie0.0", 4, 0xe0, MAPDEF_PCIMASK),
- MAPDEF("pcie1.0", 8, 0xe0, MAPDEF_PCIMASK),
+ MAPDEF("pcie1.0", 4, 0xd0, MAPDEF_PCIMASK),
MAPDEF("sram", 3, 0x01, MAPDEF_NOMASK),
MAPDEF("nand", 1, 0x2f, MAPDEF_NOMASK),
{},
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 03/10] arm: kirkwood: move PCIe window init to legacy driver
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 01/10] pci: mvebu: enable driver usage " Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 02/10] bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 04/10] arm: kirkwood: add SoC-level Device Tree data for PCIe interfaces Thomas Petazzoni
` (7 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
Since we are going to enable the usage of the mvebu PCIe driver on
Kirkwood, we don't want the PCIe windows to be unconditionally created
by kirkwood_setup_wins(). Therefore, we move the PCIe window
initialization into the legacy PCIe driver
(arch/arm/mach-kirkwood/pcie.c).
The platforms using the legacy driver will see their windows
statically allocated by
arch/arm/mach-kirkwood/pcie.c:kirkwood_pcie_init(). The platforms
using the new driver in drivers/pci/ will see their windows
dynamically allocated directly by the driver.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
---
arch/arm/mach-kirkwood/common.c | 24 ------------------------
arch/arm/mach-kirkwood/pcie.c | 22 ++++++++++++++++++++++
2 files changed, 22 insertions(+), 24 deletions(-)
diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
index c2cae69..9b0b901 100644
--- a/arch/arm/mach-kirkwood/common.c
+++ b/arch/arm/mach-kirkwood/common.c
@@ -654,30 +654,6 @@ char * __init kirkwood_id(void)
void __init kirkwood_setup_wins(void)
{
- /*
- * The PCIe windows will no longer be statically allocated
- * here once Kirkwood is migrated to the pci-mvebu driver.
- */
- mvebu_mbus_add_window_remap_flags("pcie0.0",
- KIRKWOOD_PCIE_IO_PHYS_BASE,
- KIRKWOOD_PCIE_IO_SIZE,
- KIRKWOOD_PCIE_IO_BUS_BASE,
- MVEBU_MBUS_PCI_IO);
- mvebu_mbus_add_window_remap_flags("pcie0.0",
- KIRKWOOD_PCIE_MEM_PHYS_BASE,
- KIRKWOOD_PCIE_MEM_SIZE,
- MVEBU_MBUS_NO_REMAP,
- MVEBU_MBUS_PCI_MEM);
- mvebu_mbus_add_window_remap_flags("pcie1.0",
- KIRKWOOD_PCIE1_IO_PHYS_BASE,
- KIRKWOOD_PCIE1_IO_SIZE,
- KIRKWOOD_PCIE1_IO_BUS_BASE,
- MVEBU_MBUS_PCI_IO);
- mvebu_mbus_add_window_remap_flags("pcie1.0",
- KIRKWOOD_PCIE1_MEM_PHYS_BASE,
- KIRKWOOD_PCIE1_MEM_SIZE,
- MVEBU_MBUS_NO_REMAP,
- MVEBU_MBUS_PCI_MEM);
mvebu_mbus_add_window("nand", KIRKWOOD_NAND_MEM_PHYS_BASE,
KIRKWOOD_NAND_MEM_SIZE);
mvebu_mbus_add_window("sram", KIRKWOOD_SRAM_PHYS_BASE,
diff --git a/arch/arm/mach-kirkwood/pcie.c b/arch/arm/mach-kirkwood/pcie.c
index 7f43e6c..ddcb09f 100644
--- a/arch/arm/mach-kirkwood/pcie.c
+++ b/arch/arm/mach-kirkwood/pcie.c
@@ -12,6 +12,7 @@
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/clk.h>
+#include <linux/mbus.h>
#include <video/vga.h>
#include <asm/irq.h>
#include <asm/mach/pci.h>
@@ -253,6 +254,27 @@ static void __init add_pcie_port(int index, void __iomem *base)
void __init kirkwood_pcie_init(unsigned int portmask)
{
+ mvebu_mbus_add_window_remap_flags("pcie0.0",
+ KIRKWOOD_PCIE_IO_PHYS_BASE,
+ KIRKWOOD_PCIE_IO_SIZE,
+ KIRKWOOD_PCIE_IO_BUS_BASE,
+ MVEBU_MBUS_PCI_IO);
+ mvebu_mbus_add_window_remap_flags("pcie0.0",
+ KIRKWOOD_PCIE_MEM_PHYS_BASE,
+ KIRKWOOD_PCIE_MEM_SIZE,
+ MVEBU_MBUS_NO_REMAP,
+ MVEBU_MBUS_PCI_MEM);
+ mvebu_mbus_add_window_remap_flags("pcie1.0",
+ KIRKWOOD_PCIE1_IO_PHYS_BASE,
+ KIRKWOOD_PCIE1_IO_SIZE,
+ KIRKWOOD_PCIE1_IO_BUS_BASE,
+ MVEBU_MBUS_PCI_IO);
+ mvebu_mbus_add_window_remap_flags("pcie1.0",
+ KIRKWOOD_PCIE1_MEM_PHYS_BASE,
+ KIRKWOOD_PCIE1_MEM_SIZE,
+ MVEBU_MBUS_NO_REMAP,
+ MVEBU_MBUS_PCI_MEM);
+
vga_base = KIRKWOOD_PCIE_MEM_PHYS_BASE;
if (portmask & KW_PCIE0)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 04/10] arm: kirkwood: add SoC-level Device Tree data for PCIe interfaces
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
` (2 preceding siblings ...)
2013-04-13 14:56 ` [PATCHv3 03/10] arm: kirkwood: move PCIe window init to legacy driver Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 05/10] arm: kirkwood: convert Iomega Iconnect to use DT for the PCIe interface Thomas Petazzoni
` (6 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
This commit adds Device Tree details to enable the PCIe interfaces on
Kirkwood. The 6281 has one PCIe interface, the 6282 has two PCIe
interfaces.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
---
arch/arm/boot/dts/kirkwood-6281.dtsi | 31 ++++++++++++++++++++++
arch/arm/boot/dts/kirkwood-6282.dtsi | 48 ++++++++++++++++++++++++++++++++++
arch/arm/boot/dts/kirkwood.dtsi | 1 +
3 files changed, 80 insertions(+)
diff --git a/arch/arm/boot/dts/kirkwood-6281.dtsi b/arch/arm/boot/dts/kirkwood-6281.dtsi
index d6c9d65..5137668 100644
--- a/arch/arm/boot/dts/kirkwood-6281.dtsi
+++ b/arch/arm/boot/dts/kirkwood-6281.dtsi
@@ -40,5 +40,36 @@
marvell,function = "sdio";
};
};
+
+ pcie-controller {
+ compatible = "marvell,kirkwood-pcie";
+ status = "disabled";
+ device_type = "pci";
+
+ #address-cells = <3>;
+ #size-cells = <2>;
+
+ bus-range = <0x00 0xff>;
+
+ ranges = <0x82000000 0 0x00040000 0x00040000 0 0x00002000 /* Port 0.0 registers */
+ 0x82000000 0 0xe0000000 0xe0000000 0 0x08000000 /* non-prefetchable memory */
+ 0x81000000 0 0 0xe8000000 0 0x00100000>; /* downstream I/O */
+
+ pcie at 1,0 {
+ device_type = "pci";
+ assigned-addresses = <0x82000800 0 0x00040000 0 0x2000>;
+ reg = <0x0800 0 0 0 0>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ #interrupt-cells = <1>;
+ ranges;
+ interrupt-map-mask = <0 0 0 0>;
+ interrupt-map = <0 0 0 0 &intc 9>;
+ marvell,pcie-port = <0>;
+ marvell,pcie-lane = <0>;
+ clocks = <&gate_clk 2>;
+ status = "disabled";
+ };
+ };
};
};
diff --git a/arch/arm/boot/dts/kirkwood-6282.dtsi b/arch/arm/boot/dts/kirkwood-6282.dtsi
index 192cf76..00a698e 100644
--- a/arch/arm/boot/dts/kirkwood-6282.dtsi
+++ b/arch/arm/boot/dts/kirkwood-6282.dtsi
@@ -59,5 +59,53 @@
clocks = <&gate_clk 7>;
status = "disabled";
};
+
+ pcie-controller {
+ compatible = "marvell,kirkwood-pcie";
+ status = "disabled";
+ device_type = "pci";
+
+ #address-cells = <3>;
+ #size-cells = <2>;
+
+ bus-range = <0x00 0xff>;
+
+ ranges = <0x82000000 0 0x00040000 0x00040000 0 0x00002000 /* Port 0.0 registers */
+ 0x82000000 0 0x00044000 0x00044000 0 0x00002000 /* Port 1.0 registers */
+ 0x82000000 0 0xe0000000 0xe0000000 0 0x08000000 /* non-prefetchable memory */
+ 0x81000000 0 0 0xe8000000 0 0x00100000>; /* downstream I/O */
+
+ pcie at 1,0 {
+ device_type = "pci";
+ assigned-addresses = <0x82000800 0 0x00040000 0 0x2000>;
+ reg = <0x0800 0 0 0 0>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ #interrupt-cells = <1>;
+ ranges;
+ interrupt-map-mask = <0 0 0 0>;
+ interrupt-map = <0 0 0 0 &intc 9>;
+ marvell,pcie-port = <0>;
+ marvell,pcie-lane = <0>;
+ clocks = <&gate_clk 2>;
+ status = "disabled";
+ };
+
+ pcie at 2,0 {
+ device_type = "pci";
+ assigned-addresses = <0x82001000 0 0x00044000 0 0x2000>;
+ reg = <0x1000 0 0 0 0>;
+ #address-cells = <3>;
+ #size-cells = <2>;
+ #interrupt-cells = <1>;
+ ranges;
+ interrupt-map-mask = <0 0 0 0>;
+ interrupt-map = <0 0 0 0 &intc 10>;
+ marvell,pcie-port = <1>;
+ marvell,pcie-lane = <0>;
+ clocks = <&gate_clk 18>;
+ status = "disabled";
+ };
+ };
};
};
diff --git a/arch/arm/boot/dts/kirkwood.dtsi b/arch/arm/boot/dts/kirkwood.dtsi
index 2c738d9..8aae1cf 100644
--- a/arch/arm/boot/dts/kirkwood.dtsi
+++ b/arch/arm/boot/dts/kirkwood.dtsi
@@ -19,6 +19,7 @@
ocp at f1000000 {
compatible = "simple-bus";
ranges = <0x00000000 0xf1000000 0x4000000
+ 0xe0000000 0xe0000000 0x8100000 /* PCIE */
0xf5000000 0xf5000000 0x0000400>;
#address-cells = <1>;
#size-cells = <1>;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 05/10] arm: kirkwood: convert Iomega Iconnect to use DT for the PCIe interface
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
` (3 preceding siblings ...)
2013-04-13 14:56 ` [PATCHv3 04/10] arm: kirkwood: add SoC-level Device Tree data for PCIe interfaces Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 06/10] arm: kirkwood: convert MPL CEC4 " Thomas Petazzoni
` (5 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
Now that the PCIe mvebu driver is usable on Kirkwood, use it instead
of the legacy PCIe code, since it allows to describe the PCIe
interfaces in the Device Tree.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/boot/dts/kirkwood-iconnect.dts | 8 ++++++++
arch/arm/mach-kirkwood/board-iconnect.c | 8 --------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/arch/arm/boot/dts/kirkwood-iconnect.dts b/arch/arm/boot/dts/kirkwood-iconnect.dts
index 504f16b..4c8f0df 100644
--- a/arch/arm/boot/dts/kirkwood-iconnect.dts
+++ b/arch/arm/boot/dts/kirkwood-iconnect.dts
@@ -110,6 +110,14 @@
reg = <0x980000 0x1f400000>;
};
};
+
+ pcie-controller {
+ status = "okay";
+
+ pcie at 1,0 {
+ status = "okay";
+ };
+ };
};
gpio-leds {
diff --git a/arch/arm/mach-kirkwood/board-iconnect.c b/arch/arm/mach-kirkwood/board-iconnect.c
index c8ebde4..98b5ad1 100644
--- a/arch/arm/mach-kirkwood/board-iconnect.c
+++ b/arch/arm/mach-kirkwood/board-iconnect.c
@@ -22,11 +22,3 @@ void __init iconnect_init(void)
{
kirkwood_ge00_init(&iconnect_ge00_data);
}
-
-static int __init iconnect_pci_init(void)
-{
- if (of_machine_is_compatible("iom,iconnect"))
- kirkwood_pcie_init(KW_PCIE0);
- return 0;
-}
-subsys_initcall(iconnect_pci_init);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 06/10] arm: kirkwood: convert MPL CEC4 to use DT for the PCIe interface
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
` (4 preceding siblings ...)
2013-04-13 14:56 ` [PATCHv3 05/10] arm: kirkwood: convert Iomega Iconnect to use DT for the PCIe interface Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 07/10] arm: kirkwood: convert ZyXEL NSA310 " Thomas Petazzoni
` (4 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
Now that the PCIe mvebu driver is usable on Kirkwood, use it instead
of the legacy PCIe code, since it allows to describe the PCIe
interfaces in the Device Tree.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/boot/dts/kirkwood-mplcec4.dts | 8 ++++++++
arch/arm/mach-kirkwood/board-mplcec4.c | 1 -
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/kirkwood-mplcec4.dts b/arch/arm/boot/dts/kirkwood-mplcec4.dts
index 662dfd8..080f28e 100644
--- a/arch/arm/boot/dts/kirkwood-mplcec4.dts
+++ b/arch/arm/boot/dts/kirkwood-mplcec4.dts
@@ -140,6 +140,14 @@
cd-gpios = <&gpio1 15 0>;
/* No WP GPIO */
};
+
+ pcie-controller {
+ status = "okay";
+
+ pcie at 1,0 {
+ status = "okay";
+ };
+ };
};
gpio-leds {
diff --git a/arch/arm/mach-kirkwood/board-mplcec4.c b/arch/arm/mach-kirkwood/board-mplcec4.c
index 7d6dc66..938712e 100644
--- a/arch/arm/mach-kirkwood/board-mplcec4.c
+++ b/arch/arm/mach-kirkwood/board-mplcec4.c
@@ -29,7 +29,6 @@ void __init mplcec4_init(void)
*/
kirkwood_ge00_init(&mplcec4_ge00_data);
kirkwood_ge01_init(&mplcec4_ge01_data);
- kirkwood_pcie_init(KW_PCIE0);
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 07/10] arm: kirkwood: convert ZyXEL NSA310 to use DT for the PCIe interface
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
` (5 preceding siblings ...)
2013-04-13 14:56 ` [PATCHv3 06/10] arm: kirkwood: convert MPL CEC4 " Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 08/10] arm: kirkwood: convert QNAP TS219 " Thomas Petazzoni
` (3 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
Now that the PCIe mvebu driver is usable on Kirkwood, use it instead
of the legacy PCIe code, since it allows to describe the PCIe
interfaces in the Device Tree.
Since it was the only device left that prevented this platform to use
the Device Tree only, we remove the board-nsa310.c file and the
related Kconfig/Makefile bits.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/boot/dts/kirkwood-nsa310.dts | 8 ++++++++
arch/arm/mach-kirkwood/Kconfig | 8 --------
arch/arm/mach-kirkwood/Makefile | 1 -
arch/arm/mach-kirkwood/board-nsa310.c | 25 -------------------------
4 files changed, 8 insertions(+), 34 deletions(-)
delete mode 100644 arch/arm/mach-kirkwood/board-nsa310.c
diff --git a/arch/arm/boot/dts/kirkwood-nsa310.dts b/arch/arm/boot/dts/kirkwood-nsa310.dts
index 3a178cf..1cd15ba 100644
--- a/arch/arm/boot/dts/kirkwood-nsa310.dts
+++ b/arch/arm/boot/dts/kirkwood-nsa310.dts
@@ -177,6 +177,14 @@
reg = <0x5040000 0x2fc0000>;
};
};
+
+ pcie-controller {
+ status = "okay";
+
+ pcie at 1,0 {
+ status = "okay";
+ };
+ };
};
gpio_keys {
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
index 7b6a64b..1fe5f2f 100644
--- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig
@@ -287,14 +287,6 @@ config MACH_T5325
Say 'Y' here if you want your kernel to support the
HP t5325 Thin Client.
-config MACH_NSA310_DT
- bool "ZyXEL NSA-310 (Flattened Device Tree)"
- select ARCH_KIRKWOOD_DT
- select ARM_ATAG_DTB_COMPAT
- help
- Say 'Y' here if you want your kernel to support the
- ZyXEL NSA-310 board (Flattened Device Tree).
-
endmenu
endif
diff --git a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile
index d805f80..0e5ccad 100644
--- a/arch/arm/mach-kirkwood/Makefile
+++ b/arch/arm/mach-kirkwood/Makefile
@@ -37,6 +37,5 @@ obj-$(CONFIG_MACH_NETSPACE_V2_DT) += board-ns2.o
obj-$(CONFIG_MACH_NETSPACE_MAX_V2_DT) += board-ns2.o
obj-$(CONFIG_MACH_NETSPACE_LITE_V2_DT) += board-ns2.o
obj-$(CONFIG_MACH_NETSPACE_MINI_V2_DT) += board-ns2.o
-obj-$(CONFIG_MACH_NSA310_DT) += board-nsa310.o
obj-$(CONFIG_MACH_OPENBLOCKS_A6_DT) += board-openblocks_a6.o
obj-$(CONFIG_MACH_TOPKICK_DT) += board-usi_topkick.o
diff --git a/arch/arm/mach-kirkwood/board-nsa310.c b/arch/arm/mach-kirkwood/board-nsa310.c
deleted file mode 100644
index 55ade93..0000000
--- a/arch/arm/mach-kirkwood/board-nsa310.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * arch/arm/mach-kirkwood/nsa-310-setup.c
- *
- * ZyXEL NSA-310 Setup
- *
- * This file is licensed under the terms of the GNU General Public
- * License version 2. This program is licensed "as is" without any
- * warranty of any kind, whether express or implied.
- */
-
-#include <linux/kernel.h>
-#include <linux/init.h>
-#include <mach/kirkwood.h>
-#include <linux/of.h>
-#include "common.h"
-
-static int __init nsa310_pci_init(void)
-{
- if (of_machine_is_compatible("zyxel,nsa310"))
- kirkwood_pcie_init(KW_PCIE0);
-
- return 0;
-}
-
-subsys_initcall(nsa310_pci_init);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 08/10] arm: kirkwood: convert QNAP TS219 to use DT for the PCIe interface
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
` (6 preceding siblings ...)
2013-04-13 14:56 ` [PATCHv3 07/10] arm: kirkwood: convert ZyXEL NSA310 " Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 09/10] arm: kirkwood: convert db-88f6281 to the Device Tree Thomas Petazzoni
` (2 subsequent siblings)
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
Now that the PCIe mvebu driver is usable on Kirkwood, use it instead
of the legacy PCIe code, since it allows to describe the PCIe
interfaces in the Device Tree.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Andrew Lunn <andrew@lunn.ch>
---
arch/arm/boot/dts/kirkwood-ts219-6281.dts | 3 ++-
arch/arm/boot/dts/kirkwood-ts219-6282.dts | 3 ++-
arch/arm/boot/dts/kirkwood-ts219.dtsi | 9 +++++++--
arch/arm/mach-kirkwood/board-ts219.c | 10 ----------
4 files changed, 11 insertions(+), 14 deletions(-)
diff --git a/arch/arm/boot/dts/kirkwood-ts219-6281.dts b/arch/arm/boot/dts/kirkwood-ts219-6281.dts
index 8295c83..42648ab 100644
--- a/arch/arm/boot/dts/kirkwood-ts219-6281.dts
+++ b/arch/arm/boot/dts/kirkwood-ts219-6281.dts
@@ -1,7 +1,8 @@
/dts-v1/;
-/include/ "kirkwood-ts219.dtsi"
+/include/ "kirkwood.dtsi"
/include/ "kirkwood-6281.dtsi"
+/include/ "kirkwood-ts219.dtsi"
/ {
ocp at f1000000 {
diff --git a/arch/arm/boot/dts/kirkwood-ts219-6282.dts b/arch/arm/boot/dts/kirkwood-ts219-6282.dts
index df3f95d..95ceeb9 100644
--- a/arch/arm/boot/dts/kirkwood-ts219-6282.dts
+++ b/arch/arm/boot/dts/kirkwood-ts219-6282.dts
@@ -1,7 +1,8 @@
/dts-v1/;
-/include/ "kirkwood-ts219.dtsi"
+/include/ "kirkwood.dtsi"
/include/ "kirkwood-6282.dtsi"
+/include/ "kirkwood-ts219.dtsi"
/ {
ocp at f1000000 {
diff --git a/arch/arm/boot/dts/kirkwood-ts219.dtsi b/arch/arm/boot/dts/kirkwood-ts219.dtsi
index 64ea27c..7c022fd 100644
--- a/arch/arm/boot/dts/kirkwood-ts219.dtsi
+++ b/arch/arm/boot/dts/kirkwood-ts219.dtsi
@@ -1,5 +1,3 @@
-/include/ "kirkwood.dtsi"
-
/ {
model = "QNAP TS219 family";
compatible = "qnap,ts219", "marvell,kirkwood";
@@ -74,5 +72,12 @@
status = "okay";
nr-ports = <2>;
};
+ pcie-controller {
+ status = "okay";
+
+ pcie at 1,0 {
+ status = "okay";
+ };
+ };
};
};
diff --git a/arch/arm/mach-kirkwood/board-ts219.c b/arch/arm/mach-kirkwood/board-ts219.c
index acb0187..4695d5f 100644
--- a/arch/arm/mach-kirkwood/board-ts219.c
+++ b/arch/arm/mach-kirkwood/board-ts219.c
@@ -41,13 +41,3 @@ void __init qnap_dt_ts219_init(void)
pm_power_off = qnap_tsx1x_power_off;
}
-
-/* FIXME: Will not work with DT. Maybe use MPP40_GPIO? */
-static int __init ts219_pci_init(void)
-{
- if (machine_is_ts219())
- kirkwood_pcie_init(KW_PCIE0);
-
- return 0;
-}
-subsys_initcall(ts219_pci_init);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 09/10] arm: kirkwood: convert db-88f6281 to the Device Tree
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
` (7 preceding siblings ...)
2013-04-13 14:56 ` [PATCHv3 08/10] arm: kirkwood: convert QNAP TS219 " Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 10/10] arm: kirkwood: update defconfig with PCIe driver and board updates Thomas Petazzoni
2013-04-17 17:38 ` [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Jason Cooper
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
This commit converts the Marvell DB-88F6281/DB-88F6282 board to the
Device Tree. In fact, the code was supporting two different boards:
one with the 6281 SoC variant, and one with the 6282 SoC variant. The
difference between the two being that the 6281 has one PCIe interface,
and the 6282 has two PCIe interfaces.
In order to handle that with the Device Tree, we create a
'kirkwood-db.dtsi' file that contains the definitions common to both
boards, and 'kirkwood-db-88f6281.dts' and 'kirkwood-db-88f6282.dts'
for the definitions specific to each board. This is similar to what is
done for the QNAP TS219 Kirkwood platform.
We have kept one single Kconfig option, just like it was before.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/boot/dts/Makefile | 5 +-
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/mach-kirkwood/Kconfig | 13 ++--
arch/arm/mach-kirkwood/Makefile | 2 +-
arch/arm/mach-kirkwood/board-db88f6281-bp.c | 26 +++++++
arch/arm/mach-kirkwood/board-dt.c | 2 +
arch/arm/mach-kirkwood/common.h | 6 ++
arch/arm/mach-kirkwood/db88f6281-bp-setup.c | 108 ---------------------------
10 files changed, 199 insertions(+), 116 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/db88f6281-bp-setup.c
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 9c62558..f28a23e 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -51,7 +51,10 @@ dtb-$(CONFIG_ARCH_HIGHBANK) += highbank.dtb \
dtb-$(CONFIG_ARCH_INTEGRATOR) += integratorap.dtb \
integratorcp.dtb
dtb-$(CONFIG_ARCH_LPC32XX) += ea3250.dtb phy3250.dtb
-dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-dns320.dtb \
+dtb-$(CONFIG_ARCH_KIRKWOOD) += \
+ kirkwood-db-88f6281.dtb \
+ kirkwood-db-88f6282.dtb \
+ kirkwood-dns320.dtb \
kirkwood-dns325.dtb \
kirkwood-dockstar.dtb \
kirkwood-dreamplug.dtb \
diff --git a/arch/arm/boot/dts/kirkwood-db-88f6281.dts b/arch/arm/boot/dts/kirkwood-db-88f6281.dts
new file mode 100644
index 0000000..9d777ed
--- /dev/null
+++ b/arch/arm/boot/dts/kirkwood-db-88f6281.dts
@@ -0,0 +1,30 @@
+/*
+ * Marvell DB-88F6281-BP Development Board Setup
+ *
+ * Saeed Bishara <saeed@marvell.com>
+ * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+/dts-v1/;
+
+/include/ "kirkwood-db.dtsi"
+/include/ "kirkwood-6281.dtsi"
+
+/ {
+ model = "Marvell DB-88F6281-BP Development Board";
+ compatible = "marvell,db-88f6281-bp", "marvell,kirkwood-88f6281", "marvell,kirkwood";
+
+ ocp at f1000000 {
+ pcie-controller {
+ status = "okay";
+
+ pcie at 1,0 {
+ status = "okay";
+ };
+ };
+ };
+};
diff --git a/arch/arm/boot/dts/kirkwood-db-88f6282.dts b/arch/arm/boot/dts/kirkwood-db-88f6282.dts
new file mode 100644
index 0000000..f4c8528
--- /dev/null
+++ b/arch/arm/boot/dts/kirkwood-db-88f6282.dts
@@ -0,0 +1,34 @@
+/*
+ * Marvell DB-88F6282-BP Development Board Setup
+ *
+ * Saeed Bishara <saeed@marvell.com>
+ * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+/dts-v1/;
+
+/include/ "kirkwood-db.dtsi"
+/include/ "kirkwood-6282.dtsi"
+
+/ {
+ model = "Marvell DB-88F6282-BP Development Board";
+ compatible = "marvell,db-88f6282-bp", "marvell,kirkwood-88f6282", "marvell,kirkwood";
+
+ ocp at f1000000 {
+ pcie-controller {
+ status = "okay";
+
+ pcie at 1,0 {
+ status = "okay";
+ };
+
+ pcie at 2,0 {
+ status = "okay";
+ };
+ };
+ };
+};
diff --git a/arch/arm/boot/dts/kirkwood-db.dtsi b/arch/arm/boot/dts/kirkwood-db.dtsi
new file mode 100644
index 0000000..c87cfb8
--- /dev/null
+++ b/arch/arm/boot/dts/kirkwood-db.dtsi
@@ -0,0 +1,89 @@
+/*
+ * Marvell DB-{88F6281,88F6282}-BP Development Board Setup
+ *
+ * Saeed Bishara <saeed@marvell.com>
+ * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ *
+ * This file contains the definitions that are common between the 6281
+ * and 6282 variants of the Marvell Kirkwood Development Board.
+ */
+
+/include/ "kirkwood.dtsi"
+
+/ {
+ memory {
+ device_type = "memory";
+ reg = <0x00000000 0x20000000>; /* 512 MB */
+ };
+
+ chosen {
+ bootargs = "console=ttyS0,115200n8 earlyprintk";
+ };
+
+ ocp at f1000000 {
+ pinctrl at 10000 {
+ pmx_sdio_gpios: pmx-sdio-gpios {
+ marvell,pins = "mpp37", "mpp38";
+ marvell,function = "gpio";
+ };
+ };
+
+ serial at 12000 {
+ pinctrl-0 = <&pmx_uart0>;
+ pinctrl-names = "default";
+ clock-frequency = <200000000>;
+ status = "ok";
+ };
+
+ nand at 3000000 {
+ pinctrl-0 = <&pmx_nand>;
+ pinctrl-names = "default";
+ chip-delay = <25>;
+ status = "okay";
+
+ partition at 0 {
+ label = "uboot";
+ reg = <0x0 0x100000>;
+ };
+
+ partition at 100000 {
+ label = "uImage";
+ reg = <0x100000 0x400000>;
+ };
+
+ partition at 500000 {
+ label = "root";
+ reg = <0x500000 0x1fb00000>;
+ };
+ };
+
+ sata at 80000 {
+ nr-ports = <2>;
+ status = "okay";
+ };
+
+ ehci at 50000 {
+ status = "okay";
+ };
+
+ mvsdio at 90000 {
+ pinctrl-0 = <&pmx_sdio_gpios>;
+ pinctrl-names = "default";
+ wp-gpios = <&gpio1 5 0>;
+ cd-gpios = <&gpio1 6 0>;
+ status = "okay";
+ };
+
+ pcie-controller {
+ status = "okay";
+
+ pcie at 1,0 {
+ status = "okay";
+ };
+ };
+ };
+};
diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
index 1fe5f2f..b09afca 100644
--- a/arch/arm/mach-kirkwood/Kconfig
+++ b/arch/arm/mach-kirkwood/Kconfig
@@ -2,12 +2,6 @@ if ARCH_KIRKWOOD
menu "Marvell Kirkwood Implementations"
-config MACH_DB88F6281_BP
- bool "Marvell DB-88F6281-BP Development Board"
- help
- Say 'Y' here if you want your kernel to support the
- Marvell DB-88F6281-BP Development Board.
-
config MACH_RD88F6192_NAS
bool "Marvell RD-88F6192-NAS Reference Board"
help
@@ -58,6 +52,13 @@ config ARCH_KIRKWOOD_DT
Say 'Y' here if you want your kernel to support the
Marvell Kirkwood using flattened device tree.
+config MACH_DB88F6281_BP_DT
+ bool "Marvell DB-88F6281-BP Development Board (Flattened Device Tree)"
+ help
+ Say 'Y' here if you want your kernel to support the Marvell
+ DB-88F6281-BP and DB-88F6282-BP Development Board (Flattened
+ Device Tree).
+
config MACH_GURUPLUG_DT
bool "Marvell GuruPlug Reference Board (Flattened Device Tree)"
select ARCH_KIRKWOOD_DT
diff --git a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile
index 0e5ccad..e6a88ab 100644
--- a/arch/arm/mach-kirkwood/Makefile
+++ b/arch/arm/mach-kirkwood/Makefile
@@ -1,6 +1,5 @@
obj-y += common.o irq.o pcie.o mpp.o
-obj-$(CONFIG_MACH_DB88F6281_BP) += db88f6281-bp-setup.o
obj-$(CONFIG_MACH_RD88F6192_NAS) += rd88f6192-nas-setup.o
obj-$(CONFIG_MACH_RD88F6281) += rd88f6281-setup.o
obj-$(CONFIG_MACH_MV88F6281GTW_GE) += mv88f6281gtw_ge-setup.o
@@ -20,6 +19,7 @@ obj-$(CONFIG_MACH_NET5BIG_V2) += netxbig_v2-setup.o lacie_v2-common.o
obj-$(CONFIG_MACH_T5325) += t5325-setup.o
obj-$(CONFIG_ARCH_KIRKWOOD_DT) += board-dt.o
+obj-$(CONFIG_MACH_DB88F6281_BP_DT) += board-db88f6281-bp.o
obj-$(CONFIG_MACH_DREAMPLUG_DT) += board-dreamplug.o
obj-$(CONFIG_MACH_GURUPLUG_DT) += board-guruplug.o
obj-$(CONFIG_MACH_ICONNECT_DT) += board-iconnect.o
diff --git a/arch/arm/mach-kirkwood/board-db88f6281-bp.c b/arch/arm/mach-kirkwood/board-db88f6281-bp.c
new file mode 100644
index 0000000..bffd160
--- /dev/null
+++ b/arch/arm/mach-kirkwood/board-db88f6281-bp.c
@@ -0,0 +1,26 @@
+/*
+ * arch/arm/mach-kirkwood/db88f6281-bp-setup.c
+ *
+ * Saeed Bishara <saeed@marvell.com>
+ *
+ * Marvell DB-88F6281-BP Development Board Setup
+ *
+ * This file is licensed under the terms of the GNU General Public
+ * License version 2. This program is licensed "as is" without any
+ * warranty of any kind, whether express or implied.
+ */
+
+#include <linux/kernel.h>
+#include <linux/init.h>
+#include <linux/of.h>
+#include <linux/mv643xx_eth.h>
+#include "common.h"
+
+static struct mv643xx_eth_platform_data db88f6281_ge00_data = {
+ .phy_addr = MV643XX_ETH_PHY_ADDR(8),
+};
+
+void __init db88f6281_init(void)
+{
+ kirkwood_ge00_init(&db88f6281_ge00_data);
+}
diff --git a/arch/arm/mach-kirkwood/board-dt.c b/arch/arm/mach-kirkwood/board-dt.c
index ea49476..b6cb807 100644
--- a/arch/arm/mach-kirkwood/board-dt.c
+++ b/arch/arm/mach-kirkwood/board-dt.c
@@ -165,6 +165,8 @@ static const char * const kirkwood_dt_board_compat[] = {
"lacie,netspace_v2",
"lacie,netspace_lite_v2",
"lacie,netspace_mini_v2",
+ "marvell,db-88f6281-bp",
+ "marvell,db-88f6282-bp",
"mpl,cec4",
"plathome,openblocks-a6",
"usi,topkick",
diff --git a/arch/arm/mach-kirkwood/common.h b/arch/arm/mach-kirkwood/common.h
index e24f743..d174ab5 100644
--- a/arch/arm/mach-kirkwood/common.h
+++ b/arch/arm/mach-kirkwood/common.h
@@ -119,6 +119,12 @@ void km_kirkwood_init(void);
static inline void km_kirkwood_init(void) {};
#endif
+#ifdef CONFIG_MACH_DB88F6281_BP_DT
+void db88f6281_init(void);
+#else
+static inline void db88f6281_init(void) {};
+#endif
+
#ifdef CONFIG_MACH_MPLCEC4_DT
void mplcec4_init(void);
#else
diff --git a/arch/arm/mach-kirkwood/db88f6281-bp-setup.c b/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
deleted file mode 100644
index 5a369fe..0000000
--- a/arch/arm/mach-kirkwood/db88f6281-bp-setup.c
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * arch/arm/mach-kirkwood/db88f6281-bp-setup.c
- *
- * Marvell DB-88F6281-BP Development Board Setup
- *
- * This file is licensed under the terms of the GNU General Public
- * License version 2. This program is licensed "as is" without any
- * warranty of any kind, whether express or implied.
- */
-
-#include <linux/kernel.h>
-#include <linux/init.h>
-#include <linux/sizes.h>
-#include <linux/platform_device.h>
-#include <linux/mtd/partitions.h>
-#include <linux/ata_platform.h>
-#include <linux/mv643xx_eth.h>
-#include <asm/mach-types.h>
-#include <asm/mach/arch.h>
-#include <mach/kirkwood.h>
-#include <linux/platform_data/mmc-mvsdio.h>
-#include "common.h"
-#include "mpp.h"
-
-static struct mtd_partition db88f6281_nand_parts[] = {
- {
- .name = "u-boot",
- .offset = 0,
- .size = SZ_1M
- }, {
- .name = "uImage",
- .offset = MTDPART_OFS_NXTBLK,
- .size = SZ_4M
- }, {
- .name = "root",
- .offset = MTDPART_OFS_NXTBLK,
- .size = MTDPART_SIZ_FULL
- },
-};
-
-static struct mv643xx_eth_platform_data db88f6281_ge00_data = {
- .phy_addr = MV643XX_ETH_PHY_ADDR(8),
-};
-
-static struct mv_sata_platform_data db88f6281_sata_data = {
- .n_ports = 2,
-};
-
-static struct mvsdio_platform_data db88f6281_mvsdio_data = {
- .gpio_write_protect = 37,
- .gpio_card_detect = 38,
-};
-
-static unsigned int db88f6281_mpp_config[] __initdata = {
- MPP0_NF_IO2,
- MPP1_NF_IO3,
- MPP2_NF_IO4,
- MPP3_NF_IO5,
- MPP4_NF_IO6,
- MPP5_NF_IO7,
- MPP18_NF_IO0,
- MPP19_NF_IO1,
- MPP37_GPIO,
- MPP38_GPIO,
- 0
-};
-
-static void __init db88f6281_init(void)
-{
- /*
- * Basic setup. Needs to be called early.
- */
- kirkwood_init();
- kirkwood_mpp_conf(db88f6281_mpp_config);
-
- kirkwood_nand_init(ARRAY_AND_SIZE(db88f6281_nand_parts), 25);
- kirkwood_ehci_init();
- kirkwood_ge00_init(&db88f6281_ge00_data);
- kirkwood_sata_init(&db88f6281_sata_data);
- kirkwood_uart0_init();
- kirkwood_sdio_init(&db88f6281_mvsdio_data);
-}
-
-static int __init db88f6281_pci_init(void)
-{
- if (machine_is_db88f6281_bp()) {
- u32 dev, rev;
-
- kirkwood_pcie_id(&dev, &rev);
- if (dev == MV88F6282_DEV_ID)
- kirkwood_pcie_init(KW_PCIE1 | KW_PCIE0);
- else
- kirkwood_pcie_init(KW_PCIE0);
- }
- return 0;
-}
-subsys_initcall(db88f6281_pci_init);
-
-MACHINE_START(DB88F6281_BP, "Marvell DB-88F6281-BP Development Board")
- /* Maintainer: Saeed Bishara <saeed@marvell.com> */
- .atag_offset = 0x100,
- .init_machine = db88f6281_init,
- .map_io = kirkwood_map_io,
- .init_early = kirkwood_init_early,
- .init_irq = kirkwood_init_irq,
- .init_time = kirkwood_timer_init,
- .restart = kirkwood_restart,
-MACHINE_END
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 10/10] arm: kirkwood: update defconfig with PCIe driver and board updates
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
` (8 preceding siblings ...)
2013-04-13 14:56 ` [PATCHv3 09/10] arm: kirkwood: convert db-88f6281 to the Device Tree Thomas Petazzoni
@ 2013-04-13 14:56 ` Thomas Petazzoni
2013-04-17 17:38 ` [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Jason Cooper
10 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-13 14:56 UTC (permalink / raw)
To: linux-arm-kernel
This commit enables the mvebu PCIe driver in kirkwood_defconfig and
updates various options related to Kirkwood boards.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
arch/arm/configs/kirkwood_defconfig | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/configs/kirkwood_defconfig b/arch/arm/configs/kirkwood_defconfig
index 13482ea..c5275ea 100644
--- a/arch/arm/configs/kirkwood_defconfig
+++ b/arch/arm/configs/kirkwood_defconfig
@@ -10,13 +10,13 @@ CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
# CONFIG_BLK_DEV_BSG is not set
CONFIG_ARCH_KIRKWOOD=y
-CONFIG_MACH_DB88F6281_BP=y
CONFIG_MACH_RD88F6192_NAS=y
CONFIG_MACH_RD88F6281=y
CONFIG_MACH_MV88F6281GTW_GE=y
CONFIG_MACH_SHEEVAPLUG=y
CONFIG_MACH_ESATA_SHEEVAPLUG=y
-CONFIG_MACH_GURUPLUG=y
+CONFIG_MACH_DB88F6281_BP_DT=y
+CONFIG_MACH_GURUPLUG_DT=y
CONFIG_MACH_DREAMPLUG_DT=y
CONFIG_MACH_ICONNECT_DT=y
CONFIG_MACH_DLINK_KIRKWOOD_DT=y
@@ -48,8 +48,8 @@ CONFIG_MACH_D2NET_V2=y
CONFIG_MACH_NET2BIG_V2=y
CONFIG_MACH_NET5BIG_V2=y
CONFIG_MACH_T5325=y
-CONFIG_MACH_NSA310_DT=y
# CONFIG_CPU_FEROCEON_OLD_ID is not set
+CONFIG_PCI_MVEBU=y
CONFIG_PREEMPT=y
CONFIG_AEABI=y
# CONFIG_OABI_COMPAT is not set
--
1.7.9.5
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCHv3 01/10] pci: mvebu: enable driver usage on Kirkwood
2013-04-13 14:56 ` [PATCHv3 01/10] pci: mvebu: enable driver usage " Thomas Petazzoni
@ 2013-04-15 15:11 ` Bjorn Helgaas
2013-04-15 15:49 ` Jason Cooper
0 siblings, 1 reply; 15+ messages in thread
From: Bjorn Helgaas @ 2013-04-15 15:11 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, Apr 13, 2013 at 8:56 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> We allow the pci-mvebu driver to be compiled on the Kirkwood platform,
> and add the 'marvell,kirkwood-pcie' as a compatible string supported
> by the driver.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Tested-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
I assume you'll merge this via some tree other than mine.
> ---
> .../devicetree/bindings/pci/mvebu-pci.txt | 1 +
> drivers/pci/host/Kconfig | 2 +-
> drivers/pci/host/pci-mvebu.c | 1 +
> 3 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/pci/mvebu-pci.txt b/Documentation/devicetree/bindings/pci/mvebu-pci.txt
> index eb69d92..f8d4058 100644
> --- a/Documentation/devicetree/bindings/pci/mvebu-pci.txt
> +++ b/Documentation/devicetree/bindings/pci/mvebu-pci.txt
> @@ -4,6 +4,7 @@ Mandatory properties:
> - compatible: one of the following values:
> marvell,armada-370-pcie
> marvell,armada-xp-pcie
> + marvell,kirkwood-pcie
> - #address-cells, set to <3>
> - #size-cells, set to <2>
> - #interrupt-cells, set to <1>
> diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
> index 6918fbc..1f1d67f 100644
> --- a/drivers/pci/host/Kconfig
> +++ b/drivers/pci/host/Kconfig
> @@ -3,6 +3,6 @@ menu "PCI host controller drivers"
>
> config PCI_MVEBU
> bool "Marvell EBU PCIe controller"
> - depends on ARCH_MVEBU
> + depends on ARCH_MVEBU || ARCH_KIRKWOOD
>
> endmenu
> diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
> index 9c15a25..a083d19 100644
> --- a/drivers/pci/host/pci-mvebu.c
> +++ b/drivers/pci/host/pci-mvebu.c
> @@ -853,6 +853,7 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
> static const struct of_device_id mvebu_pcie_of_match_table[] = {
> { .compatible = "marvell,armada-xp-pcie", },
> { .compatible = "marvell,armada-370-pcie", },
> + { .compatible = "marvell,kirkwood-pcie", },
> {},
> };
> MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table);
> --
> 1.7.9.5
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCHv3 01/10] pci: mvebu: enable driver usage on Kirkwood
2013-04-15 15:11 ` Bjorn Helgaas
@ 2013-04-15 15:49 ` Jason Cooper
0 siblings, 0 replies; 15+ messages in thread
From: Jason Cooper @ 2013-04-15 15:49 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Apr 15, 2013 at 09:11:02AM -0600, Bjorn Helgaas wrote:
> On Sat, Apr 13, 2013 at 8:56 AM, Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com> wrote:
> > We allow the pci-mvebu driver to be compiled on the Kirkwood platform,
> > and add the 'marvell,kirkwood-pcie' as a compatible string supported
> > by the driver.
> >
> > Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> > Tested-by: Andrew Lunn <andrew@lunn.ch>
>
> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
>
> I assume you'll merge this via some tree other than mine.
If you don't mind, it'll prevent us from having a nasty cross-tree
dependency and merge-ordering. Any conflicts should be trivial.
thx,
Jason.
> > ---
> > .../devicetree/bindings/pci/mvebu-pci.txt | 1 +
> > drivers/pci/host/Kconfig | 2 +-
> > drivers/pci/host/pci-mvebu.c | 1 +
> > 3 files changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/pci/mvebu-pci.txt b/Documentation/devicetree/bindings/pci/mvebu-pci.txt
> > index eb69d92..f8d4058 100644
> > --- a/Documentation/devicetree/bindings/pci/mvebu-pci.txt
> > +++ b/Documentation/devicetree/bindings/pci/mvebu-pci.txt
> > @@ -4,6 +4,7 @@ Mandatory properties:
> > - compatible: one of the following values:
> > marvell,armada-370-pcie
> > marvell,armada-xp-pcie
> > + marvell,kirkwood-pcie
> > - #address-cells, set to <3>
> > - #size-cells, set to <2>
> > - #interrupt-cells, set to <1>
> > diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig
> > index 6918fbc..1f1d67f 100644
> > --- a/drivers/pci/host/Kconfig
> > +++ b/drivers/pci/host/Kconfig
> > @@ -3,6 +3,6 @@ menu "PCI host controller drivers"
> >
> > config PCI_MVEBU
> > bool "Marvell EBU PCIe controller"
> > - depends on ARCH_MVEBU
> > + depends on ARCH_MVEBU || ARCH_KIRKWOOD
> >
> > endmenu
> > diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
> > index 9c15a25..a083d19 100644
> > --- a/drivers/pci/host/pci-mvebu.c
> > +++ b/drivers/pci/host/pci-mvebu.c
> > @@ -853,6 +853,7 @@ static int __init mvebu_pcie_probe(struct platform_device *pdev)
> > static const struct of_device_id mvebu_pcie_of_match_table[] = {
> > { .compatible = "marvell,armada-xp-pcie", },
> > { .compatible = "marvell,armada-370-pcie", },
> > + { .compatible = "marvell,kirkwood-pcie", },
> > {},
> > };
> > MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table);
> > --
> > 1.7.9.5
> >
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
` (9 preceding siblings ...)
2013-04-13 14:56 ` [PATCHv3 10/10] arm: kirkwood: update defconfig with PCIe driver and board updates Thomas Petazzoni
@ 2013-04-17 17:38 ` Jason Cooper
2013-04-17 18:29 ` Thomas Petazzoni
10 siblings, 1 reply; 15+ messages in thread
From: Jason Cooper @ 2013-04-17 17:38 UTC (permalink / raw)
To: linux-arm-kernel
Thomas, et al.
I applied this series to an experimental branch mvebu-late/pcie. Please
check that everything is kosher. I had to add mvebu/boards as a
dependency since there is a patch in there alphabetizing kirkwood's
Kconfig (and thus _defconfig).
*If* rmk creates a stable branch in time, or drops the patch so we can
take it, this branch will be rebased to fix that. Currently, it depends
on rmk/for-next, which is *not* stable. This is the only public rmk
branch that has the needed patch. :-(
Assuming the above happens, I'll send two PRs, one for the mvebu-pcie
stuff, then one for the kirkwood-pcie stuff.
If the stars align, we're ready. Otherwise, we have everything set to
go into arm-soc early for the next round.
thx,
Jason.
On Sat, Apr 13, 2013 at 04:56:35PM +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-pcie-dt-v3
>
> # /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 v2 and v3:
>
> * Integrate a replacement patch from Andrew Lunn for the QNAP changes
> after he tested on his hardware platform.
>
> * Add Andrew Lunn Tested-by tags on the appropriate patches.
>
> 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-6281.dts | 3 +-
> arch/arm/boot/dts/kirkwood-ts219-6282.dts | 3 +-
> arch/arm/boot/dts/kirkwood-ts219.dtsi | 9 +-
> 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 +
> 30 files changed, 343 insertions(+), 202 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
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood
2013-04-17 17:38 ` [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Jason Cooper
@ 2013-04-17 18:29 ` Thomas Petazzoni
0 siblings, 0 replies; 15+ messages in thread
From: Thomas Petazzoni @ 2013-04-17 18:29 UTC (permalink / raw)
To: linux-arm-kernel
Dear Jason Cooper,
On Wed, 17 Apr 2013 13:38:10 -0400, Jason Cooper wrote:
> I applied this series to an experimental branch mvebu-late/pcie. Please
> check that everything is kosher. I had to add mvebu/boards as a
> dependency since there is a patch in there alphabetizing kirkwood's
> Kconfig (and thus _defconfig).
>
> *If* rmk creates a stable branch in time, or drops the patch so we can
> take it, this branch will be rebased to fix that. Currently, it depends
> on rmk/for-next, which is *not* stable. This is the only public rmk
> branch that has the needed patch. :-(
>
> Assuming the above happens, I'll send two PRs, one for the mvebu-pcie
> stuff, then one for the kirkwood-pcie stuff.
>
> If the stars align, we're ready. Otherwise, we have everything set to
> go into arm-soc early for the next round.
Awesome, thanks a lot for all your work! I'm pretty sure Russell will
soon put the patch in a branch somewhere and it will unblock the
situation.
Thanks again,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2013-04-17 18:29 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-13 14:56 [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 01/10] pci: mvebu: enable driver usage " Thomas Petazzoni
2013-04-15 15:11 ` Bjorn Helgaas
2013-04-15 15:49 ` Jason Cooper
2013-04-13 14:56 ` [PATCHv3 02/10] bus: mvebu: fix mistake in PCIe window target attribute for Kirkwood Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 03/10] arm: kirkwood: move PCIe window init to legacy driver Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 04/10] arm: kirkwood: add SoC-level Device Tree data for PCIe interfaces Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 05/10] arm: kirkwood: convert Iomega Iconnect to use DT for the PCIe interface Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 06/10] arm: kirkwood: convert MPL CEC4 " Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 07/10] arm: kirkwood: convert ZyXEL NSA310 " Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 08/10] arm: kirkwood: convert QNAP TS219 " Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 09/10] arm: kirkwood: convert db-88f6281 to the Device Tree Thomas Petazzoni
2013-04-13 14:56 ` [PATCHv3 10/10] arm: kirkwood: update defconfig with PCIe driver and board updates Thomas Petazzoni
2013-04-17 17:38 ` [PATCHv3 00/10] Use the mvebu PCIe driver on Kirkwood Jason Cooper
2013-04-17 18:29 ` 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).