Re: [PATCH RFC 1/7] platform: add a device node

2013-02-10 Thread Russell King - ARM Linux
On Sun, Feb 10, 2013 at 02:49:21AM +0100, Javier Martinez Canillas wrote: I knew this would be controversial and that's why I didn't mean it to be a patch but a RFC :) The problem basically is that you have to associate the platform device with its corresponding DT device node because it

Re: [PATCH RFC 1/7] platform: add a device node

2013-02-10 Thread Javier Martinez Canillas
On Sun, Feb 10, 2013 at 10:37 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Sun, Feb 10, 2013 at 02:49:21AM +0100, Javier Martinez Canillas wrote: I knew this would be controversial and that's why I didn't mean it to be a patch but a RFC :) The problem basically is that you

[PATCH 12/12] clocksource: samsung-time: Add Device Tree support

2013-02-10 Thread Tomasz Figa
This patch adds support for parsing all platform-specific data from Device Tree and instantiation using clocksource_of_init to samsung-time clocksource driver. Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: Tomasz Figa tomasz.f...@gmail.com ---

[PATCH v2 0/4] Initial Device Tree support for S3C64xx

2013-02-10 Thread Tomasz Figa
This series adds Device Tree support for Samsung S3C64xx SoC series. It fixes several problems preventing from booting an S3C64xx-based system using Device Tree, adds all the infrastructure for Device Tree-based board support, including mach-s3c64xx-dt and dts include files for S3C64xx SoCs, and

[PATCH v2 1/4] ARM: common: vic: Parse interrupt and resume masks from device tree

2013-02-10 Thread Tomasz Figa
This patch extends vic_of_init to parse valid interrupt sources and resume sources masks from device tree. If mask values are not specified in device tree, all sources are assumed to be valid, as before this patch. Signed-off-by: Tomasz Figa tomasz.f...@gmail.com ---

[PATCH v2 4/4] ARM: dts: Add dts file for S3C6410-based Mini6410 board

2013-02-10 Thread Tomasz Figa
This patch adds basic device tree sources for FriendlyARM Mini6410 board based on Samsung S3C6410 SoC. Signed-off-by: Tomasz Figa tomasz.f...@gmail.com --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/s3c6410-mini6410.dts | 50 ++ 2 files

Re: [PATCH] cpuidle: kirkwood: Move out of mach directory, add DT.

2013-02-10 Thread Andrew Lunn
+* QNAP Power Off + +QNAP NAS devices have a microcontroller controlling the main power +supply. This microcontroller is connected to UART1 of the Kirkwood and +Orion5x SoCs. Sending the charactor 'A', at 19200 baud, tells the +microcontroller to turn the power off. This driver adds a

Re: [PATCH v2 2/6] of: Return -ENXIO from of_parse_phandle_with_args for too large index and return errors from of_gpio_named_count

2013-02-10 Thread Grant Likely
On Tue, 29 Jan 2013 15:53:39 +0100, Andreas Larsson andr...@gaisler.com wrote: This lets of_gpio_named_count return an errno on errors by being able to distinguish between reaching the end of the phandle list and getting some other error from of_parse_phandle_with_args. Return error from

[PATCH] of: Create function for counting number of phandles in a property

2013-02-10 Thread Grant Likely
This patch creates of_count_phandle_with_args(), a new function for counting the number of phandle+argument tuples in a given property. This is better than the existing method of parsing each phandle individually until parsing fails which is a horribly slow way to do the count. It also converts

Re: [PATCH v2 4/6] of_spi: Document cs_gpios and cs_gpio in kernel-doc

2013-02-10 Thread Grant Likely
On Tue, 29 Jan 2013 15:53:41 +0100, Andreas Larsson andr...@gaisler.com wrote: This adds missing kernel-doc entries for cs_gpios in struct spi_master and cs_gpio in struct spi_device. Signed-off-by: Andreas Larsson andr...@gaisler.com Applied, thanks. I did tweak the language a bit. g.

Re: [PATCH v2 3/6] of_spi: Initialize cs_gpios properly

2013-02-10 Thread Grant Likely
On Tue, 29 Jan 2013 15:53:40 +0100, Andreas Larsson andr...@gaisler.com wrote: Using memset does not set an array of integers properly Signed-off-by: Andreas Larsson andr...@gaisler.com Applied, thanks. g. --- drivers/spi/spi.c |3 ++- 1 files changed, 2 insertions(+), 1

Re: [PATCH v2 5/6] of_spi: Add fetching of of_gpio flags to of_spi_register_master

2013-02-10 Thread Grant Likely
On Tue, 29 Jan 2013 15:53:42 +0100, Andreas Larsson andr...@gaisler.com wrote: When using a gpio chip select with a OF_GPIO_ACTIVE_LOW flag, this needs to be known to the controller driver. Signed-off-by: Andreas Larsson andr...@gaisler.com Out of curiosity, what do you need the flags for?

[PATCH] pinctrl: pinctrl-single: fix the binding documentation

2013-02-10 Thread Kumar, Anil
As there are no use of #address-cells and #size-cells properties in pinctrl-single driver DT node. Fix pinctrl-single binding documentation to remove these properties. Signed-off-by: Kumar, Anil anilkuma...@ti.com --- Tested on da850 EVM. :100644 100644 2c81e45... c6384e2... M

Re: [PATCH 5/8] libfdt: Add function to find regions in an FDT

2013-02-10 Thread David Gibson
On Mon, Jan 21, 2013 at 12:59:19PM -0800, Simon Glass wrote: Given a set of nodes and properties, find the regions of the device tree which describe those parts. A test is provided which builds a tree while tracking where the regions should be, then calls fdt_find_regions() to make sure that

Devicetree node to turn off LCD when backlight is 'disabled'

2013-02-10 Thread Tony Prisk
I was just wondering if the following would be an acceptable way to turn off an lcd backlight when the pwm-backlight driver is set to level 0. The LCD backlight is 'powered' by the gpio. leds { compatible = gpio-leds; backlight { label = lcd-power;