Re: [RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-20 Thread Ezequiel Garcia
Hi Grant, Arnd, Jason: On Mon, Jul 15, 2013 at 11:57:29AM -0300, Ezequiel Garcia wrote: Here's the new MBus DT binding, implementing the changes proposed by Thomas when we discussed the previous patchset: http://www.spinics.net/lists/arm-kernel/msg257170.html As far as I know

Re: [RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-20 Thread Ezequiel Garcia
Andrew, On Sat, Jul 20, 2013 at 07:38:47PM +0200, Andrew Lunn wrote: On Sat, Jul 20, 2013 at 06:58:55PM +0200, Andrew Lunn wrote: On Mon, Jul 15, 2013 at 11:57:29AM -0300, Ezequiel Garcia wrote: Here's the new MBus DT binding, implementing the changes proposed by Thomas when we discussed

Re: [PATCH] ARM: Kirkwood: Fix the internal register ranges translation

2013-07-18 Thread Ezequiel Garcia
Hi Gerlando, On Wed, Jul 17, 2013 at 08:35:38AM +0200, Gerlando Falauto wrote: On 07/16/2013 02:56 PM, Ezequiel Garcia wrote: [...] Also, speaking of device bus this nand node should be behind a devicebus node. ranges = MBUS_ID(0xf0, 0x01) 0 0 0xf100 0x10

Re: [PATCH] ARM: Kirkwood: Fix the internal register ranges translation

2013-07-18 Thread Ezequiel Garcia
Gerlando, On Tue, Jul 16, 2013 at 08:51:37PM +0200, Gerlando Falauto wrote: [...] Also, speaking of device bus this nand node should be behind a devicebus node. ranges = MBUS_ID(0xf0, 0x01) 0 0 0xf100 0x10 /* internal-regs */

Re: [PATCH 00/10] Orion Watchdog fixes

2013-07-16 Thread Ezequiel Garcia
Hi Thomas, Andrew: Thanks for looking at this! On Tue, Jul 16, 2013 at 09:31:01AM +0200, Andrew Lunn wrote: On Tue, Jul 16, 2013 at 09:20:59AM +0200, Thomas Petazzoni wrote: On Tue, 16 Jul 2013 08:59:52 +0200, Andrew Lunn wrote: Maybe i'm missing something here. You are making use of

Re: [PATCH 00/10] Orion Watchdog fixes

2013-07-16 Thread Ezequiel Garcia
Hi Sebastian, On Tue, Jul 16, 2013 at 09:48:56AM +0200, Sebastian Hesselbarth wrote: In the discussion about orion clocksource Russell was proposing a generic thread-safe write. That puts a single lock around all those writes. Of course, it will also blocked by totally unrelated

Re: [PATCH] ARM: Kirkwood: Fix the internal register ranges translation

2013-07-16 Thread Ezequiel Garcia
Hi Gerlando, On Tue, Jul 16, 2013 at 11:37:30AM +0200, Gerlando Falauto wrote: apologies in advance for commenting on an already-merged patch. Sure, no problem. On 06/18/2013 05:31 PM, Ezequiel Garcia wrote: Although the internal register window size is 1 MiB, the previous ranges

Re: [PATCH 00/10] Orion Watchdog fixes

2013-07-16 Thread Ezequiel Garcia
On Tue, Jul 16, 2013 at 09:44:22AM -0400, Jason Cooper wrote: On Tue, Jul 16, 2013 at 09:14:33AM -0300, Ezequiel Garcia wrote: On the other side, I'm much interested in knowing if you are OK with breaking the watchdog DT compatibility. If you NACK this, then I'll start preparing a different

Re: [PATCH 05/10] watchdog: orion: Add a memory resource for RSTOUT register

2013-07-16 Thread Ezequiel Garcia
Andrew, On Tue, Jul 16, 2013 at 04:04:15PM +0200, Andrew Lunn wrote: On Mon, Jul 15, 2013 at 08:32:38PM -0300, Ezequiel Garcia wrote: Instead of accessing the RSTOUT register directly, this commit adds a platform memory resource to map this register into the driver. Have you looked

[RESEND PATCH v7 03/22] ARM: kirkwood: Move to ID based MBus window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[RESEND PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-15 Thread Ezequiel Garcia
@2 { reg = 0x20a00 0x2d0, 0x21070 0x58; }; }; }; Ezequiel Garcia (12): memory: mvebu-devbus: Remove address decoding window workaround bus: mvebu-mbus: Factor out initialization details bus: mvebu-mbus: Introduce device tree binding bus: mvebu

[RESEND PATCH v7 04/22] ARM: mv78xx0: Move to ID based window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[RESEND PATCH v7 01/22] memory: mvebu-devbus: Remove address decoding window workaround

2013-07-15 Thread Ezequiel Garcia
...@linuxfoundation.org Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/memory/mvebu-devbus.c | 64 ++- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index

[RESEND PATCH v7 07/22] bus: mvebu-mbus: Factor out initialization details

2013-07-15 Thread Ezequiel Garcia
thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c

[RESEND PATCH v7 08/22] bus: mvebu-mbus: Introduce device tree binding

2013-07-15 Thread Ezequiel Garcia
thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 49 include/linux/mbus.h | 1 + 2 files changed, 50 insertions(+) diff --git a/drivers/bus/mvebu-mbus.c b/drivers

[RESEND PATCH v7 06/22] ARM: dove: Move to ID based window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[RESEND PATCH v7 05/22] ARM: orion5x: Move to ID based window creation

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[RESEND PATCH v7 09/22] bus: mvebu-mbus: Add static window allocation to the DT binding

2013-07-15 Thread Ezequiel Garcia
This patch adds static window allocation to the device tree binding. Each first-child of the mbus-compatible node, with a suitable 'ranges' property, declaring an address translation, will trigger an address decoding window allocation. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free

[RESEND PATCH v7 13/22] bus: mvebu-mbus: Remove name - target, attribute mapping tables

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com This tables were used together with the name-based MBus window creation API. Since that's has been removed, we can also remove the tables. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c

[RESEND PATCH v7 12/22] bus: mvebu-mbus: Remove the no longer used name-based API

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com Now that every user of the deprecated name-based API has been converted to using the ID-based API, let's remove the former one. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 38

[RESEND PATCH v7 11/22] PCI: mvebu: Adapt to the new device tree layout

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com The new device tree layout encodes the window's target ID and attribute in the PCIe controller node's ranges property. This allows to parse such entries to obtain such information and use the recently introduced MBus API to create the

[RESEND PATCH v7 19/22] ARM: mvebu: Add MBus to Armada 370/XP device tree

2013-07-15 Thread Ezequiel Garcia
behind the mbus, thus describing the hardware accurately. A translation entry has been added for the internal-regs mapping. This can't be done in the common armada-370-xp.dtsi because A370 and AXP have different addressing width. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com

[RESEND PATCH v7 18/22] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files

2013-07-15 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370-db.dts | 2 +- arch/arm/boot/dts/armada-370-mirabox.dts | 2 +- arch/arm/boot/dts/armada-370-rd.dts | 2 +- arch/arm/boot/dts/armada-370.dtsi| 2

[RESEND PATCH v7 22/22] ARM: mvebu: Relocate Armada 370/XP PCIe device tree nodes

2013-07-15 Thread Ezequiel Garcia
and attribute. Since this depends on the PCIe port, we split the ranges translation entries, to correspond to each MBus window. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370

[RESEND PATCH v7 15/22] bus: mvebu-mbus: Factorize Armada 370/XP data structures

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com These structures were only different in the mapping tables. Now that those tables have been removed, it doesn't make any sense to keep different structures. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com ---

[RESEND PATCH v7 20/22] ARM: mvebu: Add BootROM to Armada 370/XP device tree

2013-07-15 Thread Ezequiel Garcia
In order to access the SoC BootROM, we need to declare a mapping (through a ranges property). The mbus driver will use this property to allocate a suitable address decoding window. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370-db.dts

[RESEND PATCH v7 17/22] ARM: mvebu: Initialize MBus using the DT binding

2013-07-15 Thread Ezequiel Garcia
Now that the mbus device tree binding has been introduced, we can switch over to it. Also, and since the initialization of the mbus driver is quite fundamental for the system to work properly, this patch adds a BUG() in case mbus fails to initialize. Signed-off-by: Ezequiel Garcia ezequiel.gar

[RESEND PATCH v7 16/22] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-07-15 Thread Ezequiel Garcia
The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/mach-mvebu/platsmp.c | 25 - 1 file changed, 24 insertions

[RESEND PATCH v7 21/22] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes

2013-07-15 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the DeviceBus out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts

[RESEND PATCH v7 14/22] bus: mvebu-mbus: Update main description

2013-07-15 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com After replacing the MBus name-based by the new ID-based API let's fix the general description of the driver at the beginning of the file. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c |

[PATCH 01/10] clocksource: orion: Add thread-safe API header

2013-07-15 Thread Ezequiel Garcia
Add a header declaration to allow drivers (such as watchdog) to access this exported API. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- include/linux/time-orion.h | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 include/linux/time-orion.h diff --git

[PATCH 02/10] watchdog: orion: Use thread-safe clocksource API

2013-07-15 Thread Ezequiel Garcia
The TIMER_CTRL register allows to control timer and watchdog counters, so it's a register shared between the clocksource and the watchdog drivers. In order to prevent race-conditions the clocksource driver exposed a thread-safe API. Use the API. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free

[PATCH 04/10] watchdog: orion: Use the proper watchdog register

2013-07-15 Thread Ezequiel Garcia
direct use of it. Note that this breaks the current device-tree binding compatibility since it changes the meaning of the 'reg' property. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/mach-kirkwood/include/mach/bridge-regs.h | 1 + arch/arm/mach-orion5x/include/mach

[PATCH 03/10] watchdog: orion: Rename device-tree binding documentation

2013-07-15 Thread Ezequiel Garcia
Name this file to something a bit more judicious. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- Documentation/devicetree/bindings/watchdog/{marvel.txt = orion-wdt.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Documentation/devicetree/bindings/watchdog

[PATCH 10/10] ARM: kirkwood: Fix the device-tree watchdog's node reg property

2013-07-15 Thread Ezequiel Garcia
The watchdog driver now needs two 'reg' property cells. The first one is for the register containing the watchdog counter, while the second one is for the RSTOUT register. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/kirkwood.dtsi | 3 ++- 1 file

[PATCH 09/10] watchdog: orion: Use BIT()

2013-07-15 Thread Ezequiel Garcia
This is a purely cosmetic commit: we replace hardcoded values that representing bits by BIT(), which is slightly more readable. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/watchdog/orion_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 06/10] watchdog: orion: Update device-tree binding documentation

2013-07-15 Thread Ezequiel Garcia
Now that the 'reg' property meaning has been changed, this commit updates the deivce-tree binding documentation. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- Documentation/devicetree/bindings/watchdog/orion-wdt.txt | 8 +--- 1 file changed, 5 insertions(+), 3

[PATCH 08/10] watchdog: orion: Remove mach-specific unneeded header

2013-07-15 Thread Ezequiel Garcia
The mach/bridge-regs.h header is not needed anymore, so we can remove it. This commit allows to use this driver on multiplatforms builds. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/watchdog/orion_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v7 03/22] ARM: kirkwood: Move to ID based MBus window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[PATCH v7 01/22] memory: mvebu-devbus: Remove address decoding window workaround

2013-07-09 Thread Ezequiel Garcia
...@linuxfoundation.org Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/memory/mvebu-devbus.c | 64 ++- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index

[PATCH v7 06/22] ARM: dove: Move to ID based window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[PATCH v7 08/22] bus: mvebu-mbus: Introduce device tree binding

2013-07-09 Thread Ezequiel Garcia
thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 49 include/linux/mbus.h | 1 + 2 files changed, 50 insertions(+) diff --git a/drivers/bus/mvebu-mbus.c b/drivers

[PATCH v7 13/22] bus: mvebu-mbus: Remove name - target, attribute mapping tables

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com This tables were used together with the name-based MBus window creation API. Since that's has been removed, we can also remove the tables. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c

[PATCH v7 11/22] PCI: mvebu: Adapt to the new device tree layout

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com The new device tree layout encodes the window's target ID and attribute in the PCIe controller node's ranges property. This allows to parse such entries to obtain such information and use the recently introduced MBus API to create the

[PATCH v7 10/22] bus: mvebu-mbus: Add new API for the PCIe memory and IO aperture

2013-07-09 Thread Ezequiel Garcia
. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- .../devicetree/bindings/bus/mvebu-mbus.txt | 14 +++ drivers/bus/mvebu-mbus.c | 49 ++ include/linux/mbus.h | 4 ++ 3 files changed, 67

[PATCH v7 16/22] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-07-09 Thread Ezequiel Garcia
The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/mach-mvebu/platsmp.c | 25 - 1 file changed, 24 insertions

[PATCH v7 14/22] bus: mvebu-mbus: Update main description

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com After replacing the MBus name-based by the new ID-based API let's fix the general description of the driver at the beginning of the file. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c |

[PATCH v7 20/22] ARM: mvebu: Add BootROM to Armada 370/XP device tree

2013-07-09 Thread Ezequiel Garcia
In order to access the SoC BootROM, we need to declare a mapping (through a ranges property). The mbus driver will use this property to allocate a suitable address decoding window. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370-db.dts

[PATCH v7 19/22] ARM: mvebu: Add MBus to Armada 370/XP device tree

2013-07-09 Thread Ezequiel Garcia
behind the mbus, thus describing the hardware accurately. A translation entry has been added for the internal-regs mapping. This can't be done in the common armada-370-xp.dtsi because A370 and AXP have different addressing width. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com

[PATCH v7 22/22] ARM: mvebu: Relocate Armada 370/XP PCIe device tree nodes

2013-07-09 Thread Ezequiel Garcia
and attribute. Since this depends on the PCIe port, we split the ranges translation entries, to correspond to each MBus window. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370

[PATCH v7 21/22] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes

2013-07-09 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the DeviceBus out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts

[PATCH v7 00/22] MBus DT binding: The return of PCIe

2013-07-09 Thread Ezequiel Garcia
; mbusc: mbus-controller@2 { reg = 0x2 0x100, 0x20180 0x20; }; interrupt-controller@2 { reg = 0x20a00 0x2d0, 0x21070 0x58; }; }; }; Ezequiel Garcia (12): memory: mvebu

[PATCH v7 05/22] ARM: orion5x: Move to ID based window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[PATCH v7 04/22] ARM: mv78xx0: Move to ID based window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[PATCH v7 18/22] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files

2013-07-09 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370-db.dts | 2 +- arch/arm/boot/dts/armada-370-mirabox.dts | 2 +- arch/arm/boot/dts/armada-370-rd.dts | 2 +- arch/arm/boot/dts/armada-370.dtsi| 2

[PATCH v7 09/22] bus: mvebu-mbus: Add static window allocation to the DT binding

2013-07-09 Thread Ezequiel Garcia
This patch adds static window allocation to the device tree binding. Each first-child of the mbus-compatible node, with a suitable 'ranges' property, declaring an address translation, will trigger an address decoding window allocation. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free

[PATCH v7 12/22] bus: mvebu-mbus: Remove the no longer used name-based API

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com Now that every user of the deprecated name-based API has been converted to using the ID-based API, let's remove the former one. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 38

[PATCH v7 07/22] bus: mvebu-mbus: Factor out initialization details

2013-07-09 Thread Ezequiel Garcia
thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c

[PATCH v7 17/22] ARM: mvebu: Initialize MBus using the DT binding

2013-07-09 Thread Ezequiel Garcia
Now that the mbus device tree binding has been introduced, we can switch over to it. Also, and since the initialization of the mbus driver is quite fundamental for the system to work properly, this patch adds a BUG() in case mbus fails to initialize. Signed-off-by: Ezequiel Garcia ezequiel.gar

[PATCH v7 15/22] bus: mvebu-mbus: Factorize Armada 370/XP data structures

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com These structures were only different in the mapping tables. Now that those tables have been removed, it doesn't make any sense to keep different structures. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com ---

[PATCH v7 02/22] bus: mvebu-mbus: Add new API for window creation

2013-07-09 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com We add an API to create MBus address decoding windows from the target ID and attribute. This function will be used later and deprecate the current name based scheme. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com ---

Re: [PATCH v7 11/22] PCI: mvebu: Adapt to the new device tree layout

2013-07-09 Thread Ezequiel Garcia
On Tue, Jul 09, 2013 at 12:50:47PM -0600, Bjorn Helgaas wrote: On Tue, Jul 9, 2013 at 12:20 PM, Jason Cooper ja...@lakedaemon.net wrote: On Tue, Jul 09, 2013 at 01:41:13PM -0300, Ezequiel Garcia wrote: From: Thomas Petazzoni thomas.petazz...@free-electrons.com The new device tree layout

Re: [PATCH v6 00/21] MBus DT binding: PCIe strikes back

2013-07-08 Thread Ezequiel Garcia
On Mon, Jul 08, 2013 at 10:42:25AM -0600, Jason Gunthorpe wrote: On Sat, Jul 06, 2013 at 01:38:35AM +0200, Arnd Bergmann wrote: On Saturday 06 July 2013, Thomas Petazzoni wrote: Arnd, Jason, if you could confirm that you both agree with this DT binding soon, Ezequiel and I would quickly

[PATCH v6 00/21] MBus DT binding: PCIe strikes back

2013-07-05 Thread Ezequiel Garcia
! Ezequiel Garcia (11): memory: mvebu-devbus: Remove address decoding window workaround bus: mvebu-mbus: Factor out initialization details bus: mvebu-mbus: Introduce device tree binding bus: mvebu-mbus: Add static window allocation to the DT binding ARM: mvebu: Remove the harcoded BootROM window

[PATCH v6 03/21] ARM: kirkwood: Move to ID based MBus window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[PATCH v6 02/21] bus: mvebu-mbus: Add new API for window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com We add an API to create MBus address decoding windows from the target ID and attribute. This function will be used later and deprecate the current name based scheme. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com ---

[PATCH v6 01/21] memory: mvebu-devbus: Remove address decoding window workaround

2013-07-05 Thread Ezequiel Garcia
...@linuxfoundation.org Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/memory/mvebu-devbus.c | 64 ++- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index

[PATCH v6 04/21] ARM: mv78xx0: Move to ID based window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[PATCH v6 05/21] ARM: orion5x: Move to ID based window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[PATCH v6 06/21] ARM: dove: Move to ID based window creation

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com With the introduction of the ID based MBus API, it's better to switch to use it instead of the current name based scheme. This will allow to deprecate the name based API, once every user is removed. Signed-off-by: Thomas Petazzoni

[PATCH v6 08/21] bus: mvebu-mbus: Introduce device tree binding

2013-07-05 Thread Ezequiel Garcia
thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 49 include/linux/mbus.h | 1 + 2 files changed, 50 insertions(+) diff --git a/drivers/bus/mvebu-mbus.c b/drivers

[PATCH v6 07/21] bus: mvebu-mbus: Factor out initialization details

2013-07-05 Thread Ezequiel Garcia
thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c

[PATCH v6 09/21] bus: mvebu-mbus: Add static window allocation to the binding

2013-07-05 Thread Ezequiel Garcia
This patch adds static window allocation to the device tree binding. Each first-child of the mbus-compatible node, with a suitable 'ranges' property, declaring an address translation, will trigger an address decoding window allocation. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free

[PATCH v6 11/21] bus: mvebu-mbus: Remove the no longer used name-based API

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com Now that every user of the deprecated name-based API has been converted to using the ID-based API, let's remove the former one. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 38

[PATCH v6 10/21] pci: mvebu: Adapt to the new device tree layout

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com The new device tree layout encodes the window's target ID and attribute in the PCIe controller node's ranges property. This allows to parse such entries to obtain such information and use the recently introduced MBus API to create the

[PATCH v6 16/21] ARM: mvebu: Initialize MBus using the DT binding

2013-07-05 Thread Ezequiel Garcia
Now that the mbus device tree binding has been introduced, we can switch over to it. Also, and since the initialization of the mbus driver is quite fundamental for the system to work properly, this patch adds a BUG() in case mbus fails to initialize. Signed-off-by: Ezequiel Garcia ezequiel.gar

[PATCH v6 14/21] bus: mvebu-mbus: Factorize Armada 370/XP data structures

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com These structures were only different in the mapping tables. Now that those tables have been removed, it doesn't make any sense to keep different structures. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com ---

[PATCH v6 12/21] bus: mvebu-mbus: Remove name - target, attribute mapping tables

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com This tables were used together with the name-based MBus window creation API. Since that's has been removed, we can also remove the tables. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c

[PATCH v6 13/21] bus: mvebu-mbus: Update main description

2013-07-05 Thread Ezequiel Garcia
From: Thomas Petazzoni thomas.petazz...@free-electrons.com After replacing the MBus name-based by the new ID-based API let's fix the general description of the driver at the beginning of the file. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/bus/mvebu-mbus.c |

[PATCH v6 15/21] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-07-05 Thread Ezequiel Garcia
The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/mach-mvebu/platsmp.c | 25 - 1 file changed, 24 insertions

[PATCH v6 17/21] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files

2013-07-05 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370-db.dts | 2 +- arch/arm/boot/dts/armada-370-mirabox.dts | 2 +- arch/arm/boot/dts/armada-370-rd.dts | 2 +- arch/arm/boot/dts/armada-370.dtsi| 2

[PATCH v6 20/21] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes

2013-07-05 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the DeviceBus out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts

[PATCH v6 21/21] ARM: mvebu: Relocate Armada 370/XP PCIe device tree nodes

2013-07-05 Thread Ezequiel Garcia
and attribute. Since this depends on the PCIe port, we split the ranges translation entries, to correspond to each MBus window. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370

[PATCH v6 18/21] ARM: mvebu: Add MBus to Armada 370/XP device tree

2013-07-05 Thread Ezequiel Garcia
behind the mbus, thus describing the hardware accurately. A translation entry has been added for the internal-regs mapping. This can't be done in the common armada-370-xp.dtsi because A370 and AXP have different addressing width. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com

[PATCH v6 19/21] ARM: mvebu: Add BootROM to Armada 370/XP device tree

2013-07-05 Thread Ezequiel Garcia
In order to access the SoC BootROM, we need to declare a mapping (through a ranges property). The mbus driver will use this property to allocate a suitable address decoding window. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370-db.dts

[PATCH v5 00/12] MBus DT binding: A new hope

2013-06-29 Thread Ezequiel Garcia
. As usual, comments and feedback more than welcome. Thanks! Ezequiel Garcia (12): bus: mvebu-mbus: Factor out initialization details bus: mvebu-mbus: Introduce device tree binding bus: mvebu-mbus: Add static window allocation to the DT binding ARM: mvebu: Initialize MBus using the DT binding

[PATCH v5 02/12] bus: mvebu-mbus: Introduce device tree binding

2013-06-29 Thread Ezequiel Garcia
thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 49 include/linux/mbus.h | 1 + 2 files changed, 50 insertions(+) diff --git a/drivers/bus/mvebu-mbus.c b/drivers

[PATCH v5 03/12] bus: mvebu-mbus: Add static window allocation to the DT binding

2013-06-29 Thread Ezequiel Garcia
This patch adds static window allocation to the device tree binding. Each first-child of the mbus-compatible node, with a suitable 'ranges' property, declaring an address translation, will trigger an address decoding window allocation. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free

[PATCH v5 01/12] bus: mvebu-mbus: Factor out initialization details

2013-06-29 Thread Ezequiel Garcia
thomas.petazz...@free-electrons.com Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/bus/mvebu-mbus.c | 47 ++- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c

[PATCH v5 05/12] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-06-29 Thread Ezequiel Garcia
The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/mach-mvebu/platsmp.c | 25 - 1 file changed, 24 insertions

[PATCH v5 07/12] ARM: mvebu: Use the preprocessor on Armada 370/XP device tree files

2013-06-29 Thread Ezequiel Garcia
Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370-db.dts | 2 +- arch/arm/boot/dts/armada-370-mirabox.dts | 2 +- arch/arm/boot/dts/armada-370-rd.dts | 2 +- arch/arm/boot/dts/armada-370.dtsi| 2

[PATCH v5 04/12] ARM: mvebu: Initialize MBus using the DT binding

2013-06-29 Thread Ezequiel Garcia
Now that the mbus device tree binding has been introduced, we can switch over to it. Also, and since the initialization of the mbus driver is quite fundamental for the system to work properly, this patch adds a BUG() in case mbus fails to initialize. Signed-off-by: Ezequiel Garcia ezequiel.gar

[PATCH v5 06/12] memory: mvebu-devbus: Remove address decoding window workaround

2013-06-29 Thread Ezequiel Garcia
...@linuxfoundation.org Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- drivers/memory/mvebu-devbus.c | 64 ++- 1 file changed, 2 insertions(+), 62 deletions(-) diff --git a/drivers/memory/mvebu-devbus.c b/drivers/memory/mvebu-devbus.c index

[PATCH v5 08/12] ARM: mvebu: Add MBus to Armada 370/XP device tree

2013-06-29 Thread Ezequiel Garcia
behind the mbus, thus describing the hardware accurately. A translation entry has been added for the internal-regs mapping. This can't be done in the common armada-370-xp.dtsi because A370 and AXP have different addressing width. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com

[PATCH v5 10/12] ARM: mvebu: Relocate Armada 370/XP DeviceBus device tree nodes

2013-06-29 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the DeviceBus out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts

[PATCH v5 09/12] ARM: mvebu: Add BootROM to Armada 370/XP device tree

2013-06-29 Thread Ezequiel Garcia
In order to access the SoC BootROM, we need to declare a mapping (through a ranges property). The mbus driver will use this property to allocate a suitable address decoding window. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts/armada-370-db.dts

[PATCH v5 12/12] ARM: mvebu: Relocate Armada XP PCIe device tree nodes

2013-06-29 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the PCIe nodes out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts

[PATCH v5 11/12] ARM: mvebu: Relocate Armada 370 PCIe device tree nodes

2013-06-29 Thread Ezequiel Garcia
Now that mbus has been added to the device tree, it's possible to move the PCIe nodes out of internal registers, placing it directly below the mbus. This is a more accurate representation of the hardware. Signed-off-by: Ezequiel Garcia ezequiel.gar...@free-electrons.com --- arch/arm/boot/dts

Re: [PATCH v3 05/12] ARM: mvebu: Remove the harcoded BootROM window allocation

2013-06-19 Thread Ezequiel Garcia
On Tue, Jun 18, 2013 at 11:39:06AM -0600, Jason Gunthorpe wrote: On Tue, Jun 18, 2013 at 08:25:30AM -0300, Ezequiel Garcia wrote: The address decoding window to access the BootROM should not be allocated programatically, but instead declared in the device tree. Signed-off-by: Ezequiel

Re: [PATCH v3 11/12] ARM: mvebu: Relocate Armada 370 PCIe device tree nodes

2013-06-19 Thread Ezequiel Garcia
Arnd, Going through this a couple questions came out... On Tue, Jun 18, 2013 at 11:35:50PM +0200, Arnd Bergmann wrote: On Tuesday 18 June 2013, Ezequiel Garcia wrote: + + ranges = + 0x8200 0 0x40x0001 0x4 0

  1   2   3   >