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

2013-05-02 Thread Sebastian Hesselbarth
On 05/02/13 20:56, Russell King - ARM Linux wrote: On Thu, May 02, 2013 at 08:54:20PM +0200, Sebastian Hesselbarth wrote: On 05/02/13 20:45, Russell King - ARM Linux wrote: On Thu, May 02, 2013 at 08:33:48PM +0200, Sebastian Hesselbarth wrote: On 05/02/2013 08:25 PM, Sebastian Hesselbarth

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

2013-05-02 Thread Sebastian Hesselbarth
On 05/02/13 20:53, Jason Gunthorpe wrote: On Thu, May 02, 2013 at 08:25:04PM +0200, Sebastian Hesselbarth wrote: + +static void __iomem *orion_irq_base[ORION_MAX_IRQREG]; +static unsigned int orion_irq_regs; +static struct irq_domain *orion_irq_domain; + +asmlinkage void __exception_irq_entry

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

2013-05-02 Thread Sebastian Hesselbarth
On 05/02/2013 09:11 PM, Arnd Bergmann wrote: On Thursday 02 May 2013, Jason Gunthorpe wrote: +static struct of_device_id orion_irq_dt_ids[] __initconst = { + { .compatible = marvell,orion-mpic, .data = orion_of_init }, + { } Is there a strong reason to change the compatible string?

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

2013-05-02 Thread Sebastian Hesselbarth
On 05/02/2013 09:34 PM, Sebastian Hesselbarth wrote: On 05/02/2013 09:11 PM, Arnd Bergmann wrote: On Thursday 02 May 2013, Jason Gunthorpe wrote: +static struct of_device_id orion_irq_dt_ids[] __initconst = { + { .compatible = marvell,orion-mpic, .data = orion_of_init

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

2013-05-02 Thread Sebastian Hesselbarth
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 that will cut me from email as I use it as relay server ;) Maybe I can turn it into a test bed for a while. There

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

2013-05-02 Thread Sebastian Hesselbarth
On 05/02/2013 11:34 PM, Thomas Gleixner wrote: please do not take the rant below personally. You just happen to trigger it. Thomas, it is okay for me - but thanks for the notice! I will comment below. On Thu, 2 May 2013, Sebastian Hesselbarth wrote: +static void orion_irq_mask(struct

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

2013-05-02 Thread Sebastian Hesselbarth
On 05/03/2013 12:09 AM, Arnd Bergmann wrote: On Thursday 02 May 2013, Sebastian Hesselbarth wrote: Just look at the various implementations in drivers/irqchip/ and find out how similar they are. Moving code to drivers/irqchip/ does not make an excuse for reestablishing the mess which

[PATCH v2 0/5] ARM: orion: add orion irqchip driver

2013-05-02 Thread Sebastian Hesselbarth
for irqdomain support for generic irq and perhaps even a DT enabled generic irq chip driver. The patch set still can be used to port other Orion SoCs as I did with Dove. It also merges irqchip driver patches with Dove patches to use this driver. Sebastian Hesselbarth (5): irqchip: add support

[PATCH v2 5/5] ARM: dove: add DT nodes for irqchip conversion

2013-05-02 Thread Sebastian Hesselbarth
This patch adds required device tree nodes for irqchip conversion on Dove. The nodes are named and layed out to allow seamless migration to true DT enabled drivers as soon as they are available. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Changelog: v1-v2: - merge DT

[PATCH v2 3/5] ARM: dove: add DT parsing for legacy timer

2013-05-02 Thread Sebastian Hesselbarth
To allow to move to orion irqchip driver, existing legacy devices have to map their irqs. This patch adds init code to map the corresponding irqs. It will vanish as soon as there is true device tree support for orion timer. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com

[PATCH v2 4/5] ARM: dove: move DT boards to orion irqchip driver

2013-05-02 Thread Sebastian Hesselbarth
With legacy devices mapping their irqs, we can now switch DT enabled boards to orion irqchip driver. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Changelog: v1-v2: - split off DT changes (Suggested by Jason Cooper) - use irqchip_init (Suggested by Jason Gunthorpe) Cc

[PATCH v2 1/5] irqchip: add support for Marvell Orion SoCs

2013-05-02 Thread Sebastian Hesselbarth
This patch adds an irqchip driver for the main interrupt controller found on Marvell Orion SoCs (Kirkwood, Dove, Orion5x, Discovery Innovation). Corresponding device tree documentation is also added. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: This patch

[PATCH v2 2/5] ARM: dove: add DT parsing for legacy mv643xx_eth

2013-05-02 Thread Sebastian Hesselbarth
To allow to move to orion irqchip driver, existing legacy devices have to map their irqs. This patch adds init code to map the corresponding irqs. It will vanish as soon as there is true device tree support for mv643xx_eth. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com

Re: [PATCH v2 2/5] ARM: dove: add DT parsing for legacy mv643xx_eth

2013-05-03 Thread Sebastian Hesselbarth
On 05/03/2013 07:06 AM, Andrew Lunn wrote: On Fri, May 03, 2013 at 01:48:36AM +0200, Sebastian Hesselbarth wrote: To allow to move to orion irqchip driver, existing legacy devices have to map their irqs. This patch adds init code to map the corresponding irqs. It will vanish as soon

Re: [PATCH v2] clk: si5351: Allow user to define disabled state for every clock output

2013-05-03 Thread Sebastian Hesselbarth
-by: Sebastian Hesselbarthsebastian.hesselba...@gmail.com --- Changes from v1-v2: Sebastian Hesselbarth send me updated version of patch which was based on v1. Resending with updates. Marek, it is ok to be a little bit more noisy about changes. But as I took your v1 and did it, here

Re: [PATCH v2 2/2] clk: si5351: Set initial clkout rate when defined in platform data.

2013-05-03 Thread Sebastian Hesselbarth
-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Next time sending patches for clk-si5351, please ensure you are using get_maintainers.pl and add me to the list of people to Cc also. Sebastian drivers/clk/clk-si5351.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

Re: [PATCH v2 1/5] irqchip: add support for Marvell Orion SoCs

2013-05-03 Thread Sebastian Hesselbarth
On 05/03/13 14:55, Russell King - ARM Linux wrote: On Fri, May 03, 2013 at 01:48:35AM +0200, Sebastian Hesselbarth wrote: This patch adds an irqchip driver for the main interrupt controller found on Marvell Orion SoCs (Kirkwood, Dove, Orion5x, Discovery Innovation). Corresponding device tree

Re: [RFC patch 7/8] genirq: generic chip: Add linear irq domain support

2013-05-03 Thread Sebastian Hesselbarth
On 05/03/2013 11:50 PM, Thomas Gleixner wrote: Provide infrastructure for irq chip implementations which work on linear irq domains. Thomas, I am happy that I put you into rant mode. It took me little more than an hour to read through your patches, prepare orion irqchip driver on top of them

Re: [RFC patch 8/8] irqchip: sun4i: Convert to generic irq chip

2013-05-03 Thread Sebastian Hesselbarth
On 05/03/2013 11:50 PM, Thomas Gleixner wrote: Proof of concept patch to demonstrate the new irqdomain support for the generic irq chip. Untested !! Signed-off-by: Thomas Gleixner t...@linutronix.de Cc: Maxime Ripard maxime.rip...@free-electrons.com --- ... + gc-reg_base =

Re: [PATCH] ARM: Orion: Hoist bridge interrupt handling out of the timer

2013-06-05 Thread Sebastian Hesselbarth
On 06/04/13 19:26, Jason Gunthorpe wrote: On Sun, Dec 09, 2012 at 02:06:48PM +0100, Sebastian Hesselbarth wrote: The main irq controller will be required for sure, but for the secondary irq controller we had a discussion long ago. IIRC Gregory proposed to have shared irqs handled by timer

[PATCH v3 3/6] ARM: dove: move device tree nodes to DT irqchip and clocksource

2013-06-06 Thread Sebastian Hesselbarth
With recent support for true irqchip and clocksource drivers for Orion SoCs, now make use of it on DT enabled Dove boards. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring rob.herr...@calxeda.com Cc: Rob Landley r

[PATCH v3 4/6] ARM: kirkwood: move device tree nodes to DT irqchip and clocksource

2013-06-06 Thread Sebastian Hesselbarth
With recent support for true irqchip and clocksource drivers for Orion SoCs, now make use of it on DT enabled Kirkwood boards. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring rob.herr...@calxeda.com Cc: Rob Landley

[PATCH v3 6/6] ARM: kirkwood: convert to DT irqchip and clocksource

2013-06-06 Thread Sebastian Hesselbarth
With recent support for true irqchip and clocksource drivers for Orion SoCs, now make use of it on DT enabled Kirkwood boards. This also introduces a new Kconfig option for legacy (non-DT) Kirkwood where old code is moved out to and polishes DT board file a little bit. Signed-off-by: Sebastian

[PATCH 0/6] Marvell Orion SoC irqchip and clocksource

2013-06-06 Thread Sebastian Hesselbarth
-dove.git orion-irqchip-for-v3.11 and has been tested on Dove/CuBox and compile tested for Kirkwood. Sebastian Hesselbarth (6): irqchip: add support for Marvell Orion SoCs clocksource: add Marvell Orion SoC timer ARM: dove: move device tree nodes to DT irqchip and clocksource ARM: kirkwood: move

[PATCH v3 1/6] irqchip: add support for Marvell Orion SoCs

2013-06-06 Thread Sebastian Hesselbarth
This patch adds an irqchip driver for the main interrupt controller found on Marvell Orion SoCs (Kirkwood, Dove, Orion5x, Discovery Innovation). Corresponding device tree documentation is also added. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: Grant Likely

[PATCH v3 5/6] ARM: dove: convert to DT irqchip and clocksource

2013-06-06 Thread Sebastian Hesselbarth
With recent support for true irqchip and clocksource drivers for Orion SoCs, now make use of it on DT enabled Dove boards. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring rob.herr...@calxeda.com Cc: Rob Landley r

[PATCH v3 2/6] clocksource: add Marvell Orion SoC timer

2013-06-06 Thread Sebastian Hesselbarth
-orion.c b/drivers/clocksource/time-orion.c new file mode 100644 index 000..4ecb2f8 --- /dev/null +++ b/drivers/clocksource/time-orion.c @@ -0,0 +1,143 @@ +/* + * Marvell Orion SoC timer handling. + * + * Sebastian Hesselbarth sebastian.hesselba...@gmail.com + * + * This file is licensed under

Re: [PATCH v3 4/6] ARM: kirkwood: move device tree nodes to DT irqchip and clocksource

2013-06-07 Thread Sebastian Hesselbarth
On 06/07/13 10:30, Thomas Petazzoni wrote: On Thu, 6 Jun 2013 18:27:12 +0200, Sebastian Hesselbarth wrote: - wdt@20300 { + wdt: watchdog-timer@20300 { compatible = marvell,orion-wdt; reg = 0x20300 0x28

Re: [PATCH v3 4/6] ARM: kirkwood: move device tree nodes to DT irqchip and clocksource

2013-06-07 Thread Sebastian Hesselbarth
On 06/07/13 10:30, Thomas Petazzoni wrote: On Thu, 6 Jun 2013 18:27:12 +0200, Sebastian Hesselbarth wrote: - wdt@20300 { + wdt: watchdog-timer@20300 { compatible = marvell,orion-wdt; reg = 0x20300 0x28

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

2013-05-29 Thread Sebastian Hesselbarth
On 05/29/2013 09:02 PM, Mike Turquette wrote: Quoting Sebastian Hesselbarth (2013-05-10 18:08:00) Marvell EBU SoCs share some common clock functions that register core clocks or clock gates from SoC specific data. These clock drivers are organized by function and over time the drivers filled up

[PATCH v5 01/13] net: mv643xx_eth: use phy_disconnect instead of phy_detach

2013-05-29 Thread Sebastian Hesselbarth
of the network device. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: I observed this behavior when removing a modular mv643xx_eth driver after attaching it to a phy handled by (also modular) mvmdio. The mvmdio conversion has been done in commit

[PATCH v5 00/13] net: mv643xx_eth DT support and fixes

2013-05-29 Thread Sebastian Hesselbarth
easily. Instead the current workaround by not gating ge clocks is kept. The OF property workaround is postponed until some easy to use of_set_property is available. Sebastian Hesselbarth (13): net: mv643xx_eth: use phy_disconnect instead of phy_detach net: mv643xx_eth: use managed

[PATCH v5 06/13] net: mv643xx_eth: add DT parsing support

2013-05-29 Thread Sebastian Hesselbarth
platform_data. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: Although different, device tree bindings are compatible with PPC bindings. As I do not have access to any PPC platform using mv643xx_eth, I leave conversion (phy vs phy-handle) and compatible string name up to PPC

[PATCH v5 12/13] ARM: kirkwood: remove redundant DT board files

2013-05-29 Thread Sebastian Hesselbarth
With DT support for mv643xx_eth board specific init for some boards now is unneccessary. Remove those board files, Kconfig entries, and corresponding entries in kirkwood_defconfig. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: board-km_kirkwood.c is also removed

[PATCH v5 13/13] ARM: orion5x: remove legacy mv643xx_eth board setup

2013-05-29 Thread Sebastian Hesselbarth
With DT support for mv643xx_eth we do not need legacy platform_data based setup for DT enabled boards. This patch removes eth setup for all orion5x DT board files. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek

[PATCH v5 10/13] ARM: dove: remove legacy mv643xx_eth setup

2013-05-29 Thread Sebastian Hesselbarth
With DT support for mv643xx_eth we do not need legacy platform_data based setup for DT enabled boards anymore. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja

[PATCH v5 08/13] ARM: kirkwood: add gigabit ethernet and mvmdio device tree nodes

2013-05-29 Thread Sebastian Hesselbarth
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled Kirkwood boards. Phy nodes are also added with reg property set on a per-board basis. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Changelog: v4-v5: - use Kirkwood specific compatible string Cc

[PATCH v5 09/13] ARM: orion5x: add gigabit ethernet and mvmdio device tree nodes

2013-05-29 Thread Sebastian Hesselbarth
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled Orion5x boards. Phy nodes are also added with reg property set on a per-board basis. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Changelog: v3-v4: - convert to new device tree binding Cc: David

[PATCH v5 07/13] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-29 Thread Sebastian Hesselbarth
This patch adds orion-eth and mvmdio device tree nodes for DT enabled Dove boards. As there is only one ethernet controller on Dove, a default phy node is also added with a note to set its reg property on a per-board basis. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com

[PATCH v5 05/13] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-29 Thread Sebastian Hesselbarth
using this driver should also be protected from clearing that bit. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: In contrast to the reset value of 0 for CLK125_BYPASS_EN bit as stated in Kirkwood datasheet, we confirmed that reset value is 1 instead. Either datasheet

[PATCH v5 11/13] ARM: kirkwood: remove legacy clk alias for mv643xx_eth

2013-05-29 Thread Sebastian Hesselbarth
With all boards converted to DT enabled mv643xx_eth we can now remove the clock alias for gbe clocks. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja...@lakedaemon.net Cc

[PATCH v5 04/13] net: mv643xx_eth: use of_phy_connect if phy_node present

2013-05-29 Thread Sebastian Hesselbarth
This connects to a phy node passed to the port device instead of probing the phy by phy_addr. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew

[PATCH v5 02/13] net: mv643xx_eth: use managed devm_ioremap for port registers

2013-05-29 Thread Sebastian Hesselbarth
Make use of managed devm_ioremap and remove corresponding iounmap. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew Lunn and...@lunn.ch Cc

[PATCH v5 03/13] net: mv643xx_eth: add phy_node to platform_data struct

2013-05-29 Thread Sebastian Hesselbarth
This adds a struct device_node pointer for a phy passed by phandle to mv643xx_eth node. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew Lunn

Re: [PATCH v5 12/13] ARM: kirkwood: remove redundant DT board files

2013-05-30 Thread Sebastian Hesselbarth
On 05/30/13 11:06, Arnaud Ebalard wrote: Sebastian Hesselbarth sebastian.hesselba...@gmail.com writes: With DT support for mv643xx_eth board specific init for some boards now is unneccessary. Remove those board files, Kconfig entries, and corresponding entries in kirkwood_defconfig. Signed-off

Re: [PATCH v5 00/13] net: mv643xx_eth DT support and fixes

2013-05-31 Thread Sebastian Hesselbarth
On 05/31/2013 02:55 AM, David Miller wrote: From: Sebastian Hesselbarthsebastian.hesselba...@gmail.com Date: Wed, 29 May 2013 21:32:42 +0200 For the patches above I suggest to take Patches 1-6 through David Miller's branch, and Patches 7-12 through Jason Cooper's when the former have appeared

Re: [PATCH 1/2] ALSA: ASoc: spdif_transciever: Add DT support

2013-04-23 Thread Sebastian Hesselbarth
On Fri, Apr 19, 2013 at 7:36 PM, Daniel Mack zon...@gmail.com wrote: Hi Michal, On 19.04.2013 15:38, Michal Bachraty wrote: Add devicetree support for this dummy audio soc driver. I think Mark wants to see only ASoC: in the patch subjects now. Signed-off-by: Michal Bachraty

Re: [PATCH v2 2/3] ASoC: spdif_transmitter: Add DT support.

2013-04-26 Thread Sebastian Hesselbarth
On 04/25/2013 03:13 PM, Marek Belisko wrote: Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachratymichal.bachr...@streamunlimited.com Signed-off-by: Marek Beliskomarek.beli...@streamunlimited.com --- .../bindings/sound/spdif-transmitter.txt | 10

Re: [PATCH 1/2] clk: si5351: Fix clkout rate computation.

2013-04-28 Thread Sebastian Hesselbarth
On 04/23/2013 08:22 AM, Marek Belisko wrote: Rate was incorrectly computed because we read from wrong divider register. Signed-off-by: Marek Beliskomarek.beli...@streamunlimited.com Marek, sorry for the late reply and very good catch! Acked-by: Sebastian Hesselbarth sebastian.hesselba

Re: [PATCH 2/2] clk: si5351: Apply rate when clock-frequency is defined in devicetree.

2013-04-28 Thread Sebastian Hesselbarth
to platform data instead. If you can send an updated version of this patch you get my Acked-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com + if (pdata-clkout[n].rate != 0) { + int ret; + ret = clk_set_rate(clk, pdata-clkout[n

[PATCH] clk: si5351: Allow to build without CONFIG_OF

2013-04-28 Thread Sebastian Hesselbarth
In clk-si5351 there was some dependency to CONFIG_OF that permitted the use of the driver on !CONFIG_OF platforms. This patch adds proper #ifdef around of_clk_add_provider and removes the dependency on CONFIG_OF. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note

[RFC] drm: i2c: add irq handler for tda998x slave encoder

2013-05-19 Thread Sebastian Hesselbarth
handling is done threaded with a workqueue to notify drm backend of HPD events. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Airlie airl...@linux.ie Cc: Russell King rmk+ker...@arm.linux.org.uk Cc: Rob Clark robdcl...@gmail.com Cc: Daniel Vetter Cc: dri-de

Re: [RFC] drm: i2c: add irq handler for tda998x slave encoder

2013-05-20 Thread Sebastian Hesselbarth
On 05/19/2013 10:45 PM, Russell King - ARM Linux wrote: On Sun, May 19, 2013 at 06:49:22PM +0200, Sebastian Hesselbarth wrote: This adds an irq handler for HPD to the tda998x slave encoder driver to trigger HPD change instead of polling. The gpio connected to int pin of tda998x is passed

Re: [PATCH v3 1/7] net: mv643xx_eth: add Device Tree bindings

2013-05-20 Thread Sebastian Hesselbarth
On 05/20/2013 11:19 PM, Simon Baatz wrote: On Mon, May 06, 2013 at 05:33:34PM +0200, Sebastian Hesselbarth wrote: From: Florian Fainelliflor...@openwrt.org ... @@ -2485,13 +2499,21 @@ static int mv643xx_eth_shared_probe(struct platform_device *pdev) if (dram

Re: [PATCH v3 6/7] ARM: kirkwood: add gigabit ethernet and mvmdio device tree nodes

2013-05-20 Thread Sebastian Hesselbarth
On 05/20/2013 11:27 PM, Simon Baatz wrote: Hi Sebastian, On Mon, May 06, 2013 at 05:33:39PM +0200, Sebastian Hesselbarth wrote: This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled Kirkwood boards. Phy nodes are also added with reg property set on a per-board basis

[PATCH v4 08/12] ARM: orion5x: add gigabit ethernet and mvmdio device tree nodes

2013-05-21 Thread Sebastian Hesselbarth
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled Orion5x boards. Phy nodes are also added with reg property set on a per-board basis. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Changelog: v3-v4: - convert to new device tree binding Cc: David

[PATCH v4 11/12] ARM: kirkwood: remove redundant DT board files

2013-05-21 Thread Sebastian Hesselbarth
With DT support for mv643xx_eth, board specific init for some boards now is unneccessary. Remove those board files, Kconfig entries, and corresponding entries in kirkwood_defconfig. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: board-km_kirkwood.c is also removed

[PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-21 Thread Sebastian Hesselbarth
This patch adds orion-eth and mvmdio device tree nodes for DT enabled Dove boards. As there is only one ethernet controller on Dove, a default phy node is also added with a note to set its reg property on a per-board basis. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com

[PATCH v4 12/12] ARM: orion5x: remove legacy mv643xx_eth board setup

2013-05-21 Thread Sebastian Hesselbarth
With DT support for mv643xx_eth we do not need legacy platform_data based setup for DT enabled boards. This patch removes eth setup for all orion5x DT board files. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek

[PATCH v4 10/12] ARM: kirkwood: remove legacy clk alias for mv643xx_eth

2013-05-21 Thread Sebastian Hesselbarth
With all boards converted to DT enabled mv643xx_eth we can now remove the clock alias for gbe clocks. The workaround for ge0/ge1 clock gates is not removed, as Kirkwood ethernet controllers loose MAC address stored in internal registers on gated ge0/ge1 clocks. Signed-off-by: Sebastian

[PATCH v4 09/12] ARM: dove: remove legacy mv643xx_eth setup

2013-05-21 Thread Sebastian Hesselbarth
With DT support for mv643xx_eth we do not need legacy platform_data based setup for DT enabled boards anymore. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja

[PATCH v4 07/12] ARM: kirkwood: add gigabit ethernet and mvmdio device tree nodes

2013-05-21 Thread Sebastian Hesselbarth
This patch adds mv643xx_eth and mvmdio device tree nodes for DT enabled Kirkwood boards. Phy nodes are also added with reg property set on a per-board basis. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Changelog: v3-v4: - convert to new device tree binding - fix phy

[PATCH v4 00/12] net: mv643xx_eth DT support and fixes

2013-05-21 Thread Sebastian Hesselbarth
it. Sebastian Hesselbarth (12): net: mv643xx_eth: use phy_disconnect instead of phy_detach net: mv643xx_eth: use managed devm_ioremap for port registers net: mv643xx_eth: add phy_node to platform_data struct net: mv643xx_eth: use of_phy_connect if phy_node present net: mv643xx_eth: add DT

[PATCH v4 01/12] net: mv643xx_eth: use phy_disconnect instead of phy_detach

2013-05-21 Thread Sebastian Hesselbarth
of the network device. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: I observed this behavior when removing a modular mv643xx_eth driver after attaching it to a phy handled by (also modular) mvmdio. The mvmdio conversion has been done in commit

[PATCH v4 05/12] net: mv643xx_eth: add DT parsing support

2013-05-21 Thread Sebastian Hesselbarth
platform_data. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: Although different, device tree bindings are compatible with PPC bindings. As I do not have access to any PPC platform using mv643xx_eth, I leave conversion (phy vs phy-handle) and compatible string name up to PPC

[PATCH v4 04/12] net: mv643xx_eth: use of_phy_connect if phy_node present

2013-05-21 Thread Sebastian Hesselbarth
This connects to a phy node passed to the port device instead of probing the phy by phy_addr. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew

[PATCH v4 03/12] net: mv643xx_eth: add phy_node to platform_data struct

2013-05-21 Thread Sebastian Hesselbarth
This adds a struct device_node pointer for a phy passed by phandle to mv643xx_eth node. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew Lunn

[PATCH v4 02/12] net: mv643xx_eth: use managed devm_ioremap for port registers

2013-05-21 Thread Sebastian Hesselbarth
Make use of managed devm_ioremap and remove corresponding iounmap. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew Lunn and...@lunn.ch Cc

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/21/2013 07:48 PM, Andrew Lunn wrote: On Tue, May 21, 2013 at 06:41:44PM +0200, Sebastian Hesselbarth wrote: This patch adds orion-eth and mvmdio device tree nodes for DT enabled Dove boards. As there is only one ethernet controller on Dove, a default phy node is also added with a note

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 12:04 PM, tiejun.chen wrote: On 05/22/2013 05:43 PM, Sebastian Hesselbarth wrote: On 05/21/2013 07:48 PM, Andrew Lunn wrote: On Tue, May 21, 2013 at 06:41:44PM +0200, Sebastian Hesselbarth wrote: This patch adds orion-eth and mvmdio device tree nodes for DT enabled Dove boards

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 06:59 PM, Jason Gunthorpe wrote: On Wed, May 22, 2013 at 09:10:10AM -0400, Jason Cooper wrote: iirc, our solution to this was to parse the ATAGs for the mac addr and update the appended dtb. This way, module load and unload would work without loosing the mac address. I believe

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 07:35 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: On 05/22/2013 06:59 PM, Jason Gunthorpe wrote: On Wed, May 22, 2013 at 09:10:10AM -0400, Jason Cooper wrote: iirc, our solution to this was to parse the ATAGs for the mac addr

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 07:48 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hesselbarth wrote: Hmm, maybe a little bit too early. While restoring the MAC address now works, another bug arises which I guess is related with phy setup and aneg. Will investigate and update

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 08:24 PM, Jason Gunthorpe wrote: On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: Not neccessary anyway, after talking Jason C in a Kirkwood-only workaround I prepared a patch that reads mac address registers early and stores it in the local-mac-address

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 08:49 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 08:44:20PM +0200, Sebastian Hesselbarth wrote: On 05/22/2013 07:48 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hesselbarth wrote: Hmm, maybe a little bit too early. While restoring the MAC

Re: [PATCH v4 06/12] ARM: dove: add gigabit ethernet and mvmdio device tree nodes

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 07:48 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:42:36PM +0200, Sebastian Hesselbarth wrote: On 05/22/2013 07:35 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 07:32:51PM +0200, Sebastian Hesselbarth wrote: Just tested on Dockstar with gated clocks and modular DT

[PATCH 1/2] ARM: kirkwood: proper retain MAC address workaround on DT ethernet

2013-05-22 Thread Sebastian Hesselbarth
will find the stored MAC in the corresponding MAC address property. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: David Miller da...@davemloft.net Cc: Lennert Buytenhek buyt...@wantstofly.org Cc: Jason Cooper ja...@lakedaemon.net Cc: Andrew Lunn and...@lunn.ch Cc: Benjamin

[PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-22 Thread Sebastian Hesselbarth
using this driver should also be protected from clearing that bit. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Note: In contrast to the reset value of 0 for CLK125_BYPASS_EN bit as stated in Kirkwood datasheet, we confirmed that reset value is 1 instead. Either

Re: [PATCH v4 11/12] ARM: kirkwood: remove redundant DT board files

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 10:36 PM, Simon Baatz wrote: Hi Sebastian, On Tue, May 21, 2013 at 06:41:49PM +0200, Sebastian Hesselbarth wrote: With DT support for mv643xx_eth, board specific init for some boards now is unneccessary. Remove those board files, Kconfig entries, and corresponding entries

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 10:16 PM, Jason Gunthorpe wrote: On Wed, May 22, 2013 at 10:04:02PM +0200, Sebastian Hesselbarth wrote: Ethernet controllers found on Kirkwood SoCs not only suffer from loosing MAC address register contents on clock gating but also some important registers are reset to values

Re: [PATCH v4 11/12] ARM: kirkwood: remove redundant DT board files

2013-05-22 Thread Sebastian Hesselbarth
On 05/22/2013 11:02 PM, Jason Cooper wrote: On Wed, May 22, 2013 at 10:55:43PM +0200, Sebastian Hesselbarth wrote: On 05/22/2013 10:36 PM, Simon Baatz wrote: Hi Sebastian, On Tue, May 21, 2013 at 06:41:49PM +0200, Sebastian Hesselbarth wrote: With DT support for mv643xx_eth, board specific

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-23 Thread Sebastian Hesselbarth
On 05/23/2013 08:40 PM, Jason Cooper wrote: On Thu, May 23, 2013 at 11:53:57AM -0600, Jason Gunthorpe wrote: On Thu, May 23, 2013 at 01:23:39PM -0400, Jason Cooper wrote: Shouldn't it rather be compatible = marvell,kirkwood-eth, marvell,orion-eth; Not sure about orion-eth? Jason,

Re: [PATCH 2/2] net: mv643xx_eth: proper initialization for Kirkwood SoCs

2013-05-24 Thread Sebastian Hesselbarth
On 05/24/2013 07:13 PM, Russell King - ARM Linux wrote: Do you really want that on ARM? Given the fiasco with the location of the registers, are you sure you want to place more trust in that direction? Does it give you a warm fuzzy feeling to know that you might have to work out some way to

Re: [PATCH 1/2] ARM: kirkwood: proper retain MAC address workaround on DT ethernet

2013-05-26 Thread Sebastian Hesselbarth
On 05/26/2013 06:04 AM, David Miller wrote: From: Sebastian Hesselbarthsebastian.hesselba...@gmail.com Date: Wed, 22 May 2013 22:04:01 +0200 + memcpy((void *)p-value, reg, 6); This cast is completely unnecessary, non-void to void pointer casts are automatic. If it is

Re: [PATCH 1/2] ARM: kirkwood: proper retain MAC address workaround on DT ethernet

2013-05-27 Thread Sebastian Hesselbarth
On 05/27/13 11:39, Benjamin Herrenschmidt wrote: On Mon, 2013-05-27 at 02:23 -0700, David Miller wrote: Sparc has an of_set_property(), it needs to become generic. There is an of_update_property(), we could change the name though, yours is nicer :-) Ben, David, I had a quick look at

Re: [PATCH 1/2] ARM: kirkwood: proper retain MAC address workaround on DT ethernet

2013-05-27 Thread Sebastian Hesselbarth
On 05/27/2013 11:50 PM, Benjamin Herrenschmidt wrote: On Mon, 2013-05-27 at 14:47 +0200, Arnd Bergmann wrote: On Monday 27 May 2013 21:50:04 Benjamin Herrenschmidt wrote: However, that wouldn't help much with the allocation/leak problem, though at least it would be easier to use. It could also

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

2013-05-28 Thread Sebastian Hesselbarth
On 05/28/13 17:53, Thomas Petazzoni wrote: On Tue, 28 May 2013 11:40:47 -0400, Jason Cooper wrote: I'm posting the revised version as replies to patches 1, 5 and 6. Please let me know if I messed it up. I'd like to send the PR for these shortly. I had a quick look, and it looks good to me.

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

2013-05-28 Thread Sebastian Hesselbarth
On 05/28/2013 06:54 PM, Jason Cooper wrote: On Tue, 28 May 2013 11:40:47 -0400, Jason Cooper wrote: I'm posting the revised version as replies to patches 1, 5 and 6. Please let me know if I messed it up. I'd like to send the PR for these shortly. $ git checkout v3.10-rc3 $ git merge

Re: [PATCH v2 1/8] irqchip: add DesignWare APB ICTL interrupt controller

2013-10-25 Thread Sebastian Hesselbarth
On 10/17/2013 07:37 AM, Sebastian Hesselbarth wrote: This adds an irqchip driver and corresponding devicetree binding for the secondary interrupt controllers based on Synopsys DesignWare IP dw_apb_ictl. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Reviewed-by: Mark

[PATCH v4] ARM: kirkwood: retain MAC address for DT ethernet

2013-10-07 Thread Sebastian Hesselbarth
by bootloaders early, notably before ethernet clocks are gated. While at it, also reorder call sequence in _dt_init. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Reviewed-by: Jason Gunthorpe jguntho...@obsidianresearch.com Reviewed-by: Ezequiel Garcia ezequiel.gar...@free

[PATCH 5/8] ARM: add Marvell Berlin and Armada 1500 to multi_v7_defconfig

2013-10-08 Thread Sebastian Hesselbarth
This adds the Marvell Berlin (88DE3xxx) SoC family and Marvell Armada 1500 (88DE3100) to the multi_v7_defconfig. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Reviewed-by: Jason Cooper ja...@lakedaemon.net Reviewed-by: Thomas Petazzoni thomas.petazz...@free-electrons.com

[PATCH 0/8] ARM: Initial support for Marvell Berlin SoCs

2013-10-08 Thread Sebastian Hesselbarth
://www.spinics.net/lists/arm-kernel/msg276175.html [4] http://www.spinics.net/lists/arm-kernel/msg277763.html Sebastian Hesselbarth (8): irqchip: add DesignWare APB ICTL interrupt controller MAINTAINERS: add ARM Marvell Berlin SoC ARM: l2x0: add Marvell Tauros3 compatible ARM: add Marvell Berlin SoC

[PATCH 6/8] ARM: add Marvell Berlin UART0 lowlevel debug

2013-10-08 Thread Sebastian Hesselbarth
This adds UART0 as found on Marvell 88DE3xxx SoCs, e.g. Armada 1500 to the list of possible lowlevel debug options. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Reviewed-by: Jason Cooper ja...@lakedaemon.net Reviewed-by: Thomas Petazzoni thomas.petazz...@free-electrons.com

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

2013-10-08 Thread Sebastian Hesselbarth
This adds initial support for the Marvell Berlin (88DE3xxx) SoC family and basic machine setup for Armada 1500 (88DE3100) SoCs. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Reviewed-by: Jason Cooper ja...@lakedaemon.net Reviewed-by: Thomas Petazzoni thomas.petazz...@free

[PATCH 7/8] ARM: add Armada 1500 and Sony NSZ-GS7 device tree files

2013-10-08 Thread Sebastian Hesselbarth
comprising the Armada 1500 SoC above. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Reviewed-by: Jason Cooper ja...@lakedaemon.net Reviewed-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Reviewed-by: Arnd Bergmann a...@arndb.de --- Changelog: RCFv2-v1: - switch

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

2013-10-08 Thread Sebastian Hesselbarth
This add a compatible for the Marvell Tauros3 cache controller which is compatible with l2x0 cache controllers. While updating the binding documentation, clean up the list of possible compatibles. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: Jason Cooper ja

[PATCH 4/8] ARM: add Marvell Berlin SoC familiy to Marvell doc

2013-10-08 Thread Sebastian Hesselbarth
This adds known facts and rumors about the Marvell Berlin (88DE3xxx) SoC family to the Marvell SoC documentation. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Reviewed-by: Jason Cooper ja...@lakedaemon.net Reviewed-by: Thomas Petazzoni thomas.petazz...@free-electrons.com

[PATCH 1/8] irqchip: add DesignWare APB ICTL interrupt controller

2013-10-08 Thread Sebastian Hesselbarth
This adds an irqchip driver and corresponding devicetree binding for the secondary interrupt controllers based on Synopsys DesignWare IP dw_apb_ictl. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Changelog: RFCv1-RFCv2: - added copyright reference Cc: Jason Cooper ja

[PATCH 2/8] MAINTAINERS: add ARM Marvell Berlin SoC

2013-10-08 Thread Sebastian Hesselbarth
This adds Marvell Berlin SoC to the list of maintainers. I am taking maintainership for arch/arm/mach-berlin/. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: Jason Cooper ja...@lakedaemon.net Cc: Thomas Petazzoni thomas.petazz...@free-electrons.com Cc: Arnd Bergmann

[PATCH RESEND TAKE2] clk: si5351: remove variant from platform_data

2013-10-08 Thread Sebastian Hesselbarth
the chips .variant. This removes the now redundant .variant from the platform_data and puts it in i2c_device_id's .driver_data instead. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com --- Cc: Mike Turquette mturque...@linaro.org Cc: Jason Cooper ja...@lakedaemon.net Cc

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