[PATCH v2 00/07] enable devicetree on arch-mmp

2011-07-28 Thread Haojian Zhuang
Changelog v2: * parse timer from DT * remove CONFIG_MMP_USE_OF * set NR_IRQS to 0 since sparse irq is enabled and allocated irq is started from NR_IRQS. * change property names according to comments * parse serial from DT and only use

[PATCH v2 1/7] ARM: mmp: parse irq from DT

2011-07-28 Thread Haojian Zhuang
Parse irq sepcifier from DT and translate it to Linux irq number. Remove the definition of NR_IRQS in irqs.h. Since sparse irq is enabled, nr_irqs will be calculated automatically. Signed-off-by: Haojian Zhuang haojian.zhu...@marvell.com --- .../devicetree/bindings/arm/marvell/intc.txt |

[PATCH v2 3/7] ARM: mmp: support DT on both dkb and brownstone

2011-07-28 Thread Haojian Zhuang
Add new boards.c to support both TTC-DKB and MMP2-BROWNSTONE. If CONFIG_OF isn't selected, we continue to use original ttc_dkb.c and brownstone.c. While everything moving to DT in ARCH-MMP, ttc_dkb.c and brownstone.c will be abandoned. Signed-off-by: Haojian Zhuang haojian.zhu...@marvell.com ---

[PATCH v2 2/7] ARM: mmp: parse timer configuration from DT

2011-07-28 Thread Haojian Zhuang
Parse timer configuration from DT. Now we can merge pxa910_timer and mmp2_timer into mmp_timer. Since most configuration between these two timers are same. The difference is recorded in DT. Signed-off-by: Haojian Zhuang haojian.zhu...@marvell.com --- .../devicetree/bindings/arm/marvell/timer.txt

[PATCH v2 5/7] tty: serial: check ops before registering console

2011-07-28 Thread Haojian Zhuang
Console should be only registered after port-ops assigned. If uart console doesn't match the current uart, port-ops keeps NULL. Signed-off-by: Haojian Zhuang haojian.zhu...@marvell.com --- drivers/tty/serial/pxa.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH v2 6/7] i2c: pxa: support i2c controller from DT

2011-07-28 Thread Haojian Zhuang
support i2c-pxa controller from DT. Signed-off-by: Haojian Zhuang haojian.zhu...@marvell.com --- drivers/i2c/busses/i2c-pxa.c | 51 +++-- 1 files changed, 38 insertions(+), 13 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c

Re: [PATCH v3 0/2] Simple irq_domain implementation

2011-07-28 Thread Thomas Gleixner
On Tue, 26 Jul 2011, Grant Likely wrote: In the interest of getting this infrastructure merged, I've reworked the basic irq_domain patch to implement only what is required for ARM device tree board support. That means it doesn't affect any architectures other than ARM, and I'll send

Re: [RFC/PATCH 2/7] OMAP3: beagle: don't touch omap_device internals

2011-07-28 Thread Russell King - ARM Linux
On Thu, Jul 28, 2011 at 12:53:47AM -0500, Nishanth Menon wrote: +struct device *omap_hwmod_to_device(const char *oh_name) +{ + struct omap_hwmod *oh; + + if (!oh_name) { + WARN(1, %s: no hwmod name!\n, __func__); + return ERR_PTR(-EINVAL); + } + +

Re: [PATCH 2/9] Add dtget utility to read property values from device tree

2011-07-28 Thread Simon Glass
Hi David, On Tue, Jul 19, 2011 at 3:34 PM, David Gibson da...@gibson.dropbear.id.au wrote: On Tue, Jul 05, 2011 at 12:02:50PM -0700, Simon Glass wrote: This simply utility makes it easy for scripts to read values from the device tree. This commit message needs more information.  Command line

Re: [RFC/PATCH 2/7] OMAP3: beagle: don't touch omap_device internals

2011-07-28 Thread Felipe Balbi
Hi, On Thu, Jul 28, 2011 at 02:57:03PM +0200, Cousson, Benoit wrote: Hi Nishanth, On 7/28/2011 7:53 AM, Menon, Nishanth wrote: On 11:57-20110722, Felipe Balbi wrote: [...] /* Custom OPP enabled for all xM versions */ if (cpu_is_omap3630()) { - struct omap_hwmod *mh =

[PATCH 3/6] drivers/net/niu.c: adjust array index

2011-07-28 Thread Julia Lawall
From: Julia Lawall ju...@diku.dk Convert array index from the loop bound to the loop index. A simplified version of the semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @@ expression e1,e2,ar; @@ for(e1 = 0; e1 e2; e1++) { ... ar[ - e2 + e1 ]

[PATCHv2 1/2] of/gpio: export of_gpio_simple_xlate

2011-07-28 Thread Jamie Iles
Allow GPIO drivers to use of_gpio_simple_xlate. This is useful for the generic GPIO driver for example where gpio_chip is embedded in bgpio_chip and doesn't need of_mm_gpio_chip but has a simple 1:1 GPIO mapping. Cc: Anton Vorontsov avoront...@ru.mvista.com Cc: Grant Likely

[PATCHv2 2/2] basic-mmio-gpio: add support for device tree probing

2011-07-28 Thread Jamie Iles
This patch adds support for basic-mmio-gpio controllers to be instantiated from the device tree. The binding supports devices with multiple banks. v2: - Added more detail to the binding. - Added CONFIG_OF guards. - Use regoffset-* properties for each register in each bank

Re: [PATCH] mtd/m25p80: add device tree probe support

2011-07-28 Thread manu
Dear Grant, Shawn, I don't this patch is required as m25p** serial flashes are supported already with generic OF/SPI and OF/MTD schemes. I have successfully used it myself on an unmodified 2.6.36.3 vanilla kernel on a xilinx/powerpc platform with a m25p32 part from STM. You will find attached

Re: [PATCH 4/4] dt: i2c-omap: Convert i2c driver to use device tree

2011-07-28 Thread Grant Likely
On Thu, Jul 28, 2011 at 11:34 AM, Cousson, Benoit b-cous...@ti.com wrote: Hi Grant, On 7/14/2011 1:20 AM, Grant Likely wrote: On Thu, Jul 14, 2011 at 7:06 AM, G, Manjunath Kondaiahmanj...@ti.com  wrote: The i2c-omap driver is converted for supporting both dt and non dt builds and driver

Re: [RFC/PATCH 2/7] OMAP3: beagle: don't touch omap_device internals

2011-07-28 Thread Jean Pihet
Hi, On Fri, Jul 22, 2011 at 10:57 AM, Felipe Balbi ba...@ti.com wrote: Hi, On Thu, Jul 21, 2011 at 04:52:13PM -0700, Kevin Hilman wrote: Board code should not touch omap_device internals.  To get the MPU/IVA devices, use existing APIs: omap2_get_mpu_device(), omap2_get_iva_device().

Re: [PATCH 4/4] dt: i2c-omap: Convert i2c driver to use device tree

2011-07-28 Thread Cousson, Benoit
Hi Grant, On 7/14/2011 1:20 AM, Grant Likely wrote: On Thu, Jul 14, 2011 at 7:06 AM, G, Manjunath Kondaiahmanj...@ti.com wrote: The i2c-omap driver is converted for supporting both dt and non dt builds and driver is modified to use dt data partially. [...] /* NOTE: driver uses

Re: [RFC/PATCH 2/7] OMAP3: beagle: don't touch omap_device internals

2011-07-28 Thread Menon, Nishanth
On Thu, Jul 28, 2011 at 07:57, Cousson, Benoit b-cous...@ti.com wrote: [...] diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 293fa6c..77d01a2 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c @@ -142,6 +142,7 @@  

Re: [PATCH 3/4] dt: omap3: add generic board file for dt support

2011-07-28 Thread Cousson, Benoit
Hi Rajendra, On 7/21/2011 10:55 AM, Nayak, Rajendra wrote: On 7/20/2011 3:04 AM, Grant Likely wrote: On Mon, Jul 18, 2011 at 02:07:10AM -0700, Tony Lindgren wrote: * Grant Likelygrant.lik...@secretlab.ca [110716 22:08]: The way I see it, you've got two options: 1) modify the

Re: [PATCH] mtd/m25p80: add device tree probe support

2011-07-28 Thread Grant Likely
On Thu, Jul 28, 2011 at 09:22:59PM +0200, manu wrote: Dear Grant, Shawn, I don't this patch is required as m25p** serial flashes are supported already with generic OF/SPI and OF/MTD schemes. I have successfully used it myself on an unmodified 2.6.36.3 vanilla kernel on a xilinx/powerpc

Re: [PATCHv2 2/2] basic-mmio-gpio: add support for device tree probing

2011-07-28 Thread Grant Likely
On Thu, Jul 28, 2011 at 04:25:42PM +0100, Jamie Iles wrote: This patch adds support for basic-mmio-gpio controllers to be instantiated from the device tree. The binding supports devices with multiple banks. v2: - Added more detail to the binding. - Added CONFIG_OF guards.

Re: [PATCHv2 1/2] of/gpio: export of_gpio_simple_xlate

2011-07-28 Thread Grant Likely
On Thu, Jul 28, 2011 at 04:25:41PM +0100, Jamie Iles wrote: Allow GPIO drivers to use of_gpio_simple_xlate. This is useful for the generic GPIO driver for example where gpio_chip is embedded in bgpio_chip and doesn't need of_mm_gpio_chip but has a simple 1:1 GPIO mapping. Cc: Anton

Re: dt confusion, for_each_matching_node...

2011-07-28 Thread Grant Likely
On Tue, Jul 26, 2011 at 10:15:56PM +0200, Niklas Hernaeus wrote: Hi Grant. I am afraid I am seriously confused about how the dt is supposed to work. Maybe I simply lack a detail, if I am lucky... perhaps it is to late in the day... Problem: I cannot get the for_each_matching_node macro

Re: [PATCH 0/2] Add device tree probe for i2c-imx driver

2011-07-28 Thread Shawn Guo
Ping ... On Fri, Jul 22, 2011 at 10:15:25AM +0800, Shawn Guo wrote: Hi Ben, Any comments, or it's been good for you to queue them for v3.1 window? Regards, Shawn On Fri, Jul 15, 2011 at 12:03:43AM +0800, Shawn Guo wrote: The first patch removes unused init/exit hooks from platform

Re: [PATCH] Input: mma8450: add device tree probe support

2011-07-28 Thread Shawn Guo
Any comments? Regards, Shawn On Fri, Jul 22, 2011 at 12:25:51AM +0800, Shawn Guo wrote: It adds device tree probe support for mma8450 driver. Signed-off-by: Shawn Guo shawn@linaro.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Sammy He r62...@freescale.com Cc: Eric Miao

Re: [PATCH] ASoC: sgtl5000: add device tree probe support

2011-07-28 Thread Shawn Guo
On Tue, Jul 26, 2011 at 08:55:11PM +0100, Mark Brown wrote: On Fri, Jul 22, 2011 at 12:28:51AM +0800, Shawn Guo wrote: It adds device tree probe support for sgtl5000 driver. Kind of waiting for the device tree people to comment on this... Grant, please? Regards, Shawn