[PATCH 1/2] i2c-mv64xxx: Add I2C Transaction Generator support

2013-06-07 Thread Gregory CLEMENT
-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- drivers/i2c/busses/i2c-mv64xxx.c | 143 +-- 1 file changed, 139 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index 6356439..5376dc3

[PATCH 0/2] i2c-mv64xxx: Add I2C Transaction Generator support

2013-06-07 Thread Gregory CLEMENT
to use this new feature and should go through mvebu subsystem. The 2 patches are independents for building or even at runtime, but of course we need both of them to be able to use the I2C Transaction Generator on the Armada XP SoC. Thanks Gregory CLEMENT (1): ARM: dts: mvebu: Add the i2c-bridge

[PATCH 0/2] i2c-mv64xxx: Various fixes

2013-06-07 Thread Gregory CLEMENT
Hello, This series contains a real fix for the I2C controller of the Armada XP SoC and a patch closer to a improvement than a fix. They are independent and are only in the same series because they are kind of fixes. They are based on 3.10-rc4, and they will be small conflicts if they are

[PATCH 0/2] i2c-mv64xxx: Various fixes

2013-06-07 Thread Gregory CLEMENT
Hello, This series contains a real fix for the I2C controller of the Armada XP SoC and a patch closer to a improvement than a fix. They are independent and are only in the same series because they are kind of fixes. They are based on 3.10-rc4, and they will be small conflicts if they are

[PATCH 1/2] i2c-mv64xxx: Fix timing issue on Armada XP (errata FE-8471889)

2013-06-07 Thread Gregory CLEMENT
this time is 2.9us. So this patch adds a 5us delay for the start case only if the mv64xxx_i2c_errata_delay flag is set. [gregory.clem...@free-electrons.com: Merge the incoming commits into this single one] [gregory.clem...@free-electrons.com: Reword the commit log] Signed-off-by: Gregory CLEMENT

[PATCH 2/2] i2c-mv64xxx: Abort the mv64xxx_of_config if clock-frequency is not provided

2013-06-07 Thread Gregory CLEMENT
] Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Zbigniew Bodek z...@semihalf.com --- drivers/i2c/busses/i2c-mv64xxx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index 60cac9f

[PATCH] ARM: kirkwood: add button for OpenBlock A6

2013-05-02 Thread Gregory CLEMENT
The OpenBlocks A6 board has one software-controlled button on the front side, labeled INIT, so we add minimal support for this button in the kernel. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/kirkwood-openblocks_a6.dts | 13 + 1 file

Re: [PATCH] ARM: kirkwood: add button for OpenBlock A6

2013-05-02 Thread Gregory CLEMENT
On 05/02/2013 09:43 PM, Gregory CLEMENT wrote: The OpenBlocks A6 board has one software-controlled button on the front side, labeled INIT, so we add minimal support for this button in the kernel. Oh, I found that Thomas have already submitted the same patch but I was misleaded because I

Re: [PATCH] irqchip: add support for Marvell Orion SoCs

2013-05-02 Thread Gregory CLEMENT
On 05/02/2013 10:02 PM, Andrew Lunn wrote: On Thu, May 02, 2013 at 09:48:50PM +0200, Sebastian Hesselbarth wrote: On 05/02/2013 09:35 PM, Jason Gunthorpe wrote: I have kirkwood HW but I haven't had time to make newer kernels run on it, otherwise I'd test it too :( I also have kirkwood HW but

Re: [RFC 00/50] ARM: at91: move to common clk framework

2013-06-07 Thread Gregory CLEMENT
/at91_pmc.h = include/linux/clk/at91.h (76%) ___ linux-arm-kernel mailing list linux-arm-ker...@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Gregory Clement, Free Electrons Kernel, drivers, real-time

Re: linux-next: manual merge of the cpuinit tree with the arm-current tree

2013-06-26 Thread Gregory CLEMENT
usage from all ARM users from the cpuinit tree. I fixed it up (see below) and can carry the fix as necessary (no action is required). From my point of view it looks good. Thanks, -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting

Re: [PATCH 00/10] clk: mvebu: restructure SoC clock drivers

2013-05-20 Thread Gregory CLEMENT
/ However we don't build Linus master but we could add it. Best regards, Thomas -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line

Re: [PATCH 3/8] ARM: l2x0: add Marvell Tauros3 compatible

2013-10-08 Thread Gregory CLEMENT
their dtb. If I understood well it is the philosophy behind the device tree. Regards, But again, I am very open for suggestions here. Sebastian -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free

Re: [PATCH 3/8] ARM: l2x0: add Marvell Tauros3 compatible

2013-10-09 Thread Gregory CLEMENT
On 09/10/2013 10:50, Mark Rutland wrote: On Tue, Oct 08, 2013 at 05:33:23PM +0100, Gregory CLEMENT wrote: On 08/10/2013 18:05, Sebastian Hesselbarth wrote: On 10/08/2013 03:41 PM, Mark Rutland wrote: On Tue, Oct 08, 2013 at 01:24:28PM +0100, Sebastian Hesselbarth wrote: This add a compatible

Re: [PATCH 8/8] ARM: add initial support for Marvell Berlin SoCs

2013-10-09 Thread Gregory CLEMENT
compatible string. [...] Regards, Gregory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: [PATCH 1/8] clocksource: armada-xp: always register local_timer_ops

2013-07-05 Thread Gregory CLEMENT
-by: Arnd Bergmann a...@arndb.de Acked-by: Jason Cooper ja...@lakedaemon.net Cc: Gregory CLEMENT gregory.clem...@free-electrons.com --- drivers/clocksource/time-armada-370-xp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers

Re: [PATCH v6 10/17] ARM: mvebu: add USB3 support for Armada 38x

2014-05-21 Thread Gregory CLEMENT
On 19/05/2014 13:09, Paul Bolle wrote: On Fri, 2014-05-16 at 15:07 -0400, Jason Cooper wrote: On Thu, May 15, 2014 at 12:17:35PM +0200, Gregory CLEMENT wrote: This patch adds the selection of the config symbol needed to build the USB3 support for Armada 38x into mvebu_v7_defconfig. Signed

[PATCH v6 00/17] USB support for Armada 38x and Armada 375

2014-05-15 Thread Gregory CLEMENT
it doesn't work). Instead, add a 'struct clk*' field in xhci_hcd to support the clock in xhci-plat, exactly like xhci_hcd has msix_count and msix_entries for xhci-pci. - Misc minor code style improvements. Gregory CLEMENT (14): usb: ehci-orion: fix clock reference leaking

[PATCH v6 03/17] usb: ehci-orion: fix clock reference leaking

2014-05-15 Thread Gregory CLEMENT
: 8c869edaee07c623066266827371235fb9c12e01 ('ARM: Orion: EHCI: Add support for enabling clocks') Cc: sta...@vger.kernel.org # v3.8+ Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Acked-by: Alan Stern st

[PATCH v6 04/17] usb: ehci-orion: add optional PHY support

2014-05-15 Thread Gregory CLEMENT
properly. Also call phy_power_off() when needed, and rename goto labels.] Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Acked-by: Alan Stern st...@rowland.harvard.edu --- drivers/usb/host/ehci-orion.c | 28

[PATCH v6 02/17] usb: ehci-orion: rename error goto labels in ehci_orion_drv_probe()

2014-05-15 Thread Gregory CLEMENT
From: Thomas Petazzoni thomas.petazz...@free-electrons.com In preparation to the introduction of additional initialization steps in ehci_orion_drv_probe(), we rename the error goto labels from err1, err2 and err3 names to some more meaningful names. Signed-off-by: Thomas Petazzoni

[PATCH v6 08/17] usb: host: xhci-plat: add support for the Armada 375/38x XHCI controllers

2014-05-15 Thread Gregory CLEMENT
the Armada 375 and Armada 38x XHCI controllers, and therefore enable the relevant quirk. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Acked-by: Mathias Nyman mathias.ny...@linux.intel.com --- drivers/usb/host

[PATCH v6 13/17] ARM: configs: enable XHCI mvebu support in multi_v7_defconfig

2014-05-15 Thread Gregory CLEMENT
The Marvell Armada 38x platform needs the xhci_mvebu driver enabled for the xHCI USB hosts, so this commit enables the corresponding Kconfig option in multi_v7_defconfig. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free

[PATCH v6 11/17] ARM: mvebu: add USB3 support for Armada 375

2014-05-15 Thread Gregory CLEMENT
This patch add the selection of the config symbol to build the USB3 support for Armada 375. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu

[PATCH v6 15/17] ARM: mvebu: add Device Tree description of the EHCI controller on Armada 38x

2014-05-15 Thread Gregory CLEMENT
The Marvell Armada 38x SoCs contains one EHCI controller. This commit adds the Device Tree description of this interface at the SoC level, and also enables the USB2 port on the Armada 385 DB platform. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/armada

[PATCH v6 16/17] ARM: mvebu: add Device Tree description of the xHCI controller on Armada 375

2014-05-15 Thread Gregory CLEMENT
The Marvell Armada 375 SoCs contain a xHCI controller. This commit adds the Device Tree description of this interfaces at the SoC level, and also enables the USB3 port on the Armada 375 DB platform. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni

[PATCH v6 12/17] ARM: configs: enable XHCI mvebu support in mvebu_v7_defconfig

2014-05-15 Thread Gregory CLEMENT
The Marvell Armada 38x platform needs the xhci_mvebu driver enabled for the xHCI USB hosts, so this commit enables the corresponding Kconfig option in mvebu_v7_defconfig. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free

[PATCH v6 17/17] ARM: mvebu: add Device Tree description of the EHCI controller on Armada 375

2014-05-15 Thread Gregory CLEMENT
The Marvell Armada 375 SoCs contains one EHCI controller. This commit adds the Device Tree description of this interfaces at the SoC level, and also enables the USB2 port on the Armada 375 DB platform. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas

[PATCH v6 09/17] Documentation: dt-bindings: update xhci-platform DT binding

2014-05-15 Thread Gregory CLEMENT
is now supported. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Acked-by: Mathias Nyman mathias.ny...@linux.intel.com --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 7 ++- 1 file changed, 6 insertions

[PATCH v6 10/17] ARM: mvebu: add USB3 support for Armada 38x

2014-05-15 Thread Gregory CLEMENT
This patch adds the selection of the config symbol needed to build the USB3 support for Armada 38x into mvebu_v7_defconfig. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- arch/arm/mach-mvebu/Kconfig | 1

[PATCH v6 14/17] ARM: mvebu: add Device Tree description of xHCI controllers on Armada 38x

2014-05-15 Thread Gregory CLEMENT
The Marvell Armada 38x SoCs contains two xHCI controllers. This commit adds the Device Tree description of those interfaces at the SoC level, and also enables the two USB3 ports on the Armada 385 DB platform and one USB3 port on the Armada 385 RD platform. Signed-off-by: Gregory CLEMENT

[PATCH v6 07/17] usb: host: xhci-plat: add clock support

2014-05-15 Thread Gregory CLEMENT
-plat, it might be used by other drivers in the future. Moreover, the xhci_hcd structure already holds other members such as msix_count and msix_entries, which are MSI-X specific, and therefore only used by xhci-pci. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off

[PATCH v6 05/17] Documentation: dt-bindings: update ehci-orion binding documentation

2014-05-15 Thread Gregory CLEMENT
From: Thomas Petazzoni thomas.petazz...@free-electrons.com This commit updates the Device Tree binding documentation of ehci-orion to take into account the fact that we can now optionally pass a clock and a PHY reference. Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com

[PATCH v6 06/17] usb: host: xhci-plat: sort the headers in alphabetic order

2014-05-15 Thread Gregory CLEMENT
Sorting the headers in alphabetic order will help to reduce the conflict when adding new headers later. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/usb/host/xhci-plat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH v6 01/17] usb: ehci-orion: use platform_get_irq() for DT probing

2014-05-15 Thread Gregory CLEMENT
From: Thomas Petazzoni thomas.petazz...@free-electrons.com Commit 77dae54ab385033e488d8b07045bc7f8d931740f ('ARM: Kirkwood: ehci-orion: Add device tree binding') added the Device Tree binding for the ehci-orion driver. To achieve that with the irq, it used the irq_of_parse_and_map() function when

Re: [PATCH v6 17/17] ARM: mvebu: add Device Tree description of the EHCI controller on Armada 375

2014-05-15 Thread Gregory CLEMENT
On 15/05/2014 15:34, Jason Cooper wrote: On Thu, May 15, 2014 at 05:26:36PM +0400, Sergei Shtylyov wrote: Hello. On 05/15/2014 02:17 PM, Gregory CLEMENT wrote: The Marvell Armada 375 SoCs contains one EHCI controller. This commit However, you're adding two. :-) So it would seem

[PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-16 Thread Gregory CLEMENT
Armada 375 comes with an USB2 host and device controller and an USB3 controller. The USB cluster control register allows to manage common features of both USB controllers. This commit adds the Device Tree binding documentation for this piece of hardware. Signed-off-by: Gregory CLEMENT

[PATCH 3/5] ARM: mvebu: add Device Tree description of USB cluster controller on Armada 375

2014-05-16 Thread Gregory CLEMENT
On Armada 375, the USB cluster allows to control the cluster composed of the USB2 and USB3 host controllers. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/armada-375.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/armada

[PATCH 5/5] ARM: mvebu: add PHY support to the dts for the USB controllers on Armada 375

2014-05-16 Thread Gregory CLEMENT
Now that the USB cluster node has been added, use it as a PHY provider for the USB controller linked to it: the first EHCI and the xHCI. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/armada-375.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 4/5] usb: host: xhci-plat: add optional PHY support

2014-05-16 Thread Gregory CLEMENT
in xhci_hcd. While only used for now in xhci-plat, here again, it might be used by other drivers in the future. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- drivers/usb/host/xhci-plat.c | 29 - drivers/usb/host/xhci.h | 2 ++ 2 files changed

[PATCH 1/5] phy: add support for USB cluster on the Armada 375 SoC

2014-05-16 Thread Gregory CLEMENT
-by: Gregory CLEMENT gregory.clem...@free-electrons.com Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- drivers/phy/Kconfig | 6 + drivers/phy/Makefile | 1 + drivers/phy/phy-armada375-usb2.c | 140

[PATCH 0/5] Add support for USB cluster(PHY muxer) on the Armada 375 SoC

2014-05-16 Thread Gregory CLEMENT
his dts. During the debug I also noticed that xhci don't handle the PHY so I also add the support for an optional phy. This patch is for Mathias Nyman. Thanks, Gregory Gregory CLEMENT (5): phy: add support for USB cluster on the Armada 375 SoC Documentation: dt-bindings: document the Armada

Re: linux-next: manual merge of the arm-soc tree with the arm tree

2014-05-23 Thread Gregory CLEMENT
___ linux-arm-kernel mailing list linux-arm-ker...@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-23 Thread Gregory CLEMENT
Hi Kishon, On 23/05/2014 11:24, Kishon Vijay Abraham I wrote: Hi, On Friday 16 May 2014 09:52 PM, Gregory CLEMENT wrote: Armada 375 comes with an USB2 host and device controller and an USB3 controller. The USB cluster control register allows to manage common features of both USB

Re: [PATCH 2/5] Documentation: dt-bindings: document the Armada 375 USB cluster binding

2014-05-23 Thread Gregory CLEMENT
, could you pick it up and append your 375 binding to it? We can avoid merge conflicts that way. yes sure, I will do it Thanks Andrew -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: [PATCH 4/5] usb: host: xhci-plat: add optional PHY support

2014-05-23 Thread Gregory CLEMENT
On 23/05/2014 11:28, Kishon Vijay Abraham I wrote: Hi, On Friday 16 May 2014 09:52 PM, Gregory CLEMENT wrote: This commit extends the xhci-plat so that it can optionally be passed a reference to a PHY through the Device Tree. It will be useful for the Armada 375 SoCs. If no PHY is provided

Re: [PATCH 1/5] phy: add support for USB cluster on the Armada 375 SoC

2014-05-23 Thread Gregory CLEMENT
On 23/05/2014 11:20, Kishon Vijay Abraham I wrote: Hi, On Friday 16 May 2014 09:52 PM, Gregory CLEMENT wrote: The Armada 375 SoC comes with an USB2 host and device controller and an USB3 controller. The USB cluster control register allows to manage common features of both USB controllers

Re: [PATCH 0/4] clk: mvebu: fix clk init order

2014-02-04 Thread Gregory CLEMENT
On 04/02/2014 00:36, Sebastian Hesselbarth wrote: On 02/04/2014 12:16 AM, Willy Tarreau wrote: On Thu, Jan 30, 2014 at 11:31:32AM +0100, Sebastian Hesselbarth wrote: On 01/30/14 11:24, Gregory CLEMENT wrote: On 25/01/2014 19:19, Sebastian Hesselbarth wrote: This patch set fixes clk init order

[PATCH] clk: respect the clock dependencies in of_clk_init

2014-02-04 Thread Gregory CLEMENT
, this patch adds this work inside the framework itself. Using the data of the device tree the of_clk_init function now delayed the initialization of a clock provider if its parent provider was not ready yet. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- Mike, this patch could

Re: [PATCH] clk: add strict of_clk_init dependency check

2014-02-05 Thread Gregory CLEMENT
1; } /** -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord

Re: [PATCH] clk: add strict of_clk_init dependency check

2014-02-05 Thread Gregory CLEMENT
On 05/02/2014 15:48, Gregory CLEMENT wrote: Hi Boris, On 05/02/2014 10:48, Boris BREZILLON wrote: The parent dependency check is only available on the first parent of a given clk. Add support for strict dependency check: all parents of a given clk must be initialized. Signed-off

Re: [PATCH 0/4] clk: mvebu: fix clk init order

2014-01-30 Thread Gregory CLEMENT
Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew Lunn and...@lunn.ch Cc: Gregory Clement gregory.clem...@free-electrons.com Cc: Thomas Petazzoni thomas.petazz...@free-electrons.com Cc: Ezequiel Garcia ezequiel.gar...@free-electrons.com Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel

Re: [PATCH] MAINTAINERS: Add DesignWare, i.MX6, Armada, R-Car PCI host maintainers

2013-12-11 Thread Gregory CLEMENT
. Regards, Gregory -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org

[PATCH] PCI: mvebu: Remove redundant code

2014-01-02 Thread Gregory CLEMENT
code. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- drivers/pci/host/pci-mvebu.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c index 2aa7b77c7c88..0b4b99fa1fb5 100644 --- a/drivers/pci/host/pci

Re: [PATCH] PCI: mvebu: Remove redundant code

2014-01-02 Thread Gregory CLEMENT
On 02/01/2014 11:46, Thomas Petazzoni wrote: Dear Gregory CLEMENT, On Thu, 2 Jan 2014 11:41:36 +0100, Gregory CLEMENT wrote: In the commit b42285f66f871a989, Sebastian moved clock enable before register access, but during the merge of the commit 9f352f0e6c0fa2dc608812df PCI: mvebu

Re: [PATCH] i2c: mv64xxx: Fix compilation breakage

2014-03-24 Thread Gregory CLEMENT
reason to not have pulled it, yet? http://www.spinics.net/lists/arm-kernel/msg316518.html I would really like that it was sorted out, because all the build using the mvebu related defconfig fails since two weeks because of it now. I am ready to help if you need it. Thanks! -- Gregory Clement

[PATCH v5 10/14] ARM: mvebu: Add the PMSU related part of the cpu idle functions

2014-03-25 Thread Gregory CLEMENT
The cpu idle support will need to access to Power Management Service Unit. This commit adds the architecture related functions that will be used in the idle path of the cpuidle driver. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/pmsu.c | 132

[PATCH v5 13/14] cpuidle: mvebu: Add initial CPU idle support for Armada 370/XP SoC

2014-03-25 Thread Gregory CLEMENT
on the work of Nadav Haklai. Signed-off-by: Nadav Haklai nad...@marvell.com Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- drivers/cpuidle/Kconfig.arm | 5 ++ drivers/cpuidle/Makefile| 1 + drivers/cpuidle/cpuidle-armada-370-xp.c | 93

[PATCH v5 14/14] ARM: mvebu: register the cpuidle driver for the Armada XP SoCs

2014-03-25 Thread Gregory CLEMENT
The cpuidle is a platform driver so we register the device just after the initialization of the board in an arch_initcall. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/pmsu.c | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v5 12/14] ARM: mvebu: Register notifier callback for the cpuidle transition

2014-03-25 Thread Gregory CLEMENT
In order to have well encapsulated code, we use notifier callbacks for CPU_PM_ENTER and CPU_PM_EXIT inside the mvebu power management code. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/pmsu.c | 19 +++ 1 file changed, 19 insertions

[PATCH v5 11/14] ARM: mvebu: Set the start address of a CPU in a separate function

2014-03-25 Thread Gregory CLEMENT
Setting the start (or boot) address of a CPU is no more used only during SMP bring up, but it will also be used by the CPU idle functions or later by the CPU hot plug ones. This commit moves it in a separate function. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch

[PATCH v5 05/14] ARM: mvebu: Split low level functions to manipulate HW coherency

2014-03-25 Thread Gregory CLEMENT
) to be used by the exposed functions (ll_add_cpu_to_smp_group and ll_enable_coherency) Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/coherency.c| 8 ++-- arch/arm/mach-mvebu/coherency_ll.S | 94 +- arch/arm/mach-mvebu

[PATCH v5 08/14] ARM: dts: mvebu: Introduce a new compatible for the PMSU node

2014-03-25 Thread Gregory CLEMENT
continue to support it during a few releases. Cc: devicet...@vger.kernel.org Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- .../devicetree/bindings/arm/armada-370-xp-pmsu.txt | 14 ++ arch/arm/boot/dts/armada-xp.dtsi | 11

[PATCH v5 09/14] ARM: mvebu: Allow to power down L2 cache controller in idle mode

2014-03-25 Thread Gregory CLEMENT
This commit adds a function which adjusts the PMSU configuration to automatically power down the L2 and coherency fabric when we enter a certain idle state. This feature is part of the Power Management Service Unit of the Armada 370 and Armada XP SoCs. Signed-off-by: Gregory CLEMENT gregory.clem

[PATCH v5 06/14] ARM: mvebu: Low level function to disable HW coherency support

2014-03-25 Thread Gregory CLEMENT
When going to deep idle we need to disable the SoC snooping (aka hardware coherency support). Playing with the coherency fabric requires to use assembly code to be sure that the compiler doesn't reorder the instructions nor do wrong optimization. Signed-off-by: Gregory CLEMENT gregory.clem

[PATCH v5 07/14] ARM: mvebu: Extend the pmsu registers

2014-03-25 Thread Gregory CLEMENT
binding This patch also adds warnings if one of the base registers set can't be ioremapped. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/pmsu.c | 47 +- 1 file changed, 42 insertions(+), 5 deletions(-) diff

[PATCH v5 04/14] ARM: mvebu: Remove the unused argument of set_cpu_coherent()

2014-03-25 Thread Gregory CLEMENT
set_cpu_coherent() took the SMP group ID as parameter. But this parameter was never used, and the CPU always uses the SMP group 0. So we can remove this parameter. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/coherency.c | 4 ++-- arch/arm/mach-mvebu

[PATCH v5 03/14] ARM: mvebu: ll_set_cpu_coherent always uses the current CPU

2014-03-25 Thread Gregory CLEMENT
ll_set_cpu_coherent is always used on the current CPU, so instead of passing the CPU id as argument, ll_set_cpu_coherent() can find it by itself. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Acked-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- arch/arm/mach

[PATCH v5 01/14] ARM: PJ4B: Add cpu_suspend/cpu_resume hooks for PJ4B

2014-03-25 Thread Gregory CLEMENT
PJ4B needs extra instructions for suspend and resume, so instead of using the armv7 version, this commit introduces specific versions for PJ4B. Cc: Russell King li...@arm.linux.org.uk Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mm/proc-v7.S | 28

[PATCH v5 02/14] ARM: mvebu: remove the address parameter for ll_set_cpu_coherent

2014-03-25 Thread Gregory CLEMENT
or the virtual address. This patch add a check of the MMU bit to choose the accurate address, then the calling function doesn't have to pass this information. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/coherency.c| 6 +++--- arch/arm/mach-mvebu

[PATCH v5 00/14] CPU idle for Armada XP

2014-03-25 Thread Gregory CLEMENT
rule under the new ARM SoC section in the Makefile * Rebased on Linus Torvalds master branch of Thursday September 12 Gregory CLEMENT (14): ARM: PJ4B: Add cpu_suspend/cpu_resume hooks for PJ4B ARM: mvebu: remove the address parameter for ll_set_cpu_coherent ARM: mvebu: ll_set_cpu_coherent

Re: [PATCH v5 07/14] ARM: mvebu: Extend the pmsu registers

2014-03-26 Thread Gregory CLEMENT
Hi Jason, On 26/03/2014 01:30, Jason Cooper wrote: On Tue, Mar 25, 2014 at 11:48:18PM +0100, Gregory CLEMENT wrote: The initial binding for PMSU were wrong. It didn't take into account all the registers from the PMSU and moreover it referred to registers which are not part of PMSU

Re: [PATCH v5 00/14] CPU idle for Armada XP

2014-03-26 Thread Gregory CLEMENT
On 26/03/2014 01:42, Jason Cooper wrote: Gregory, On Tue, Mar 25, 2014 at 11:48:11PM +0100, Gregory CLEMENT wrote: ... The first patch should go through ARM subsystem and should be taken by Russell King. I made few change on it following Lorenzo advice and now it will reuse the cpu v7

Re: [PATCH v5 14/14] ARM: mvebu: register the cpuidle driver for the Armada XP SoCs

2014-03-26 Thread Gregory CLEMENT
On 26/03/2014 11:31, Thomas Petazzoni wrote: Dear Gregory CLEMENT, On Tue, 25 Mar 2014 23:48:25 +0100, Gregory CLEMENT wrote: +int __init armada_370_xp_cpu_pm_init(void) +{ +if (!((of_find_compatible_node(NULL, NULL, marvell,armada-370-xp-pmsu

Re: [PATCH v5 03/14] ARM: mvebu: ll_set_cpu_coherent always uses the current CPU

2014-03-26 Thread Gregory CLEMENT
On 26/03/2014 12:52, Sebastian Hesselbarth wrote: On 03/25/2014 11:48 PM, Gregory CLEMENT wrote: ll_set_cpu_coherent is always used on the current CPU, so instead of passing the CPU id as argument, ll_set_cpu_coherent() can find it by itself. Signed-off-by: Gregory CLEMENT gregory.clem

Re: [PATCH v5 07/14] ARM: mvebu: Extend the pmsu registers

2014-03-26 Thread Gregory CLEMENT
On 26/03/2014 13:04, Sebastian Hesselbarth wrote: On 03/25/2014 11:48 PM, Gregory CLEMENT wrote: The initial binding for PMSU were wrong. It didn't take into account all the registers from the PMSU and moreover it referred to registers which are not part of PMSU. The Power Management Unit

Re: [PATCH v3] clk: respect the clock dependencies in of_clk_init

2014-03-26 Thread Gregory CLEMENT
On 26/03/2014 16:19, Kevin Hilman wrote: [+ imx6 maintainers ] On Thu, Mar 20, 2014 at 8:52 PM, Mike Turquette mturque...@linaro.org wrote: Quoting Gregory CLEMENT (2014-02-28 02:46:12) Hi Mike, On 24/02/2014 19:10, Gregory CLEMENT wrote: Until now the clock providers were initialized

Re: [PATCH v3] clk: respect the clock dependencies in of_clk_init

2014-03-26 Thread Gregory CLEMENT
Hi Fabio, On 26/03/2014 17:22, Fabio Estevam wrote: Hi Gregory, On Wed, Mar 26, 2014 at 1:02 PM, Gregory CLEMENT gregory.clem...@free-electrons.com wrote: I don't have any imx6 board, but should it be possible for you or the imx6 maintainer to add earlyprintk to see exactly what happen

Re: [PATCH] clk: register fixed-clock only if #clock-cells property is present

2014-03-26 Thread Gregory CLEMENT
) { + pr_warn(%s: Now force the initialization of the remaning clocks\n, __func__); force = true; + } } } -- 1.8.1.2 -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free

[PATCH v6 02/11] ARM: mvebu: remove the address parameter for ll_set_cpu_coherent

2014-03-28 Thread Gregory CLEMENT
or the virtual address. This patch add a check of the MMU bit to choose the accurate address, then the calling function doesn't have to pass this information. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/coherency.c| 6 +++--- arch/arm/mach-mvebu

[PATCH v6 09/11] ARM: mvebu: Register notifier callback for the cpuidle transition

2014-03-28 Thread Gregory CLEMENT
In order to have well encapsulated code, we use notifier callbacks for CPU_PM_ENTER and CPU_PM_EXIT inside the mvebu power management code. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/pmsu.c | 18 ++ 1 file changed, 18 insertions

[PATCH v6 00/11] CPU idle for Armada XP

2014-03-28 Thread Gregory CLEMENT
by Thomas) * Moved the config entry in Kconfig.arm, and rename the config symbol according the pattern used by other arm cpu: ARM_soc name_CPUIDLE * Moved the build rule under the new ARM SoC section in the Makefile * Rebased on Linus Torvalds master branch of Thursday September 12 Gregory

[PATCH v6 10/11] cpuidle: mvebu: Add initial CPU idle support for Armada 370/XP SoC

2014-03-28 Thread Gregory CLEMENT
on the work of Nadav Haklai. Signed-off-by: Nadav Haklai nad...@marvell.com Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- drivers/cpuidle/Kconfig.arm | 5 ++ drivers/cpuidle/Makefile| 1 + drivers/cpuidle/cpuidle-armada-370-xp.c | 93

[PATCH v6 11/11] ARM: mvebu: register the cpuidle driver for the Armada XP SoCs

2014-03-28 Thread Gregory CLEMENT
The cpuidle is a platform driver so we register the device just after the initialization of the board in an arch_initcall. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/pmsu.c | 37 + 1 file changed, 37 insertions

[PATCH v6 05/11] ARM: mvebu: Split low level functions to manipulate HW coherency

2014-03-28 Thread Gregory CLEMENT
) to be used by the exposed functions (ll_add_cpu_to_smp_group and ll_enable_coherency) Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/coherency.c| 8 ++-- arch/arm/mach-mvebu/coherency_ll.S | 92 +- arch/arm/mach-mvebu

[PATCH v6 08/11] ARM: mvebu: Add the PMSU related part of the cpu idle functions

2014-03-28 Thread Gregory CLEMENT
The cpu idle support will need to access to Power Management Service Unit. This commit adds the architecture related functions that will be used in the idle path of the cpuidle driver. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/pmsu.c | 132

[PATCH v6 06/11] ARM: mvebu: Low level function to disable HW coherency support

2014-03-28 Thread Gregory CLEMENT
When going to deep idle we need to disable the SoC snooping (aka hardware coherency support). Playing with the coherency fabric requires to use assembly code to be sure that the compiler doesn't reorder the instructions nor do wrong optimization. Signed-off-by: Gregory CLEMENT gregory.clem

[PATCH v6 04/11] ARM: mvebu: Remove the unused argument of set_cpu_coherent()

2014-03-28 Thread Gregory CLEMENT
set_cpu_coherent() took the SMP group ID as parameter. But this parameter was never used, and the CPU always uses the SMP group 0. So we can remove this parameter. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/coherency.c | 4 ++-- arch/arm/mach-mvebu

[PATCH v6 07/11] ARM: mvebu: Allow to power down L2 cache controller in idle mode

2014-03-28 Thread Gregory CLEMENT
This commit adds a function which adjusts the PMSU configuration to automatically power down the L2 and coherency fabric when we enter a certain idle state. This feature is part of the Power Management Service Unit of the Armada 370 and Armada XP SoCs. Signed-off-by: Gregory CLEMENT gregory.clem

[PATCH v6 01/11] ARM: PJ4B: Add cpu_suspend/cpu_resume hooks for PJ4B

2014-03-28 Thread Gregory CLEMENT
PJ4B needs extra instructions for suspend and resume, so instead of using the armv7 version, this commit introduces specific versions for PJ4B. Cc: Russell King li...@arm.linux.org.uk Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mm/proc-v7.S | 28

[PATCH v6 03/11] ARM: mvebu: ll_set_cpu_coherent always uses the current CPU

2014-03-28 Thread Gregory CLEMENT
ll_set_cpu_coherent is always used on the current CPU, so instead of passing the CPU id as argument, ll_set_cpu_coherent() can find it by itself. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Acked-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- arch/arm/mach

[PATCH v3 03/20] usb: host: xhci-plat: Sort the headers in alphabetic order

2014-05-05 Thread Gregory CLEMENT
Sorting the headers in alphabetic order will help to reduce the conflict when adding new headers later. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com Acked-by: Felipe Balbi ba...@ti.com --- drivers/usb/host/xhci-plat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH v3 07/20] xhci-platform: Add a new controller using xhci: Armada 38x

2014-05-05 Thread Gregory CLEMENT
Extend the compatible string list with armada-380-xhci. It is used to describe xhci controller which is in the Armada 38x SoCs. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v3 19/20] ARM: mvebu: Add Device Tree description of the xHCI host on Armada 375

2014-05-05 Thread Gregory CLEMENT
The Marvell Armada 375 SoCs contain a xHCI host. This commit adds the Device Tree description of this interfaces at the SoC level, and also enables the USB3 port on the Armada 375 DB platform. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/armada-375

[PATCH v3 15/20] ARM: mvebu: Add Device Tree description of USB cluster controller on Armada 375

2014-05-05 Thread Gregory CLEMENT
On Armada 375, the USB cluster allows to control the cluster composed of the USB2 and USB3 host controllers. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/armada-375.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/armada

[PATCH v3 20/20] ARM: mvebu: Add Device Tree description of the EHCI host on Armada 375

2014-05-05 Thread Gregory CLEMENT
The Marvell Armada 375 SoCs contains one EHCI host. This commit adds the Device Tree description of this interfaces at the SoC level, and also enables the USB2 port on the Armada 375 DB platform. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/boot/dts/armada-375

[PATCH v3 18/20] ARM: mvebu: Add USB3 support for Armada 375

2014-05-05 Thread Gregory CLEMENT
This patch add the selection of the config symbol to build the USB3 support for Armada 375. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/mach-mvebu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu

[PATCH v3 14/20] xhci-platform: Add a new controller using xHCI: Armada 375

2014-05-05 Thread Gregory CLEMENT
Extend the compatible string list with armada-375-xhci. It is used to describe xHCI controller which is in the Armada 375 SoC. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v3 17/20] phy: Add support for USB cluster on the Armada 375 SoC

2014-05-05 Thread Gregory CLEMENT
The Armada 375 SoC comes with an USB2 host and device controller and an USB3 controller. The USB cluster control register allows to manage common features of both USB controllers. It uses the generic PHY framework Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- drivers/phy

[PATCH v3 11/20] ARM: configs: Add usb_xhci_mvebu to mvebu_v7_defconfig

2014-05-05 Thread Gregory CLEMENT
The Marvell Armada 38x platform needs the xhci_mvebu driver enabled for the xHCI USB hosts, so this commit enables the corresponding Kconfig option in mvebu_v7_defconfig. Signed-off-by: Gregory CLEMENT gregory.clem...@free-electrons.com --- arch/arm/configs/mvebu_v7_defconfig | 1 + 1 file

<    1   2   3   4   5   6   7   8   9   10   >