Re: [PATCH 1/2] ARM: dts: berlin2q: add the Marvell Armada 1500 pro (BG2Q) device tree

2014-03-13 Thread Antoine Ténart
. Antoine -- Antoine Ténart, Free Electrons Embedded Linux, Kernel and Android engineering 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 More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH 0/2] ARM: add initial support for the Marvell BG2-Q DMP

2014-03-13 Thread Antoine Ténart
Hi Sebastian, On 13/03/2014 10:51, Sebastian Hesselbarth wrote: On 03/12/2014 11:35 AM, Alexandre Belloni wrote: On 12/03/2014 at 12:06:02 +0100, Antoine Ténart wrote : This serie adds the initial support for the Marvell BG2-Q DMP (part of the Berlin family). SoC has nodes for cpu, l2 cache

[PATCH v2 1/3] ARM: dts: berlin2q: add the Marvell Armada 1500 pro

2014-03-13 Thread Antoine Ténart
Adds initial support for the Marvell Armada 1500 pro (BG2Q) SoC (Berlin family). The SoC has nodes for cpu, l2 cache controller, interrupt controllers, local timer, apb timers and uarts for now. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com Signed-off-by: Alexandre Belloni

[PATCH v2 2/3] ARM: berlin2q: add the Marvell Armada 1500 pro in the documentation

2014-03-13 Thread Antoine Ténart
Adds basic informations about the Armada 1500 Pro in the Berlin family of the Marvell ARM SoC documentation and the Armada 1500 Pro SoC compatible in the related device tree documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/arm/Marvell/README

[PATCH v2 3/3] ARM: dts: berlin2q: add the Marvell BG2-Q DMP device tree

2014-03-13 Thread Antoine Ténart
Adds initial support for the Marvell BG2-Q DMP. The board has 2GB of memory, an uart activated and what's initially supported by the Marvell Armada 1500 pro dtsi. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/Makefile | 3 ++- arch/arm

[PATCH v2 0/3] ARM: add initial support for the Marvell BG2-Q DMP

2014-03-13 Thread Antoine Ténart
- moved documentation changes into a single patch - fixed documentation typo Antoine Ténart (3): ARM: dts: berlin2q: add the Marvell Armada 1500 pro ARM: berlin2q: add the Marvell Armada 1500 pro in the documentation ARM: dts: berlin2q: add the Marvell BG2-Q DMP device tree

Re: [PATCH v2 1/3] ARM: dts: berlin2q: add the Marvell Armada 1500 pro

2014-03-14 Thread Antoine Ténart
Sebastian, On 14/03/2014 10:31, Sebastian Hesselbarth wrote: On 03/13/2014 03:06 PM, Antoine Ténart wrote: +clocks { +#address-cells = 0; +#size-cells = 0; + +smclk: sysmgr-clock { +compatible = fixed-clock; +#clock-cells = 0

[PATCH v3 2/3] ARM: berlin2q: add the Marvell Armada 1500 pro in the documentation

2014-03-17 Thread Antoine Ténart
Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/arm/Marvell/README | 5 + Documentation/devicetree/bindings/arm/marvell,berlin.txt | 1 + 2 files changed, 6 insertions(+) diff --git a/Documentation/arm/Marvell/README b/Documentation

[PATCH v3 1/3] ARM: dts: berlin2q: add the Marvell Armada 1500 pro

2014-03-17 Thread Antoine Ténart
Adds initial support for the Marvell Armada 1500 pro (BG2Q) SoC (Berlin family). The SoC has nodes for cpu, l2 cache controller, interrupt controllers, local timer, apb timers and uarts for now. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com Signed-off-by: Alexandre Belloni

[PATCH v3 0/3] ARM: add initial support for the Marvell BG2-Q DMP

2014-03-17 Thread Antoine Ténart
size - added more information in commit logs - shorted nodes by address - fixed clocks cells config - renamed the Marvell BG2-Q DMP device tree - moved documentation changes into a single patch - fixed documentation typo Antoine Ténart (3): ARM: dts

[PATCH v3 3/3] ARM: dts: berlin2q: add the Marvell BG2-Q DMP device tree

2014-03-17 Thread Antoine Ténart
Adds initial support for the Marvell BG2-Q DMP. The board has 2GB of memory, an uart activated and what's initially supported by the Marvell Armada 1500 pro dtsi. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/Makefile | 3 ++- arch/arm

Re: [PATCH v3 1/3] ARM: dts: berlin2q: add the Marvell Armada 1500 pro

2014-03-18 Thread Antoine Ténart
name it as twdclk to avoid confusion? On Berlin, sysclk is another clk rather than the clk for twd. Sure, I'll change the name and send a v4. Antoine -- Antoine Ténart, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send

[PATCH v4 3/3] ARM: dts: berlin2q: add the Marvell BG2-Q DMP device tree

2014-03-18 Thread Antoine Ténart
Adds initial support for the Marvell BG2-Q DMP. The board has 2GB of memory, an uart activated and what's initially supported by the Marvell Armada 1500 pro dtsi. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/Makefile | 3 ++- arch/arm

[PATCH v4 1/3] ARM: dts: berlin2q: add the Marvell Armada 1500 pro

2014-03-18 Thread Antoine Ténart
Adds initial support for the Marvell Armada 1500 pro (BG2Q) SoC (Berlin family). The SoC has nodes for cpu, l2 cache controller, interrupt controllers, local timer, apb timers and uarts for now. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com Signed-off-by: Alexandre Belloni

[PATCH v4 2/3] ARM: berlin2q: add the Marvell Armada 1500 pro in the documentation

2014-03-18 Thread Antoine Ténart
Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/arm/Marvell/README | 5 + Documentation/devicetree/bindings/arm/marvell,berlin.txt | 1 + 2 files changed, 6 insertions(+) diff --git a/Documentation/arm/Marvell/README b/Documentation

[PATCH v4 0/3] ARM: add initial support for the Marvell BG2-Q DMP

2014-03-18 Thread Antoine Ténart
in commit logs - shorted nodes by address - fixed clocks cells config - renamed the Marvell BG2-Q DMP device tree - moved documentation changes into a single patch - fixed documentation typo Antoine Ténart (3): ARM: dts: berlin2q: add the Marvell Armada 1500 pro

[PATCH 0/2] ARM: add initial support for the Marvell BG2-Q DMP

2014-03-12 Thread Antoine Ténart
This serie adds the initial support for the Marvell BG2-Q DMP (part of the Berlin family). SoC has nodes for cpu, l2 cache controller, interrupt controllers, local timer, apb timers and uarts for now. Homepage: http://www.marvell.com/digital-entertainment/armada-1500-pro/ Antoine Ténart (2

[PATCH 2/2] ARM: dts: berlin2q: add the Marvell BG2-Q DMP device tree

2014-03-12 Thread Antoine Ténart
Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/Makefile | 3 ++- arch/arm/boot/dts/berlin2q-dmp.dts | 32 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/berlin2q-dmp.dts diff

[PATCH 1/2] ARM: dts: berlin2q: add the Marvell Armada 1500 pro (BG2Q) device tree

2014-03-12 Thread Antoine Ténart
Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com Signed-off-by: Alexandre Belloni alexandre.bell...@free-electrons.com --- Documentation/arm/Marvell/README | 5 + .../devicetree/bindings/arm/marvell,berlin.txt | 1 + arch/arm/boot/dts/berlin2q.dtsi

Re: [PATCH 2/2] ARM: dts: berlin2q: add the Marvell BG2-Q DMP device tree

2014-03-12 Thread Antoine Ténart
On 12/03/2014 12:20, Arnd Bergmann wrote: On Wednesday 12 March 2014 12:06:04 Antoine Ténart wrote: + + soc { + apb@fc { + uart0: uart@9000 { + status = okay

Re: [PATCH 1/2] ARM: berlin: add scu and chipctrl device nodes for BG2/BG2Q

2014-03-21 Thread Antoine Ténart
sebastian.hesselba...@gmail.com Acked-by: Antoine Ténart antoine.ten...@free-electrons.com Also tested on the BG2Q, Tested-by: Antoine Ténart antoine.ten...@free-electrons.com --- Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll pawel.m...@arm.com Cc: Mark Rutland mark.rutl...@arm.com Cc: Ian Campbell

Re: [PATCH 2/2] ARM: berlin: add SMP support

2014-03-21 Thread Antoine Ténart
. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Acked-by: Antoine Ténart antoine.ten...@free-electrons.com Also tested on the BG2Q, Tested-by: Antoine Ténart antoine.ten...@free-electrons.com --- Cc: Russell King li...@arm.linux.org.uk Cc: Antoine Tenart antoine.ten...@free

[PATCH 9/9] ARM: dts: Berlin: enable USB on the BG2Q DMP

2014-06-05 Thread Antoine Ténart
Enable the 2 available USB PHY and USB nodes on the Marvell Berlin BG2Q DMP. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/berlin2q-marvell

[PATCH 2/9] ARM: Berlin: select the reset controller

2014-06-05 Thread Antoine Ténart
The Marvell Berlin SoCs now has a reset controller. Add the needed configuration. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/mach-berlin/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-berlin/Kconfig b/arch/arm/mach-berlin/Kconfig

[PATCH 8/9] ARM: dts: berlin: add BG2Q nodes for USB support

2014-06-05 Thread Antoine Ténart
Adds nodes describing the Marvell Berlin BG2Q USB PHY and USB. The BG2Q SoC has 3 USB host controller, compatible with ChipIdea. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 51 + 1 file changed, 51

[PATCH 0/9] ARM: Berlin: USB support

2014-06-05 Thread Antoine Ténart
only on the BG2Q and are compatible with USB ChipIdea. We here add a glue to use the available common functions for this kind of controllers. A USB PHY driver is also added to control the PHY. Antoine Ténart (9): reset: add the Berlin reset controller driver ARM: Berlin: select the reset

[PATCH 6/9] usb: chipidea: add Berlin USB support

2014-06-05 Thread Antoine Ténart
The Marvell Berlin USB controllers are compatible with ChipIdea. Add a driver using the ChipIdea common functions to support them. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/usb/chipidea/Makefile | 1 + drivers/usb/chipidea/ci_hdrc_berlin.c | 108

[PATCH 7/9] Documentation: bindings: add doc for the Berlin ChipIdea USB driver

2014-06-05 Thread Antoine Ténart
Document the Marvell Berlin USB driver bindings. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- .../devicetree/bindings/usb/ci-hdrc-berlin.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ci-hdrc

[PATCH 1/9] reset: add the Berlin reset controller driver

2014-06-05 Thread Antoine Ténart
Add a reset controller for Marvell Berlin SoCs which is used by the USB PHYs drivers (for now). Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/reset/Makefile | 1 + drivers/reset/reset-berlin.c | 113 +++ 2 files

[PATCH 5/9] Documentation: bindings: add doc for the Berlin USB PHY

2014-06-05 Thread Antoine Ténart
Document the bindings of the Marvell Berlin USB PHY driver. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- .../devicetree/bindings/usb/berlin-usbphy.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH 3/9] ARM: dts: berlin: add a required reset property in the chip controller node

2014-06-05 Thread Antoine Ténart
The chip controller node now also describes the Marvell Berlin reset controller. Add the required 'reset-cells' property. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2.dtsi | 1 + arch/arm/boot/dts/berlin2cd.dtsi | 1 + arch/arm/boot/dts

[PATCH 4/9] usb: phy: add the Berlin USB PHY driver

2014-06-05 Thread Antoine Ténart
Add the driver driving the Marvell Berlin USB PHY. This allows to initialize the PHY and to use it from the USB driver later. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/usb/phy/Kconfig | 9 ++ drivers/usb/phy/Makefile | 1 + drivers/usb/phy

Re: [PATCH 3/9] ARM: dts: berlin: add a required reset property in the chip controller node

2014-06-05 Thread Antoine Ténart
On Thu, Jun 05, 2014 at 06:39:07PM +0200, Philipp Zabel wrote: Am Donnerstag, den 05.06.2014, 17:48 +0200 schrieb Antoine Ténart: The chip controller node now also describes the Marvell Berlin reset controller. Add the required 'reset-cells' property. Signed-off-by: Antoine Ténart

Re: [PATCH 1/9] reset: add the Berlin reset controller driver

2014-06-05 Thread Antoine Ténart
. The reg property is shared between drivers using the common chip controller node. I do not know how many registers are actually used to reset. We then could hardcode the size, with the registers actually used here? Thanks for the review! Antoine -- Antoine Ténart, Free Electrons Embedded Linux

Re: [PATCH 4/9] usb: phy: add the Berlin USB PHY driver

2014-06-06 Thread Antoine Ténart
Hi, On Fri, Jun 06, 2014 at 12:09:06PM +0530, Vivek Gautam wrote: On Thu, Jun 5, 2014 at 9:18 PM, Antoine Ténart antoine.ten...@free-electrons.com wrote: Add the driver driving the Marvell Berlin USB PHY. This allows to initialize the PHY and to use it from the USB driver later. Just out

Re: [PATCH 4/9] usb: phy: add the Berlin USB PHY driver

2014-06-06 Thread Antoine Ténart
Sebastian, On Fri, Jun 06, 2014 at 12:54:06PM +0200, Sebastian Hesselbarth wrote: On 06/05/2014 05:48 PM, Antoine Ténart wrote: + +#include linux/gpio.h +#include linux/io.h +#include linux/module.h +#include linux/of_gpio.h +#include linux/usb/phy.h +#include linux/platform_device.h

Re: [PATCH 6/9] usb: chipidea: add Berlin USB support

2014-06-06 Thread Antoine Ténart
Sebastian, On Fri, Jun 06, 2014 at 12:55:54PM +0200, Sebastian Hesselbarth wrote: On 06/05/2014 05:48 PM, Antoine Ténart wrote: + +static const struct of_device_id ci_hdrc_berlin_of_match[] = { +{ .compatible = marvell,berlin-usb }, Looking at the driver, I can see no Berlin-specific

Re: [PATCH v5 0/7] ARM: berlin: add AHCI support

2014-06-11 Thread Antoine Ténart
Hi all, On Mon, May 26, 2014 at 04:51:41PM +0200, Antoine Ténart wrote: This series adds the support for Berlin SoC AHCI controller. The controller allows to use the SATA host interface and, for example, the eSATA port on the BG2Q. The series adds a PHY driver to control the two SATA ports

[PATCH v4 7/7] ARM: berlin: enable the eSATA interface on the BG2Q DMP

2014-05-20 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller with an eSATA interface. Enable it. Only enable the first port, the BG2Q DMP does not support the second one. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 8 1 file changed, 8

[PATCH v4 5/7] Documentation: bindings: document the sub-nodes AHCI bindings

2014-05-20 Thread Antoine Ténart
The libahci now allows to use multiple PHYs and to represent each port as a sub-node. Add these bindings to the documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- .../devicetree/bindings/ata/ahci-platform.txt | 38 +- 1 file changed, 37

[PATCH v4 6/7] ARM: berlin: add the AHCI node for the BG2Q

2014-05-20 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller. Add the corresponding nodes (AHCI, PHY) into its device tree. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot

[PATCH v4 3/7] ata: libahci: allow to use multiple PHYs

2014-05-20 Thread Antoine Ténart
-node. This as the advantage of allowing a per port configuration. Because some ports may be accessible but disabled in the device tree, the default port_map is computed automatically when using this. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/ata/Kconfig

[PATCH v4 4/7] ata: ahci_platform: add the Marvell Berlin AHCI compatible

2014-05-20 Thread Antoine Ténart
The Marvell Berlin AHCI has all his specific in the PHY driver. It then only need to use the libahci functions to work properly. Add its compatible into the libahci_platform driver. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/ata/ahci_platform.c | 1 + 1 file

[PATCH v4 0/7] ARM: berlin: add AHCI support

2014-05-20 Thread Antoine Ténart
and configure registers in the AHCI driver - removed BG2 / BG2CD nodes Antoine Ténart (7): phy: add a driver for the Berlin SATA PHY Documentation: bindings: add the Berlin SATA PHY ata: libahci: allow to use multiple PHYs ata: ahci_platform: add the Marvell Berlin AHCI

[PATCH v4 1/7] phy: add a driver for the Berlin SATA PHY

2014-05-20 Thread Antoine Ténart
registers in the SATA range, the PHY seems to be integrated and no information tells us the contrary. For these reasons, make the driver a SATA PHY driver. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/phy/Kconfig | 5 + drivers/phy/Makefile | 1

[PATCH v4 2/7] Documentation: bindings: add the Berlin SATA PHY

2014-05-20 Thread Antoine Ténart
The Berlin SATA PHY drives the PHY related to the SATA interface. Add the corresponding documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/devicetree/bindings/phy/berlin-sata-phy.txt | 14 ++ 1 file changed, 14 insertions(+) create mode

Re: [PATCH v4 1/7] phy: add a driver for the Berlin SATA PHY

2014-05-20 Thread Antoine Ténart
On Tue, May 20, 2014 at 11:11:17AM +0200, Sebastian Hesselbarth wrote: On 05/20/2014 11:04 AM, Antoine Ténart wrote: +#define HOST_VSA_ADDR 0x0 +#define HOST_VSA_DATA 0x4 +#define PORT_VSR_ADDR 0x78 +#define PORT_VSR_DATA 0x7c Above two lines

Re: [PATCH v4 4/7] ata: ahci_platform: add the Marvell Berlin AHCI compatible

2014-05-20 Thread Antoine Ténart
On Tue, May 20, 2014 at 11:18:11AM +0200, Sebastian Hesselbarth wrote: On 05/20/2014 11:04 AM, Antoine Ténart wrote: The Marvell Berlin AHCI has all his specific in the PHY driver. It then only need to use the libahci functions to work properly. If it is that generic, .. Add its

Re: [PATCH v4 1/7] phy: add a driver for the Berlin SATA PHY

2014-05-20 Thread Antoine Ténart
On Tue, May 20, 2014 at 03:49:42PM +0200, Andrew Lunn wrote: On Tue, May 20, 2014 at 02:34:20PM +0200, Bartlomiej Zolnierkiewicz wrote: On Tuesday, May 20, 2014 11:04:29 AM Antoine Ténart wrote: diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig index 4906c27fa3bd..b31b1986fda4

Re: [PATCH v4 1/7] phy: add a driver for the Berlin SATA PHY

2014-05-20 Thread Antoine Ténart
Hi, On Tue, May 20, 2014 at 02:34:20PM +0200, Bartlomiej Zolnierkiewicz wrote: On Tuesday, May 20, 2014 11:04:29 AM Antoine Ténart wrote: + +static struct phy_berlin_desc desc[] = { + { .val = POWER_DOWN_PHY0 }, + { .val = POWER_DOWN_PHY1 }, Only .val entry of struct

Re: [PATCH v4 1/7] phy: add a driver for the Berlin SATA PHY

2014-05-20 Thread Antoine Ténart
. This was actually fixed by: b51fbf9fb0c3 phy-core: Don't allow building phy-core as a module Antoine -- Antoine Ténart, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH v4 1/7] phy: add a driver for the Berlin SATA PHY

2014-05-20 Thread Antoine Ténart
On Tue, May 20, 2014 at 04:06:52PM +0200, Antoine Ténart wrote: Hi, On Tue, May 20, 2014 at 02:34:20PM +0200, Bartlomiej Zolnierkiewicz wrote: On Tuesday, May 20, 2014 11:04:29 AM Antoine Ténart wrote: + +static struct phy_berlin_desc desc[] = { + { .val = POWER_DOWN_PHY0

Re: [PATCH v3 6/7] Documentation: add the Marvell Berlin pinctrl documentation

2014-05-16 Thread Antoine Ténart
Linus, On Fri, May 16, 2014 at 03:35:48PM +0200, Linus Walleij wrote: On Mon, May 5, 2014 at 7:27 AM, Antoine Ténart antoine.ten...@free-electrons.com wrote: Add the documentation related to the Berlin pin-controller driver and explain how to configure this group based controller

[PATCH 1/5] ARM: berlin: add SMP support

2014-06-02 Thread Antoine Ténart
avoid using the pen lock mechanism. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/mach-berlin/Kconfig | 3 ++ arch/arm/mach-berlin/Makefile | 3 +- arch/arm/mach-berlin/headsmp.S | 30 + arch/arm/mach-berlin/platsmp.c | 99

[PATCH 2/5] Documentation: bindings: document the Marvell Berlin enable-method

2014-06-02 Thread Antoine Ténart
The SMP support for Marvell Berlin SoCs introduce a new enable-method. Document it. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/devicetree/bindings/arm/cpus.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm

[PATCH 5/5] ARM: dts: berlin: add SMP related nodes and properties for BG2Q

2014-06-02 Thread Antoine Ténart
Add required nodes and properties into the Berlin BG2Q device tree to take advantage of the newly introduced SMP support. Add the scu and cpu-ctrl nodes along with the CPUs enable-method property. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi

[PATCH 0/5] ARM: Berlin: SMP support

2014-06-02 Thread Antoine Ténart
lock mechanism. Antoine Ténart (5): ARM: berlin: add SMP support Documentation: bindings: document the Marvell Berlin enable-method Documentation: bindings: add the Berlin CPU control doc ARM: dts: berlin: add SMP related nodes and properties for BG2 ARM: dts: berlin: add SMP related

[PATCH 3/5] Documentation: bindings: add the Berlin CPU control doc

2014-06-02 Thread Antoine Ténart
Document the CPU control compatible, needed for the SMP support on Marvell Berlin SoCs. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/devicetree/bindings/arm/marvell,berlin.txt | 16 1 file changed, 16 insertions(+) diff --git a/Documentation

[PATCH 4/5] ARM: dts: berlin: add SMP related nodes and properties for BG2

2014-06-02 Thread Antoine Ténart
Add required nodes and properties into the Berlin BG2 device tree to take advantage of the newly introduced SMP support. Add the scu and cpu-ctrl nodes along with the CPUs enable-method property. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2.dtsi

Re: [PATCH 1/5] ARM: berlin: add SMP support

2014-06-02 Thread Antoine Ténart
On Mon, Jun 02, 2014 at 10:29:13AM +0100, Russell King - ARM Linux wrote: On Mon, Jun 02, 2014 at 11:21:02AM +0200, Antoine Ténart wrote: diff --git a/arch/arm/mach-berlin/Kconfig b/arch/arm/mach-berlin/Kconfig index d3c5f14dc142..e3733692f67a 100644 --- a/arch/arm/mach-berlin/Kconfig

Re: [PATCH 0/5] ARM: Berlin: SMP support

2014-06-02 Thread Antoine Ténart
Hi Andrew, On Mon, Jun 02, 2014 at 11:35:32AM +0200, Andrew Lunn wrote: On Mon, Jun 02, 2014 at 11:21:01AM +0200, Antoine Ténart wrote: This series adds the SMP support for Marvell Berlin BG2 and BG2Q. This implementation takes advantage of the reset exception register and the software

Re: [PATCH 1/5] ARM: berlin: add SMP support

2014-06-02 Thread Antoine Ténart
Hi Andrew, On Mon, Jun 02, 2014 at 11:47:15AM +0200, Andrew Lunn wrote: On Mon, Jun 02, 2014 at 11:21:02AM +0200, Antoine Ténart wrote: + +static inline void berlin_reset_cpu(unsigned int cpu) +{ + u32 val; + + val = readl(cpu_ctrl + CPU_RESET); + val |= BIT(cpu_logical_map

Re: [PATCH 1/5] ARM: berlin: add SMP support

2014-06-02 Thread Antoine Ténart
On Mon, Jun 02, 2014 at 12:03:32PM +0200, Andrew Lunn wrote: On Mon, Jun 02, 2014 at 12:00:48PM +0200, Antoine Ténart wrote: Hi Andrew, On Mon, Jun 02, 2014 at 11:47:15AM +0200, Andrew Lunn wrote: On Mon, Jun 02, 2014 at 11:21:02AM +0200, Antoine Ténart wrote: + +static inline

[PATCH v5 4/7] ata: ahci_platform: add a generic AHCI compatible

2014-05-26 Thread Antoine Ténart
The ahci_platform driver is a generic driver using the libahci_platform functions. Add a generic compatible to avoid having an endless list of compatibles with no differences for the same driver. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/ata/ahci_platform.c | 2

[PATCH v5 3/7] ata: libahci: allow to use multiple PHYs

2014-05-26 Thread Antoine Ténart
-node. This as the advantage of allowing a per port configuration. Because some ports may be accessible but disabled in the device tree, the default port_map is computed automatically when using this. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/ata/ahci.h

[PATCH v5 0/7] ARM: berlin: add AHCI support

2014-05-26 Thread Antoine Ténart
nodes Antoine Ténart (7): phy: add a driver for the Berlin SATA PHY Documentation: bindings: add the Berlin SATA PHY ata: libahci: allow to use multiple PHYs ata: ahci_platform: add a generic AHCI compatible Documentation: bindings: document the sub-nodes AHCI bindings ARM: berlin: add

[PATCH v5 5/7] Documentation: bindings: document the sub-nodes AHCI bindings

2014-05-26 Thread Antoine Ténart
The libahci now allows to use multiple PHYs and to represent each port as a sub-node. Add these bindings to the documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- .../devicetree/bindings/ata/ahci-platform.txt | 38 +- 1 file changed, 37

[PATCH v5 7/7] ARM: berlin: enable the eSATA interface on the BG2Q DMP

2014-05-26 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller with an eSATA interface. Enable it. Only enable the first port, the BG2Q DMP does not support the second one. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 8 1 file changed, 8

[PATCH v5 6/7] ARM: berlin: add the AHCI node for the BG2Q

2014-05-26 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller. Add the corresponding nodes (AHCI, PHY) into its device tree. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot

[PATCH v5 1/7] phy: add a driver for the Berlin SATA PHY

2014-05-26 Thread Antoine Ténart
registers in the SATA range, the PHY seems to be integrated and no information tells us the contrary. For these reasons, make the driver a SATA PHY driver. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/phy/Kconfig | 7 ++ drivers/phy/Makefile | 1

[PATCH v5 2/7] Documentation: bindings: add the Berlin SATA PHY

2014-05-26 Thread Antoine Ténart
The Berlin SATA PHY drives the PHY related to the SATA interface. Add the corresponding documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/devicetree/bindings/phy/berlin-sata-phy.txt | 14 ++ 1 file changed, 14 insertions(+) create mode

Re: [PATCH] pinctrl: berlin: Use devm_ioremap_resource()

2014-05-27 Thread Antoine Ténart
On Tue, May 27, 2014 at 03:29:17PM +0900, Jingoo Han wrote: Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han jg1@samsung.com Acked-by: Antoine Ténart antoine.ten...@free-electrons.com Thanks! Antoine

[PATCH v2 6/6] ARM: berlin: enable the eSATA interface on the BG2Q DMP

2014-05-12 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller with an eSATA interface. Enable it. Also use the SATA PHY 0, the BG2Q DMP does not has the SATA PHY 1. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 10 ++ 1 file changed, 10

[PATCH v2 0/6] ARM: berlin: add AHCI support

2014-05-12 Thread Antoine Ténart
Antoine Ténart (6): phy: add a driver for the Berlin SATA PHY Documentation: bindings: add the Berlin SATA PHY ata: ahci: add AHCI support for the Berlin BG2Q Documentation: bindings: add the berlin-ahci compatible to the ahci platform ARM: berlin: add the AHCI node for the BG2Q

[PATCH v2 5/6] ARM: berlin: add the AHCI node for the BG2Q

2014-05-12 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller. Add the corresponding nodes (AHCI, SATA PHY) in its device tree. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v2 4/6] Documentation: bindings: add the berlin-ahci compatible to the ahci platform

2014-05-12 Thread Antoine Ténart
The berlin-ahci driver allows Berlin SoCs to support their AHCI SATA controller. Add the corresponding device tree bindings documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/devicetree/bindings/ata/ahci-berlin.txt | 18 ++ 1 file

[PATCH v2 3/6] ata: ahci: add AHCI support for the Berlin BG2Q

2014-05-12 Thread Antoine Ténart
Add support for the Berlin BG2Q AHCI SATA controller allowing to interface with devices like external hard drives. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/ata/Kconfig | 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_berlin.c | 202

[PATCH v2 1/6] phy: add a driver for the Berlin SATA PHY

2014-05-12 Thread Antoine Ténart
The Berlin SoC has a two SATA ports. Add a PHY driver to handle them. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/phy/Kconfig | 5 ++ drivers/phy/Makefile | 1 + drivers/phy/phy-berlin-sata.c | 179

[PATCH v2 2/6] Documentation: bindings: add the Berlin SATA PHY

2014-05-12 Thread Antoine Ténart
The Berlin SATA PHY drives the PHY related to the SATA interface and allows to power up/down each PHY independently. Add the corresponding documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/devicetree/bindings/phy/berlin-sata-phy.txt | 15

[PATCH] phy: exynos-mipi-video: fix check on array index

2014-05-12 Thread Antoine Ténart
The phys array is of size EXYNOS_MIPI_PHYS_NUM. Trying to access the index EXYNOS_MIPI_PHYS_NUM should return an error. Fixes: 069d2e26e9d6 phy: Add driver for Exynos MIPI CSIS/DSIM DPHYs Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/phy/phy-exynos-mipi-video.c | 2

Re: [PATCH v2 3/6] ata: ahci: add AHCI support for the Berlin BG2Q

2014-05-13 Thread Antoine Ténart
Hi Andrew, On Mon, May 12, 2014 at 04:12:21PM +0200, Andrew Lunn wrote: On Mon, May 12, 2014 at 11:16:54AM +0200, Antoine Ténart wrote: […] I've no idea is this is a good or bad idea, but could you put all the above code in the phy driver? It does seem to be mostly phy related. Then teach

Re: [PATCH v2 1/6] phy: add a driver for the Berlin SATA PHY

2014-05-13 Thread Antoine Ténart
Hello, On Mon, May 12, 2014 at 06:16:46PM +0530, Kishon Vijay Abraham I wrote: On Monday 12 May 2014 02:46 PM, Antoine Ténart wrote: […] +struct phy_desc { to be consistent, lets name it phy_berlin_desc. + struct phy *phy; + u32 val; + unsignedindex

Re: [PATCH v2 1/6] phy: add a driver for the Berlin SATA PHY

2014-05-13 Thread Antoine Ténart
On Mon, May 12, 2014 at 11:16:52AM +0200, Antoine Ténart wrote: […] +static int phy_berlin_sata_probe(struct platform_device *pdev) +{ + struct phy *phy; + struct phy_provider *phy_provider; + struct priv *priv; + struct resource *res; + int i; + + priv

[PATCH v3 0/6] ARM: berlin: add AHCI support

2014-05-14 Thread Antoine Ténart
and configure registers in the AHCI driver - removed BG2 / BG2CD nodes Antoine Ténart (6): phy: add a driver for the Berlin SATA PHY Documentation: bindings: add the Berlin SATA PHY ata: ahci: add AHCI support for the Berlin BG2Q Documentation: bindings: add the berlin-ahci

[PATCH v3 5/6] ARM: berlin: add the AHCI node for the BG2Q

2014-05-14 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller. Add the corresponding nodes (AHCI, SATA PHYs) in its device tree. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot

[PATCH v3 6/6] ARM: berlin: enable the eSATA interface on the BG2Q DMP

2014-05-14 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller with an eSATA interface. Enable it. Also use the SATA PHY 0, the BG2Q DMP does not has the SATA PHY 1. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 10 ++ 1 file changed, 10

[PATCH v3 3/6] ata: ahci: add AHCI support for the Berlin BG2Q

2014-05-14 Thread Antoine Ténart
Add support for the Berlin BG2Q AHCI SATA controller allowing to interface with devices like external hard drives. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/ata/Kconfig | 10 +++ drivers/ata/Makefile | 1 + drivers/ata/ahci_berlin.c | 202

[PATCH v3 2/6] Documentation: bindings: add the Berlin SATA PHY

2014-05-14 Thread Antoine Ténart
The Berlin SATA PHY drives the PHY related to the SATA interface and allows to power up/down each PHY independently. Add the corresponding documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- .../devicetree/bindings/phy/berlin-sata-phy.txt| 34

[PATCH v3 1/6] phy: add a driver for the Berlin SATA PHY

2014-05-14 Thread Antoine Ténart
The Berlin SoC has a two SATA ports. Add a PHY driver to handle them. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/phy/Kconfig | 5 ++ drivers/phy/Makefile | 1 + drivers/phy/phy-berlin-sata.c | 180

[PATCH v3 4/6] Documentation: bindings: add the berlin-ahci compatible to the ahci platform

2014-05-14 Thread Antoine Ténart
The berlin-ahci driver allows Berlin SoCs to support their AHCI SATA controller. Add the compatible to the device tree bindings documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- Documentation/devicetree/bindings/ata/ahci-berlin.txt | 18 ++ 1 file

Re: [PATCH v3 1/6] phy: add a driver for the Berlin SATA PHY

2014-05-14 Thread Antoine Ténart
Hi, On Wed, May 14, 2014 at 03:43:03PM +0530, Kishon Vijay Abraham I wrote: Hi, On Wednesday 14 May 2014 03:18 PM, Antoine Ténart wrote: […] +#define to_berlin_sata_phy_priv(desc) \ + container_of((desc), struct phy_berlin_priv, phys[(desc)-index]) + +struct phy_berlin_desc

Re: [PATCH v3 1/6] phy: add a driver for the Berlin SATA PHY

2014-05-14 Thread Antoine Ténart
Arnd, On Wed, May 14, 2014 at 03:02:34PM +0200, Arnd Bergmann wrote: On Wednesday 14 May 2014 11:48:57 Antoine Ténart wrote: +static int phy_berlin_sata_power_on(struct phy *phy) +{ + struct phy_berlin_desc *desc = phy_get_drvdata(phy); + struct phy_berlin_priv *priv

Re: [PATCH v3 1/6] phy: add a driver for the Berlin SATA PHY

2014-05-14 Thread Antoine Ténart
On Wed, May 14, 2014 at 05:31:24PM +0200, Arnd Bergmann wrote: On Wednesday 14 May 2014 16:50:02 Antoine Ténart wrote: On Wed, May 14, 2014 at 03:02:34PM +0200, Arnd Bergmann wrote: On Wednesday 14 May 2014 11:48:57 Antoine Ténart wrote: +static int phy_berlin_sata_power_on(struct phy

[PATCH v6 1/7] phy: add a driver for the Berlin SATA PHY

2014-06-16 Thread Antoine Ténart
registers in the SATA range, the PHY seems to be integrated and no information tells us the contrary. For these reasons, make the driver a SATA PHY driver. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/phy/Kconfig | 7 ++ drivers/phy/Makefile | 1

[PATCH v6 7/7] ARM: berlin: enable the eSATA interface on the BG2Q DMP

2014-06-16 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller with an eSATA interface. Enable it. Only enable the first port, the BG2Q DMP does not support the second one. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 8 1 file changed, 8

[PATCH v6 5/7] Documentation: bindings: document the sub-nodes AHCI bindings

2014-06-16 Thread Antoine Ténart
The libahci now allows to use multiple PHYs and to represent each port as a sub-node. Add these bindings to the documentation. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- .../devicetree/bindings/ata/ahci-platform.txt | 37 ++ 1 file changed, 37

[PATCH v6 4/7] ata: ahci_platform: add a generic AHCI compatible

2014-06-16 Thread Antoine Ténart
The ahci_platform driver is a generic driver using the libahci_platform functions. Add a generic compatible to avoid having an endless list of compatibles with no differences for the same driver. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/ata/ahci_platform.c | 2

[PATCH v6 6/7] ARM: berlin: add the AHCI node for the BG2Q

2014-06-16 Thread Antoine Ténart
The BG2Q has an AHCI SATA controller. Add the corresponding nodes (AHCI, PHY) into its device tree. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot

[PATCH v6 0/7] ARM: berlin: add AHCI support

2014-06-16 Thread Antoine Ténart
:) - wrote a function to select and configure registers in the AHCI driver - removed BG2 / BG2CD nodes Antoine Ténart (7): phy: add a driver for the Berlin SATA PHY Documentation: bindings: add the Berlin SATA PHY ata: libahci: allow to use multiple PHYs ata: ahci_platform: add

[PATCH v6 3/7] ata: libahci: allow to use multiple PHYs

2014-06-16 Thread Antoine Ténart
-node. This as the advantage of allowing a per port configuration. Because some ports may be accessible but disabled in the device tree, the default port_map is computed automatically when using this. Signed-off-by: Antoine Ténart antoine.ten...@free-electrons.com --- drivers/ata/ahci.h

  1   2   3   4   5   6   7   8   >