Re: [PATCH] of: provide of_platform_unpopulate()

2013-07-21 Thread Rob Herring
On 07/19/2013 01:14 PM, Sebastian Andrzej Siewior wrote: So I called of_platform_populate() on a device to get each child device probed and on rmmod and I need to reverse its doing. After a quick grep I did what others did as well and rmmod ended in: | Unable to handle kernel NULL pointer

Re: [PATCH 3/3] MAINTAINERS: Refactor device tree maintainership

2013-07-21 Thread Rob Herring
...@arm.com Cc: Mark Rutland mark.rutl...@arm.com Cc: Stephen Warren swar...@wwwdotorg.org Cc: Ian Campbell ian.campb...@citrix.com Cc: Rob Herring rob.herr...@calxeda.com Cc: Olof Johansson o...@lixom.net Cc: devicetree-discuss@lists.ozlabs.org Cc: devicet...@vger.kernel.org --- MAINTAINERS | 13

Re: [PATCH] of: match the compatible in the order set by the dts file

2013-07-21 Thread Rob Herring
sparc64 machines from booting, hanging after enabling serial console. He bisected it to commit 107a84e61cdd. Rob Herring explains: The problem is match combinations of compatible plus name and/or type fail to match correctly. I have a fix for this, but given how late

Re: [PATCH] of: provide of_platform_unpopulate()

2013-07-21 Thread Rob Herring
On 07/21/2013 09:42 AM, Rob Herring wrote: On 07/19/2013 01:14 PM, Sebastian Andrzej Siewior wrote: So I called of_platform_populate() on a device to get each child device probed and on rmmod and I need to reverse its doing. After a quick grep I did what others did as well and rmmod ended

Re: [PATCH] of/irq: init struct resource to 0 in of_irq_to_resource()

2013-07-19 Thread Rob Herring
On Fri, Jul 19, 2013 at 1:57 AM, Sebastian Andrzej Siewior bige...@linutronix.de wrote: On 07/19/2013 04:49 AM, Rob Herring wrote: On 07/18/2013 05:24 AM, Sebastian Andrzej Siewior wrote: It almost does not matter because most users use only the -start member of the struct. However

Re: [RFC PATCH v2 11/15] cpufreq: kirkwood-cpufreq: remove device tree parsing for cpu nodes

2013-07-18 Thread Rob Herring
On 07/18/2013 05:14 AM, Sudeep KarkadaNagesha wrote: On 18/07/13 09:24, Sudeep KarkadaNagesha wrote: On 17/07/13 15:43, Andrew Lunn wrote: On Wed, Jul 17, 2013 at 03:06:20PM +0100, sudeep.karkadanage...@arm.com wrote: From: Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com [...] Are we

Re: [PATCH] of/irq: init struct resource to 0 in of_irq_to_resource()

2013-07-18 Thread Rob Herring
On 07/18/2013 05:24 AM, Sebastian Andrzej Siewior wrote: It almost does not matter because most users use only the -start member of the struct. However if this struct is passed to a platform device which is then added via platform_device_add() then the -parent member is also used. Most users

Re: [RFC PATCH v2 01/15] of: add support for retrieving cpu node for a given logical cpu index

2013-07-17 Thread Rob Herring
function only in pre-SMP/early initialisation stages to retrieve CPU device node pointers in logical ordering. Once the cpu devices are registered, it can be retrieved easily from cpu device of_node which avoids unnecessary parsing and matching. Cc: Rob Herring rob.herr...@calxeda.com Signed

Re: [RFC PATCH v5 1/1] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-07-16 Thread Rob Herring
On 07/16/2013 11:05 AM, Lorenzo Pieralisi wrote: The TC2 versatile express core tile integrates a logic block that provides the interface between the dual cluster test-chip and the M3 microcontroller that carries out power management. The logic block, called Serial Power Controller (SPC),

Re: [PATCH V2 5/5] ARM: remove #gpio-ranges-cells property

2013-07-16 Thread Rob Herring
On Tue, Jul 16, 2013 at 6:30 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 07/15/2013 05:02 PM, Stephen Warren wrote: On 07/15/2013 01:34 PM, Rob Herring wrote: On 07/15/2013 01:40 PM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com This property is no longer required

Re: [PATCH v4] Input: sysrq - DT binding for key sequence

2013-07-16 Thread Rob Herring
On Tue, Jul 16, 2013 at 5:24 PM, Mathieu Poirier mathieu.poir...@linaro.org wrote: On 15 July 2013 20:43, Rob Herring robherri...@gmail.com wrote: On 07/15/2013 10:36 AM, mathieu.poir...@linaro.org wrote: From: Mathieu J. Poirier mathieu.poir...@linaro.org [snip] + prop

Re: [RFC PATCH v4 03/18] Documentation: devicetree: arm: cpus/cpu nodes bindings updates

2013-07-16 Thread Rob Herring
On 07/16/2013 04:45 AM, Lorenzo Pieralisi wrote: On Mon, Jul 15, 2013 at 07:50:46PM +0100, Rob Herring wrote: On 07/15/2013 04:34 AM, Lorenzo Pieralisi wrote: On Fri, Jul 12, 2013 at 03:47:17PM +0100, Rob Herring wrote: On Fri, May 17, 2013 at 10:20 AM, Lorenzo Pieralisi lorenzo.pieral

Re: [RFC PATCH v4 03/18] Documentation: devicetree: arm: cpus/cpu nodes bindings updates

2013-07-15 Thread Rob Herring
On 07/15/2013 04:34 AM, Lorenzo Pieralisi wrote: On Fri, Jul 12, 2013 at 03:47:17PM +0100, Rob Herring wrote: On Fri, May 17, 2013 at 10:20 AM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: In order to extend the current cpu nodes bindings to newer CPUs inclusive of AArch64 and to update

Re: [PATCH V2 5/5] ARM: remove #gpio-ranges-cells property

2013-07-15 Thread Rob Herring
On 07/15/2013 01:40 PM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com This property is no longer required by the GPIO binding. Remove it. Won't this break compatibility with older kernel? It is one thing to deprecate, but removal is another. If the relevant maintainers don't

Re: [PATCH v4] Input: sysrq - DT binding for key sequence

2013-07-15 Thread Rob Herring
On 07/15/2013 10:36 AM, mathieu.poir...@linaro.org wrote: From: Mathieu J. Poirier mathieu.poir...@linaro.org Adding a simple device tree binding for the specification of key sequences. Definition of the keys found in the sequence are located in 'include/uapi/linux/input.h'. For the sysrq

Re: [RFC PATCH v4 03/18] Documentation: devicetree: arm: cpus/cpu nodes bindings updates

2013-07-12 Thread Rob Herring
On Fri, May 17, 2013 at 10:20 AM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: In order to extend the current cpu nodes bindings to newer CPUs inclusive of AArch64 and to update support for older ARM CPUs this patch updates device tree documentation for the cpu nodes bindings. Sorry for

Re: Sharing *.dtsi between Linux architectures?

2013-07-12 Thread Rob Herring
On 07/12/2013 02:58 PM, Stephen Warren wrote: Is there a (possibly just proposed) mechanism in place to allow *.dts from multiple Linux architectures to share common *.dtsi files? Nothing proposed yet. There was some discussion at Connect (which I missed part of). We're certainly going to start

Re: [PATCH] gps6507x.txt: Remove executable bits

2013-07-12 Thread Rob Herring
On 07/12/2013 12:31 PM, Joe Perches wrote: Documentation shouldn't be executable. Signed-off-by: Joe Perches j...@perches.com Acked-by: Rob Herring rob.herr...@calxeda.com --- diff --git a/Documentation/devicetree/bindings/mfd/tps6507x.txt b/Documentation/devicetree/bindings/mfd

Re: [PATCH] of: match the compatible in the order set by the dts file

2013-07-09 Thread Rob Herring
On Tue, Jul 9, 2013 at 3:10 AM, Huang Shijie b32...@freescale.com wrote: 于 2013年07月09日 15:51, Sascha Hauer 写道: On Tue, Jul 09, 2013 at 03:46:34PM +0800, Huang Shijie wrote: 于 2013年07月09日 15:05, Sascha Hauer 写道: Why don't you set the matching order in the driver the way you want it to be,

Re: [PATCH v3 2/6] misc: sram: add ability to mark sram sections as reserved

2013-07-07 Thread Rob Herring
to keep arbitary portions of the s/Threfore/Therefore/ s/arbitary/arbitrary/ sram from being part of the pool. Suggested-by: Rob Herring robherri...@gmail.com Signed-off-by: Heiko Stuebner he...@sntech.de Tested-by: Ulrich Prinz ulrich.pr...@googlemail.com --- Documentation/devicetree/bindings

Re: [PATCH] of: Fix address decoding on Bimini and js2x machines

2013-07-03 Thread Rob Herring
no objection I will put that in powerpc -next NP. Acked-by: Rob Herring rob.herr...@calxeda.com Rob diff --git a/drivers/of/address.c b/drivers/of/address.c index 04da786..7c8221d 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -106,8 +106,12 @@ static unsigned int

Re: [PATCH v2] of: Specify initrd location using 64-bit

2013-07-01 Thread Rob Herring
the initrd is decided by the bootloader/user and set at that point later in time. The dtb should not be tied to the kernel you are booting That was quoting me. Otherwise: Acked-by: Rob Herring rob.herr...@calxeda.com Unless Grant feels compelled to pick this up for 3.11, I think it has to wait

Re: [PATCH] of: Specify initrd location using 64-bit

2013-06-27 Thread Rob Herring
On 06/21/2013 12:20 PM, Santosh Shilimkar wrote: On Friday 21 June 2013 05:04 AM, Sebastian Andrzej Siewior wrote: On 06/21/2013 02:52 AM, Santosh Shilimkar wrote: diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 0a2c68f..62e2e8f 100644 ---

Re: [PATCH] of: Add more stubs for non-OF builds

2013-06-18 Thread Rob Herring
Perhaps a more specific subject. On 06/17/2013 12:24 PM, Alexander Shiyan wrote: Patch adds of_get_next_child and of_get_next_available_child stubs for non-OF builds. Signed-off-by: Alexander Shiyan shc_w...@mail.ru --- What changed for v2? include/linux/of.h | 16 ++-- 1

Re: [PATCH REBASE] i2c-designware: make SDA hold time configurable

2013-06-17 Thread Rob Herring
On 05/14/2013 08:04 AM, Christian Ruppert wrote: This patch makes the SDA hold time configurable through device tree. [rebased to i2c-current/i2c-next/mainline-3.10-rc1] Signed-off-by: Christian Ruppert christian.rupp...@abilis.com Signed-off-by: Pierrick Hascoet

Re: [PATCH 1/2] ARM: socfpga: dts: Add support for SD/MMC

2013-06-11 Thread Rob Herring
...@altera.com Reviewed-by: Pavel Machek pa...@denx.de CC: Arnd Bergmann a...@arndb.de CC: Olof Johansson o...@lixom.net Cc: Pavel Machek pa...@denx.de Cc: Grant Likely grant.lik...@linaro.org Cc: Rob Herring rob.herr...@calxeda.com Cc: Chris Ball c...@laptop.org Cc: devicetree-discuss@lists.ozlabs.org

Re: [RFC] dw_apb_timer_of: use clocksource_of_init

2013-06-03 Thread Rob Herring
timer node and tracks these number of calls to attach clockevent and clocksource devices to the nodes. Also convert all previous users of dw_apb_timer_init to use clocksource_of_init. Tested on the upcoming rk3066 code. Signed-off-by: Heiko Stuebner he...@sntech.de Acked-by: Rob Herring

Re: [RFC] [PATCH 3/3] IRQ: irq domain: defer of irq ressoure resolve at platform_drv_probe

2013-05-28 Thread Rob Herring
not resolve them as of_platform_populate. So delay the populate of irq at platform_drv_probe. And if the irq_domain is not yet present just defer the probe (GPIO as example) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-05-22 Thread Rob Herring
On Thu, Apr 25, 2013 at 3:45 PM, Rob Herring robherri...@gmail.com wrote: On 04/25/2013 03:12 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-04-25 at 14:14 -0500, Rob Herring wrote: On 04/25/2013 12:35 PM, Benjamin Herrenschmidt wrote: [...] You need patch 2 of this series to fix

Re: [RFC PATCH v4 01/18] ARM: kernel: fix arm_dt_init_cpu_maps() to skip non-cpu nodes

2013-05-17 Thread Rob Herring
On Fri, May 17, 2013 at 10:20 AM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: The introduction of the cpu-map topology node in the cpus node implies that cpus node might have children that are not cpu nodes. The DT parsing code needs updating otherwise it would check for cpu nodes

Re: [PATCH] linux/of_platform.h: fix compilation warnings with DT disabled

2013-05-16 Thread Rob Herring
On Thu, May 16, 2013 at 3:58 PM, Sergei Shtylyov sergei.shtyl...@cogentembedded.com wrote: Hello. On 03/01/2013 05:02 PM, Rob Herring wrote: Fix the following compilation warnings (in Simon Horman's renesas.git repo): In file included from arch/arm/mach-shmobile/setup-r8a7779.c:24:0

Re: [RFC 2/8] ARM:global_timer: Add ARM global timer support.

2013-05-08 Thread Rob Herring
On 05/08/2013 09:11 AM, Srinivas KANDAGATLA wrote: From: Stuart Menefy stuart.men...@st.com This is a simple driver for the global timer module found in the Cortex A9-MP cores from revision r1p0 onwards. This should be able to perform the functions of the system timer and the local timer in

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

2013-05-06 Thread Rob Herring
On 05/06/2013 09:30 AM, 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 --- drivers/irqchip/irq-sun4i.c | 100

Re: [PATCH 03/23] ARM: u300: device tree support for the timer

2013-04-26 Thread Rob Herring
On 04/26/2013 08:38 AM, Linus Walleij wrote: On Mon, Apr 22, 2013 at 1:36 PM, Arnd Bergmann a...@arndb.de wrote: On Monday 22 April 2013, Linus Walleij wrote: +#ifdef CONFIG_OF + struct device_node *timer = NULL; + + timer = of_find_node_by_path(/timer0@c0014000); + if

Re: [PATCH v2] of: Set the DMA mask to 64 bits when dma_addr_t is 64-bits

2013-04-26 Thread Rob Herring
On 04/26/2013 01:06 PM, Laura Abbott wrote: Currently, of_platform_device_create_pdata always sets the coherent DMA mask to 32 bits. On ARM systems without CONFIG_ZONE_DMA, arm_dma_limit gets set to ~0 or 0x on LPAE based systems. Since arm_dma_limit represents the smallest

Re: [PATCH V3] of: Set the DMA mask to 64 bits when dma_addr_t is 64-bits

2013-04-26 Thread Rob Herring
On 04/26/2013 03:31 PM, Laura Abbott wrote: Currently, of_platform_device_create_pdata always sets the coherent DMA mask to 32 bits. On ARM systems without CONFIG_ZONE_DMA, arm_dma_limit gets set to ~0 or 0x on LPAE based systems. Since arm_dma_limit represents the smallest

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-25 Thread Rob Herring
On Sun, Apr 21, 2013 at 9:13 PM, Rob Herring robherri...@gmail.com wrote: From: Rob Herring rob.herr...@calxeda.com ibmebus is the last remaining user of of_platform_driver and the conversion to a regular platform driver is trivial. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-25 Thread Rob Herring
On 04/25/2013 12:35 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-04-25 at 10:23 -0500, Rob Herring wrote: Ben, Can I have your Ack for this? The change is straightforward and neither of the 2 drivers used the id parameter that is removed. Didn't you get my mail about a compile failure

Re: [PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-25 Thread Rob Herring
On 04/25/2013 03:12 PM, Benjamin Herrenschmidt wrote: On Thu, 2013-04-25 at 14:14 -0500, Rob Herring wrote: On 04/25/2013 12:35 PM, Benjamin Herrenschmidt wrote: [...] You need patch 2 of this series to fix this: driver core: move to_platform_driver to platform_device.h which as Arnd

Re: [PATCHv2 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-25 Thread Rob Herring
On 04/15/2013 04:33 PM, Stephen Boyd wrote: On 04/15/13 14:20, Rob Herring wrote: On Fri, Apr 12, 2013 at 7:27 PM, Stephen Boyd sb...@codeaurora.org wrote: @@ -26,3 +30,52 @@ Example: 1 10 0xf08; clock-frequency = 1

Re: [PATCH] Documentation/devicetree: make semantic of initrd-end more explicit

2013-04-25 Thread Rob Herring
On 04/25/2013 07:27 AM, Uwe Kleine-König wrote: Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Documentation/devicetree/usage-model.txt | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) Applied. Thanks, Rob diff --git

Re: [PATCHv2 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-25 Thread Rob Herring
On 04/25/2013 05:48 PM, Stephen Boyd wrote: On 04/25/13 14:47, Rob Herring wrote: On 04/15/2013 04:33 PM, Stephen Boyd wrote: On 04/15/13 14:20, Rob Herring wrote: On Fri, Apr 12, 2013 at 7:27 PM, Stephen Boyd sb...@codeaurora.org wrote: @@ -26,3 +30,52 @@ Example

Re: [RFC PATCH v3 02/17] Documentation: devicetree: arm: cpus/cpu nodes bindings updates

2013-04-25 Thread Rob Herring
On Wed, Apr 24, 2013 at 12:28 PM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: In order to extend the current cpu nodes bindings to newer CPUs inclusive of AArch64 and to update support for older ARM CPUs this patch updates device tree documentation for the cpu nodes bindings. Main

Re: [RFC PATCH v2 03/13] ARM: mach-at91: cpus/cpu node dts updates

2013-04-23 Thread Rob Herring
On 04/22/2013 10:27 AM, Lorenzo Pieralisi wrote: This patch updates the in-kernel dts files according to the latest cpus and cpu bindings updates for ARM. Signed-off-by: Lorenzo Pieralisi lorenzo.pieral...@arm.com --- arch/arm/boot/dts/at91sam9260.dtsi | 2 +-

[PATCH 0/5] of_platform_driver and OF_DEVICE removal

2013-04-21 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com This series is a relatively straight-forward removal of the last remaining user of of_platform_driver (ibmebus) and removal of CONFIG_OF_DEVICE which is always enabled when CONFIG_OF is enabled. Compile tested on powerpc and sparc. Rob Rob Herring (5

[PATCH 3/5] of: remove of_platform_driver

2013-04-21 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com The last user of of_platform_driver is converted to a regular platform_driver, so of_platform_driver can be removed now. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc: Grant Likely grant.lik...@linaro.org --- include/linux/of_platform.h | 21

[PATCH 2/5] driver core: move to_platform_driver to platform_device.h

2013-04-21 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com In converting the last remaining of_platform_driver (ibmebus) to a regular platform driver, to_platform_driver is needed to replace to_of_platform_driver. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc: Greg Kroah-Hartman gre

[PATCH 1/5] ibmebus: convert of_platform_driver to platform_driver

2013-04-21 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com ibmebus is the last remaining user of of_platform_driver and the conversion to a regular platform driver is trivial. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau

[PATCH 4/5] usb: chipidea: depend on CONFIG_OF instead of CONFIG_OF_DEVICE

2013-04-21 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com CONFIG_OF_DEVICE is going away, so use CONFIG_OF instead. It does not appear that CONFIG_OF_DEVICE was the correct dependency either. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc: Alexander Shishkin alexander.shish...@linux.intel.com Cc: Greg

[PATCH 5/5] of: remove CONFIG_OF_DEVICE

2013-04-21 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com CONFIG_OF_DEVICE is always selected when CONFIG_OF is enabled, so remove it and simplify of_platform.h and of_device.h headers. This also fixes !OF compiles using of_platform_populate. Signed-off-by: Rob Herring rob.herr...@calxeda.com Cc: Grant Likely

Re: [PATCH v5 5/6] ARM: dts: Add basic dts include files for Samsung S3C64xx SoCs

2013-04-17 Thread Rob Herring
On Tue, Apr 16, 2013 at 8:19 AM, Tomasz Figa t.f...@samsung.com wrote: On Tuesday 16 of April 2013 08:09:10 Rob Herring wrote: On 04/15/2013 04:14 PM, Tomasz Figa wrote: This patch adds basic device tree definitions for Samsung S3C64xx SoCs. Since all the SoCs in the series are very

Re: [PATCH v5 5/6] ARM: dts: Add basic dts include files for Samsung S3C64xx SoCs

2013-04-16 Thread Rob Herring
On 04/15/2013 04:14 PM, Tomasz Figa wrote: This patch adds basic device tree definitions for Samsung S3C64xx SoCs. Since all the SoCs in the series are very similar, the files are created hierarchically - one file for the whole series and then separate files for particular SoCs including the

Re: [PATCHv2 1/4] Documentation: Add memory mapped ARM architected timer binding

2013-04-15 Thread Rob Herring
On Fri, Apr 12, 2013 at 7:27 PM, Stephen Boyd sb...@codeaurora.org wrote: Add a binding for the arm architected timer hardware's memory mapped interface. The mmio timer hardware is made up of one base frame and a collection of up to 8 timer frames, where each of the 8 timer frames can have

Re: [RFC PATCH 01/11] Documentation: DT: arm: define CPU topology bindings

2013-04-11 Thread Rob Herring
On 04/11/2013 04:12 AM, Mark Rutland wrote: From: Lorenzo Pieralisi lorenzo.pieral...@arm.com The advent of multi-cluster ARM systems requires a mechanism to describe how in hierarchical terms CPUs are connected in ARM SoCs so that the kernel can initialize and map resources like IRQs and

Re: [RFC PATCH 01/11] Documentation: DT: arm: define CPU topology bindings

2013-04-11 Thread Rob Herring
On 04/11/2013 10:50 AM, Lorenzo Pieralisi wrote: On Thu, Apr 11, 2013 at 04:00:47PM +0100, Rob Herring wrote: On 04/11/2013 04:12 AM, Mark Rutland wrote: From: Lorenzo Pieralisi lorenzo.pieral...@arm.com The advent of multi-cluster ARM systems requires a mechanism to describe how

Re: [PATCH v5 1/3] of/pci: Unify pci_process_bridge_OF_ranges from Microblaze and PowerPC

2013-04-10 Thread Rob Herring
this common code to a common place. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com One comment below. Otherwise, Reviewed-by: Rob Herring rob.herr...@calxeda.com You need also need acks from Ben and Michal. [...] + /* Act based

Re: [PATCH v5 2/3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-10 Thread Rob Herring
-by: Rob Herring rob.herr...@calxeda.com drivers/of/address.c | 63 + drivers/of/of_pci.c| 112 include/linux/of_address.h | 42 3 files changed, 145 insertions(+), 72 deletions(-) diff

Re: [PATCH v5 3/3] of/pci: mips: convert to common of_pci_range_parser

2013-04-10 Thread Rob Herring
On 04/10/2013 02:29 AM, Andrew Murray wrote: This patch converts the pci_load_of_ranges function to use the new common of_pci_range_parser. Signed-off-by: Andrew Murray andrew.mur...@arm.com Signed-off-by: Liviu Dudau liviu.du...@arm.com Reviewed-by: Rob Herring rob.herr...@calxeda.com

Re: [PATCHv8 04/19] of/pci: Add of_pci_get_devfn() function

2013-04-10 Thread Rob Herring
and function numbers respectively. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de Signed-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com Reviewed-by: Rob Herring rob.herr...@calxeda.com --- drivers/of/of_pci.c| 34 +- include/linux

Re: [PATCHv8 05/19] of/pci: Add of_pci_parse_bus_range() function

2013-04-10 Thread Rob Herring
-by: Rob Herring rob.herr...@calxeda.com --- drivers/of/of_pci.c| 25 + include/linux/of_pci.h |1 + 2 files changed, 26 insertions(+) diff --git a/drivers/of/of_pci.c b/drivers/of/of_pci.c index b77e8d8..e9106dc 100644 --- a/drivers/of/of_pci.c +++ b/drivers

Re: [GIT PULL] dt: run C pre-processor on *.dts, create some standard headers

2013-04-09 Thread Rob Herring
On 04/05/2013 01:46 PM, Stephen Warren wrote: Rob, it might be worth keeping this in a separate branch in linux-next so you can pull it out if it causes any issues. I've been using these patches for quite a while now, but there's always opportunity for surprises on architectures I don't use. I

Re: [PATCH v3] of/pci: Provide support for parsing PCI DT ranges property

2013-04-08 Thread Rob Herring
-off-by: Thomas Petazzoni thomas.petazz...@free-electrons.com --- Compared to the v3 sent by Andrew Murray, the following changes have been made: * Unify and move duplicate pci_process_bridge_OF_ranges functions to drivers/of/of_pci.c as suggested by Rob Herring This part should really

Re: [PATCH 1/1] of/irq: store IRQ trigger/level in struct resource flags

2013-04-08 Thread Rob Herring
On 04/05/2013 02:48 AM, Javier Martinez Canillas wrote: According to Documentation/devicetree/bindings/interrupt-controller/interrupts.txt the #interrupt-cells property of an interrupt-controller is used to define the number of cells needed to specify a single interrupt. A commonly used

Re: [PATCH v6] pstore/ram: Add ramoops support for the Flattened Device Tree.

2013-04-08 Thread Rob Herring
04, 2013 at 09:03:47PM -0500, Rob Herring wrote: On Mon, Sep 17, 2012 at 1:23 AM, Anton Vorontsov cbouatmai...@gmail.com wrote: On Fri, Sep 07, 2012 at 10:29:10PM -0700, Anton Vorontsov wrote: On Fri, Sep 07, 2012 at 11:29:36AM -0700, Bryan Freed wrote: When called with a non-zero of_node

Re: [PATCH 1/1] of/irq: store IRQ trigger/level in struct resource flags

2013-04-08 Thread Rob Herring
On 04/08/2013 05:56 PM, Javier Martinez Canillas wrote: On 04/09/2013 12:16 AM, Stephen Warren wrote: On 04/08/2013 04:05 PM, Rob Herring wrote: On 04/05/2013 02:48 AM, Javier Martinez Canillas wrote: According to Documentation/devicetree/bindings/interrupt-controller/interrupts.txt

Re: [PATCH V2 1/7] kbuild: create an include chroot for DT bindings

2013-04-05 Thread Rob Herring
On 04/04/2013 08:01 PM, Stephen Warren wrote: On 04/04/2013 05:17 PM, Rob Herring wrote: On 04/03/2013 06:34 PM, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com The recent dtc+cpp support allows header files and C pre-processor defines/macros to be used when compiling device

Re: [PATCH] documentation: iommu: add description of ARM System MMU binding

2013-04-05 Thread Rob Herring
On 04/04/2013 11:50 AM, Will Deacon wrote: This patch adds a description of the device tree binding for the ARM System MMU architecture. Cc: Rob Herring robherri...@gmail.com Cc: Andreas Herrmann andreas.herrm...@calxeda.com Signed-off-by: Will Deacon will.dea...@arm.com --- Hello

Re: [PATCH] documentation: iommu: add description of ARM System MMU binding

2013-04-05 Thread Rob Herring
On 04/05/2013 11:57 AM, Will Deacon wrote: Hi Rob, On Fri, Apr 05, 2013 at 05:43:06PM +0100, Rob Herring wrote: [...] +- compatible: Should be one of arm,smmu-v1 or arm,smmu-v2 + depending on the version of the architecture + implemented. We can

Re: [GIT PULL] dt: run C pre-processor on *.dts, create some standard headers

2013-04-05 Thread Rob Herring
On 04/05/2013 01:46 PM, Stephen Warren wrote: Rob, it might be worth keeping this in a separate branch in linux-next so you can pull it out if it causes any issues. I've been using these patches for quite a while now, but there's always opportunity for surprises on architectures I don't use. I

Re: [PATCH v6 1/8] dt: describe base reset signal binding

2013-04-04 Thread Rob Herring
Guo shawn@linaro.org Reviewed-by: Marek Vasut ma...@denx.de Looks good. Acked-by: Rob Herring rob.herr...@calxeda.com Rob --- Documentation/devicetree/bindings/reset/reset.txt | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree

Re: [PATCH V2 1/7] kbuild: create an include chroot for DT bindings

2013-04-04 Thread Rob Herring
Guo shawn@linaro.org Acked-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Stephen Warren swar...@nvidia.com --- Grant, Rob, Michal, I'm hoping for acks or comments from you so this series can be placed into a topic branch in the arm-soc repo, for others to build on during the 3.10

Re: [PATCH v6] pstore/ram: Add ramoops support for the Flattened Device Tree.

2013-04-04 Thread Rob Herring
On Mon, Sep 17, 2012 at 1:23 AM, Anton Vorontsov cbouatmai...@gmail.com wrote: On Fri, Sep 07, 2012 at 10:29:10PM -0700, Anton Vorontsov wrote: On Fri, Sep 07, 2012 at 11:29:36AM -0700, Bryan Freed wrote: When called with a non-zero of_node, fill out a new ramoops_platform_data with data

Re: of_iomap() and devres questions

2013-04-03 Thread Rob Herring
On 04/02/2013 02:25 PM, Markus Mayer wrote: Hi all, I have a few questions regarding the implementation of the of_iomap() function. As it currently stands, the function parses the device tree for the device's address and then simply calls ioremap() with that address and the associated

Re: [PATCH V2] DMA: PL330: Add check if device tree compatible

2013-04-01 Thread Rob Herring
On Thu, Mar 21, 2013 at 4:39 AM, Vinod Koul vinod.k...@intel.com wrote: On Tue, Mar 05, 2013 at 02:55:31PM +0530, Padmavathi Venna wrote: This patch register the dma controller with generic dma helpers only in DT case. This also adds some extra error handling in the driver. Signed-off-by:

Re: [PATCH] of_net.h: Provide dummy functions if OF_NET is not configured

2013-04-01 Thread Rob Herring
On 04/01/2013 01:19 PM, Guenter Roeck wrote: of_get_mac_address() and of_get_phy_mode() are only provided if OF_NET is configured. While most callers check for the define, not all do, and those who do require #ifdef around the code. For those who don't, the missing check can result in errors

Re: [PATCH] of_net.h: Provide dummy functions if OF_NET is not configured

2013-04-01 Thread Rob Herring
On 04/01/2013 02:01 PM, Guenter Roeck wrote: On Mon, Apr 01, 2013 at 01:44:24PM -0500, Rob Herring wrote: On 04/01/2013 01:19 PM, Guenter Roeck wrote: of_get_mac_address() and of_get_phy_mode() are only provided if OF_NET is configured. While most callers check for the define, not all do

Re: [PATCH] of: Add missing node iteration stubs for disabled CONFIG_OF

2013-04-01 Thread Rob Herring
On 03/09/2013 02:15 PM, Tomasz Figa wrote: This patch moves several for_each macros out of the #ifdef CONFIG_OF block and adds inline stubs for functions used by these macros, compiled conditionally when CONFIG_OF is not enabled. This eliminates the need to explicitly check for CONFIG_OF in

Re: [PATCH v6 7/7] irqchip: s3c24xx: add devicetree support

2013-03-27 Thread Rob Herring
On 03/26/2013 05:10 PM, Heiko Stübner wrote: Add the necessary code to initialize the interrupt controller thru devicetree data using the irqchip infrastructure. Signed-off-by: Heiko Stuebner he...@sntech.de Acked-by: Rob Herring rob.herr...@calxeda.com --- .../interrupt-controller

Re: [PATCH V2] cpufreq: ARM big LITTLE: Add generic cpufreq driver and its DT glue

2013-03-26 Thread Rob Herring
On 03/26/2013 04:51 AM, Viresh Kumar wrote: big LITTLE is ARM's new Architecture focussing power/performance needs of modern world. More information about big LITTLE can be found here: http://www.arm.com/products/processors/technologies/biglittleprocessing.php

Re: [PATCH 4/6] pci: Add PCIe driver for Samsung Exynos

2013-03-26 Thread Rob Herring
On 03/22/2013 11:07 PM, Jingoo Han wrote: Exynos5440 has a PCIe controller which can be used as Root Complex. This driver supports a PCIe controller as Root Complex mode. Signed-off-by: Surendranath Gurivireddy Balla suren.re...@samsung.com Signed-off-by: Siva Reddy Kallam

Re: [PATCH 00/11] sp804 and integrator timer CLKSRC_OF support

2013-03-21 Thread Rob Herring
On 03/21/2013 08:24 AM, Arnd Bergmann wrote: On Wednesday 20 March 2013, Rob Herring wrote: This series is dependent on my CLKSRC_OF clean-up in arm-soc, my sched_clock selection series[1], and Arnd's default machine descriptor patch (for default clocksource_of_init call). The full series

Re: [PATCH 01/11] OF: add empty of_device_is_available for !OF

2013-03-21 Thread Rob Herring
On 03/21/2013 09:18 AM, Mark Rutland wrote: On Wed, Mar 20, 2013 at 10:54:01PM +, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com Add an empty version of of_device_is_available. Signed-off-by: Rob Herring rob.herr...@calxeda.com --- include/linux/of.h |5 + 1

Re: [PATCH 5/5] arm: dts: Convert mvebu device tree files to 64 bits

2013-03-21 Thread Rob Herring
On 03/21/2013 11:26 AM, Gregory CLEMENT wrote: In order to be able to use more than 4GB of RAM when the LPAE is activated, the dts must be converted in 64 bits. Armada XP and Armada 370 share a dtsi file which have also be converted to 64 bits. This lead to convert all the device tree files

Re: [PATCH 02/11] ARM: remove extra timer-sp control register clearing

2013-03-21 Thread Rob Herring
On 03/21/2013 12:58 PM, Linus Walleij wrote: On Wed, Mar 20, 2013 at 11:54 PM, Rob Herring robherri...@gmail.com wrote: From: Rob Herring rob.herr...@calxeda.com The timer-sp initialization code clears the control register before initializing the timers, so every platform doing

Re: [PATCH 2/5] arm: mvebu: Select DMA_BOUNCE when LPAE is selected in Kconfig

2013-03-21 Thread Rob Herring
On 03/21/2013 11:26 AM, Gregory CLEMENT wrote: From: Lior Amsalem al...@marvell.com For mvebu IOs are 32 bits and we have 40 bits memory due to LPAE so make sure we give 32 bits addresses to the IOs. Signed-off-by: Lior Amsalem al...@marvell.com Tested-by: Franklin f...@marvell.com

Re: [PATCH 03/11] ARM: timer-sp: convert to use CLKSRC_OF init

2013-03-21 Thread Rob Herring
On 03/21/2013 02:35 PM, Russell King - ARM Linux wrote: On Wed, Mar 20, 2013 at 05:54:03PM -0500, Rob Herring wrote: +clk0 = of_clk_get(np, 0); +if (IS_ERR(clk0)) +clk0 = NULL; + +/* Get the 2nd clock if the timer has 2 timer clocks

Re: [PATCH 02/11] ARM: remove extra timer-sp control register clearing

2013-03-21 Thread Rob Herring
On 03/21/2013 02:23 PM, Russell King - ARM Linux wrote: On Wed, Mar 20, 2013 at 05:54:02PM -0500, Rob Herring wrote: From: Rob Herring rob.herr...@calxeda.com The timer-sp initialization code clears the control register before initializing the timers, so every platform doing this is redundant

Re: [PATCH 2/2] of: remove /proc/device-tree

2013-03-20 Thread Rob Herring
grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: David S. Miller da...@davemloft.net --- drivers/of/Kconfig |8 -- drivers/of/base.c | 59 +--- fs

[PATCH 01/11] OF: add empty of_device_is_available for !OF

2013-03-20 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com Add an empty version of of_device_is_available. Signed-off-by: Rob Herring rob.herr...@calxeda.com --- include/linux/of.h |5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index a0f1292..6fe655b 100644

[PATCH 02/11] ARM: remove extra timer-sp control register clearing

2013-03-20 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com The timer-sp initialization code clears the control register before initializing the timers, so every platform doing this is redundant. For unused timers, we should not care what state they are in. Signed-off-by: Rob Herring rob.herr...@calxeda.com

[PATCH 03/11] ARM: timer-sp: convert to use CLKSRC_OF init

2013-03-20 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com This adds CLKSRC_OF based init for sp804 timer. The clock initialization is refactored to support retrieving the clock(s) from the DT. Signed-off-by: Rob Herring rob.herr...@calxeda.com --- arch/arm/Kconfig |1 + arch/arm

[PATCH 04/11] ARM: highbank: use OF init for sp804 timer

2013-03-20 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com Remove the highbank specific setup for the sp804 timer now that clocksource_of_init will do it. Signed-off-by: Rob Herring rob.herr...@calxeda.com --- arch/arm/mach-highbank/highbank.c | 19 --- 1 file changed, 19 deletions(-) diff

[PATCH 05/11] ARM: vexpress: remove sp804 OF init

2013-03-20 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com Remove the vexpress specific setup for the sp804 timer now that clocksource_of_init will do it. Signed-off-by: Rob Herring rob.herr...@calxeda.com --- arch/arm/mach-vexpress/v2m.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/arch

[PATCH 06/11] ARM: dts: vexpress: disable CA9 core tile sp804 timer

2013-03-20 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com The motherboard sp804 timer is used, but core tile sp804 timer is not. According to Russell King, the clock configuration is undocumented and defaults to 32kHz which is not desireable. So mark core tile sp804 timer as disabled. Signed-off-by: Rob Herring

[PATCH 09/11] ARM: integrator-cp: convert use CLKSRC_OF for timer init

2013-03-20 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com Move the integrator-cp timer init to timer-sp.c and use CLKSRC_OF. There is no reason to use the aliases, so drop them from the init code. The integrator-cp timers are mistakenly called sp804 timers in the dts, but in fact they are not sp804 dual timers

[PATCH 10/11] ARM: move sp804 and integrator timers to drivers/clocksource

2013-03-20 Thread Rob Herring
From: Rob Herring rob.herr...@calxeda.com Move timer-sp and integrator-ap timer code to drivers/clocksource and update timer-sp.h and arm_timer.h includes. This adds CLKSRC_OF support for the integrator-ap timer and removes the use of arm,timer-primary and arm,timer-secondary aliases. The timer

Re: [PATCH V3 12/18] ARM: OMAP2+: Add additional GPMC timing parameters

2013-03-18 Thread Rob Herring
On 03/15/2013 10:21 AM, Jon Hunter wrote: Some of the GPMC timings parameters are currently missing from the GPMC device-tree binding. Add these parameters to the binding documentation as well as code to read them. The existing code in gpmc_read_timings_dt() is checking the value of

Re: [PATCH] ARM: dts: add interrupt-names property to get interrupt resource by name

2013-03-18 Thread Rob Herring
On 03/13/2013 05:42 PM, Sylwester Nawrocki wrote: Rob, On 03/13/2013 03:39 PM, Rob Herring wrote: I fail to see what the hack is. The order of interrupt properties must be defined by the binding. interrupt-names is auxiliary data and must not be required by an OS. It is clear

Re: [PATCH v3 6/6] irqchip: s3c24xx: add s3c2450 interrupt definitions

2013-03-18 Thread Rob Herring
On 03/17/2013 08:09 AM, Heiko Stübner wrote: The s3c2450 is special in that it shares the cpu identification with the s3c2416 but provides more interrupts for its additional components. It also shares the layout of the main interrupt register with the s3c2443 and therefore reuses this

Re: [PATCH v3 5/6] irqchip: s3c24xx: add devicetree support

2013-03-18 Thread Rob Herring
On 03/17/2013 08:07 AM, Heiko Stübner wrote: Add the necessary code to initialize the interrupt controller thru devicetree data using the irqchip infrastructure. On dt machines the eint-type interrupts in the main interrupt controller get mapped as regular edge-types, as their wakeup and

  1   2   3   4   5   6   7   8   9   >