[PATCH] of/irq: add empty irq_of_parse_and_map() for non-dt builds

2012-03-24 Thread Thomas Abraham
Add a empty irq_of_parse_and_map() that returns 0 for non-dt builds and avoid having #ifdef CONFIG_OF around all calls to irq_of_parse_and_map(). Suggested-by: Grant Likely Signed-off-by: Thomas Abraham --- include/linux/of_irq.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-)

[PATCH v5 0/2] ARM: Exynos: Add irq_domain and device tree support for combiner

2012-03-24 Thread Thomas Abraham
Changes since v4: - In patch 2/2, removed the #ifdef CONFIF_OF around irq_of_parse_and_map() as suggested by Grant Likely. Hence this patch series depends on the patch with subject "of/irq: add empty irq_of_parse_and_map() for non-dt builds". - Rebased to the latest kgene/for-next branch which

[PATCH v5 1/2] ARM: Exynos: Add irq_domain support for interrupt combiner

2012-03-24 Thread Thomas Abraham
Add irq_domain support for hardware interrupts of the interrupt combiner. The hardware interrupts of all the instances of the combiner are grouped in a single irq_domain. Cc: Grant Likely Signed-off-by: Thomas Abraham Acked-by: Rob Herring --- arch/arm/mach-exynos/common.c | 87 +

[PATCH v5 2/2] ARM: Exynos: Add device tree support for interrupt combiner

2012-03-24 Thread Thomas Abraham
Add device tree based instantiation of the interrupt combiner controller. Signed-off-by: Thomas Abraham Acked-by: Rob Herring Acked-by: Grant Likely --- .../bindings/arm/samsung/interrupt-combiner.txt| 52 + arch/arm/mach-exynos/common.c | 61 ++

[PATCH v4 0/4] ARM: Exynos4: Add irq domain and device tree support for wakeup interrupts

2012-03-24 Thread Thomas Abraham
Changes since v3: - Rebased the patches to the latest kgene/for-next branch which now includes Exynos5 support as well. In this process, there are some significant changes, when compared to v3 version of this patchset, related to device tree support in patch 4/4 and code simplification in pat

[PATCH v4 1/4] ARM: Exynos: Simplify the wakeup interrupt setup code

2012-03-24 Thread Thomas Abraham
Simplify the wakeup interrupt setup code in order to add irq domain and device tree support. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/common.c | 32 +++- 1 files changed, 11 insertions(+), 21 deletions(-) diff --git a/arch/arm/mach-exy

[PATCH v4 2/4] ARM: Exynos: Add irq_domain support for gpio wakeup interrupts

2012-03-24 Thread Thomas Abraham
Add a irq_domain for all the 32 gpio external wakeup interrupt sources. Since there are users of fixed linux irq numbers of the external wakeup interrupts, the legacy mapping is used for the irq domain. The fixups required to use irq domain based interrupt mapping is also included. Cc: Grant Likel

[PATCH v4 3/4] ARM: Exynos: Remove arch_initcall for wakeup interrupt initialization

2012-03-24 Thread Thomas Abraham
The of_irq_init function would be setup to invoke the exynos4_init_irq_eint function when booting using device tree. The arch_initcall for exynos4_init_irq_eint would duplicate its invocation in that case. Hence, arch_initcall for exynos4_init_irq_eint is removed and this function is invoked from t

[PATCH v4 4/4] ARM: Exynos: Add device tree support for gpio wakeup interrupt controller

2012-03-24 Thread Thomas Abraham
Add device tree support for gpio wakeup source interrupt controller for Exynos platforms. Cc: Rob Herring Cc: Grant Likely Signed-off-by: Thomas Abraham --- .../bindings/arm/samsung/wakeup-eint.txt | 152 arch/arm/mach-exynos/common.c | 55

[PATCH v4 0/2] regulator: add irq domain and device tree support for MAX8997

2012-03-24 Thread Thomas Abraham
Changes since v3: - Fixed all comments from Grant Likely. - In patch 1/2, since linear mapping is used, the handle_nested_irq() is called only for allocated irq's. - In patch 2/2, the incorrect assignment of platform data pointer to dev->platform_data is reworked and fixed. Changes sin

[PATCH v4 1/2] mfd: add irq domain support for max8997 interrupts

2012-03-24 Thread Thomas Abraham
Add irq domain support for max8997 interrupts. The reverse mapping method used is linear mapping since the sub-drivers of max8997 such as regulator and charger drivers can use the max8997 irq_domain to get the linux irq number for max8997 interrupts. All uses of irq_base in platform data and max899

[PATCH v4 2/2] regulator: add device tree support for max8997

2012-03-24 Thread Thomas Abraham
Add device tree based discovery support for max8997. Cc: MyungJoo Ham Cc: Rajendra Nayak Cc: Rob Herring Cc: Grant Likely Signed-off-by: Thomas Abraham --- .../devicetree/bindings/regulator/max8997-pmic.txt | 133 ++ drivers/mfd/max8997.c | 73

Re: [PATCH] of/irq: add empty irq_of_parse_and_map() for non-dt builds

2012-03-24 Thread Rob Herring
On 03/24/2012 04:27 AM, Thomas Abraham wrote: > Add a empty irq_of_parse_and_map() that returns 0 for non-dt builds and > avoid having #ifdef CONFIG_OF around all calls to irq_of_parse_and_map(). > > Suggested-by: Grant Likely > Signed-off-by: Thomas Abraham > --- Acked-by: Rob Herring Go ahe

[PATCH V2 0/3] Add support for DNS-320 and DNS-325 using devicetree

2012-03-24 Thread Jamie Lentin
Thankyou to Arnd and Jason for taking the time to review, sorry it's taken a while to get back to you both with an updated version. Changes since v1: * Rebase against kirkwood_dt_for_3.4, removing premature devicetree ports. * Move additions into a separate board-dnskw.c. It could be separated fur

[PATCH V2 1/3] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-03-24 Thread Jamie Lentin
Add support for the DNS-320 and DNS-325. Describe as much as currently possible in the devicetree files, create a board-dnskw.c for everything else. Signed-off-by: Jamie Lentin --- arch/arm/boot/dts/kirkwood-dns320.dts | 29 +++ arch/arm/boot/dts/kirkwood-dns325.dts | 24 +++ arch/arm/mach-k

[PATCH V2 2/3] ARM: kirkwood: Convert orion-nand to fdt

2012-03-24 Thread Jamie Lentin
Convert orion-nand to use fdt and add common setup to kirkwood.dtsi, including a default value for chip-delay (all current boards seem to use 25 anyway). Add placeholder documentation for the bindings, for someone more knowledgable than me to fill in the details of the properties. Signed-off-by:

[PATCH V2 3/3] ARM: kirkwood: Define NAND partitions in dts

2012-03-24 Thread Jamie Lentin
Use devicetree to define NAND partitions. Use D-link partition scheme by default, to be vaguely compatible with their userland. Signed-off-by: Jamie Lentin --- arch/arm/boot/dts/kirkwood-dns320.dts | 35 + arch/arm/boot/dts/kirkwood-dns325.dts | 35 +++

Re: [PATCH] of/irq: add empty irq_of_parse_and_map() for non-dt builds

2012-03-24 Thread Rob Herring
On 03/24/2012 08:12 AM, Rob Herring wrote: > On 03/24/2012 04:27 AM, Thomas Abraham wrote: >> Add a empty irq_of_parse_and_map() that returns 0 for non-dt builds and >> avoid having #ifdef CONFIG_OF around all calls to irq_of_parse_and_map(). >> >> Suggested-by: Grant Likely >> Signed-off-by: Thom

Re: [PATCH] of/irq: add empty irq_of_parse_and_map() for non-dt builds

2012-03-24 Thread Thomas Abraham
On 24 March 2012 18:42, Rob Herring wrote: > On 03/24/2012 04:27 AM, Thomas Abraham wrote: >> Add a empty irq_of_parse_and_map() that returns 0 for non-dt builds and >> avoid having #ifdef CONFIG_OF around all calls to irq_of_parse_and_map(). >> >> Suggested-by: Grant Likely >> Signed-off-by: Tho

Re: [PATCH] of/irq: add empty irq_of_parse_and_map() for non-dt builds

2012-03-24 Thread Thomas Abraham
On 24 March 2012 21:37, Thomas Abraham wrote: > On 24 March 2012 18:42, Rob Herring wrote: >> On 03/24/2012 04:27 AM, Thomas Abraham wrote: >>> Add a empty irq_of_parse_and_map() that returns 0 for non-dt builds and >>> avoid having #ifdef CONFIG_OF around all calls to irq_of_parse_and_map(). >>>

Re: [PATCH V2 2/3] ARM: kirkwood: Convert orion-nand to fdt

2012-03-24 Thread Arnd Bergmann
On Saturday 24 March 2012, Jamie Lentin wrote: > Convert orion-nand to use fdt and add common setup to kirkwood.dtsi, including > a default value for chip-delay (all current boards seem to use 25 anyway). > > Add placeholder documentation for the bindings, for someone more knowledgable > than me t

Re: [PATCH V2 3/3] ARM: kirkwood: Define NAND partitions in dts

2012-03-24 Thread Arnd Bergmann
On Saturday 24 March 2012, Jamie Lentin wrote: > Use devicetree to define NAND partitions. Use D-link partition scheme by > default, to be vaguely compatible with their userland. > > Signed-off-by: Jamie Lentin Acked-by: Arnd Bergmann ___ devicetree-d

Re: [PATCH V2 1/3] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-03-24 Thread Arnd Bergmann
On Saturday 24 March 2012, Jamie Lentin wrote: > > Add support for the DNS-320 and DNS-325. Describe as much as currently > possible > in the devicetree files, create a board-dnskw.c for everything else. > > Signed-off-by: Jamie Lentin Looks good to me. Jason, do you want to add these to you

Re: [PATCH] scripts: dtc: fix compile warnings

2012-03-24 Thread Michal Marek
On Thu, Jan 26, 2012 at 01:20:07PM +0200, Felipe Balbi wrote: > Fix following compile warnings: > > scripts/dtc/flattree.c: In function ‘flat_read_mem_reserve’: > scripts/dtc/flattree.c:700:14: warning: variable ‘p’ set but not used > [-Wunused-but-set-variable] > > scripts/dtc/dtc.c: In fu

Re: [PATCH V3 2/3] ARM: kirkwood: Convert orion-nand to fdt

2012-03-24 Thread Jamie Lentin
Convert orion-nand to use fdt and add common setup to kirkwood.dtsi, including a default value for chip-delay (all current boards seem to use 25 anyway). Add placeholder documentation for the bindings, for someone more knowledgable than me to fill in the details of the properties. Move common pa

Re: Device node for a controller with two interrupt parents

2012-03-24 Thread Grant Likely
On Fri, 23 Mar 2012 16:18:09 +0530, Thomas Abraham wrote: > Hi Grant, > > On 21 March 2012 20:43, Grant Likely wrote: > > Okay, so you're saying there are three important aspects to this > > device: > > 1) it terminates interrupts from other devices (therefore needs an > >   interrupt controll

Re: [PATCH 2/2] s5p-tv: Add initial DT-support for HDMIPHY

2012-03-24 Thread Grant Likely
On Fri, 23 Mar 2012 12:28:52 +0100, Karol Lewandowski wrote: > On 18.03.2012 19:24, Grant Likely wrote: > > > On Fri, 16 Mar 2012 16:42:12 +0100, Karol Lewandowski > > wrote: > >> Make it possible to instantiate driver from device tree description. > >> > >> Signed-off-by: Karol Lewandowski >

Re: Handling device shared SFR on dt platform

2012-03-24 Thread Grant Likely
On Wed, 21 Mar 2012 23:38:11 +0100, Sylwester Nawrocki wrote: > > Hello, > > I'm working on adding the device tree support for two devices that > share some IO registers. Exactly, there is one shared SFR that > contains a common bit to enable two PHY devices, and another two > bits, each to sep

Re: [PATCH 4/4] arm: at91: dt: sam9g25ek add mci support

2012-03-24 Thread Grant Likely
On Thu, 22 Mar 2012 15:53:01 +0100, Nicolas Ferre wrote: > On 03/21/2012 07:03 PM, ludovic.desroc...@atmel.com : > > From: Ludovic Desroches > > > > Signed-off-by: Ludovic Desroches > > Signed-off-by: Nicolas Ferre I think you really mean "Acked-by". It is only appropriate to add a "Signed

Re: [PATCH v2 1/1] ARM: imx28: add basic dt support

2012-03-24 Thread Grant Likely
On Fri, 23 Mar 2012 15:43:54 +0100, Marek Vasut wrote: > Dear Dong Aisheng, > > > From: Dong Aisheng > > > > This patch includes basic dt support which can boot via nfs rootfs. > > > > Signed-off-by: Dong Aisheng > > --- > > ChangeLog v1->v2: > > * Some fixes addressed Rob's review comments.

Re: [PATCH] scripts: dtc: fix compile warnings

2012-03-24 Thread Grant Likely
On Thu, 26 Jan 2012 13:20:07 +0200, Felipe Balbi wrote: > Fix following compile warnings: > > scripts/dtc/flattree.c: In function ‘flat_read_mem_reserve’: > scripts/dtc/flattree.c:700:14: warning: variable ‘p’ set but not used > [-Wunused-but-set-variable] > > scripts/dtc/dtc.c: In

Re: [PATCH] of/irq: add empty irq_of_parse_and_map() for non-dt builds

2012-03-24 Thread Grant Likely
On Sat, 24 Mar 2012 08:12:39 -0500, Rob Herring wrote: > On 03/24/2012 04:27 AM, Thomas Abraham wrote: > > Add a empty irq_of_parse_and_map() that returns 0 for non-dt builds and > > avoid having #ifdef CONFIG_OF around all calls to irq_of_parse_and_map(). > > > > Suggested-by: Grant Likely > >

Re: [PATCH] of/irq: add empty irq_of_parse_and_map() for non-dt builds

2012-03-24 Thread Grant Likely
On Sat, 24 Mar 2012 21:42:00 +0530, Thomas Abraham wrote: > On 24 March 2012 21:37, Thomas Abraham wrote: > > On 24 March 2012 18:42, Rob Herring wrote: > >> On 03/24/2012 04:27 AM, Thomas Abraham wrote: > >>> Add a empty irq_of_parse_and_map() that returns 0 for non-dt builds and > >>> avoid h