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 beca

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 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 have to asso

[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 --- .../devicetree/bindings/arm/samsung-timer.txt | 32 +++

[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 --- Documentation/devicetree/bindings/arm/vic.txt | 6

[PATCH v2 2/4] ARM: s3c64xx: Add board file for boot using Device Tree

2013-02-10 Thread Tomasz Figa
This patch adds board file that will be used to boot S3C64xx-based boards using Device Tree. Signed-off-by: Tomasz Figa --- arch/arm/mach-s3c64xx/Kconfig | 14 + arch/arm/mach-s3c64xx/Makefile | 1 + arch/arm/mach-s3c64xx/mach-s3c64xx-dt.c | 94 +++

[PATCH v2 3/4] ARM: dts: Add basic dts include files for Samsung S3C64xx SoCs

2013-02-10 Thread Tomasz Figa
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 common one. Signed-off-by: Tomasz Figa --- ar

[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 --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/s3c6410-mini6410.dts | 50 ++ 2 files changed, 51 insertions(+)

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 dri

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 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 of_spi_register

[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 of

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 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 Applied, thanks. I did tweak the language a bit. g. > --- > include/linux/spi/spi.h |

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 wrote: > Using memset does not set an array of integers properly > > Signed-off-by: Andreas Larsson Applied, thanks. g. > --- > drivers/spi/spi.c |3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/spi/s

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 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 Out of curiosity, what do you need the flags for? Polarity of the CS signal? I think i

Re: [PATCH v2 6/6] of_spi: Initialize cs_gpios and cs_gpio with -EEXIST

2013-02-10 Thread Grant Likely
On Tue, 29 Jan 2013 15:53:43 +0100, Andreas Larsson wrote: > Holes in the cs-gpios DT phandle list is supposed to mark that native > chipselects is to be used. The value returned from of_get_named_gpio_flags in > this case is -EEXIST. By initializing cs_gpios and cs_gpio with -EEXIST, this > and o

[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 --- Tested on da850 EVM. :100644 100644 2c81e45... c6384e2... M Documentation/devicetree/bindings/p

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

RE: [PATCH v2 2/3] mmc: davinci_mmc: add DT support

2013-02-10 Thread Manjunathappa, Prakash
Hi Mark, On Fri, Feb 08, 2013 at 11:55:09, Manjunathappa, Prakash wrote: > Hi Mark, > > On Thu, Feb 07, 2013 at 16:16:56, Mark Rutland wrote: > > Hello, > > > > I have a couple of comments on the dt bindings and the way it's parsed. > > > > Thanks for your review comments. > > > On Thu, Feb 0

Re: [PATCH] clk: add si5351 i2c common clock driver

2013-02-10 Thread Mike Turquette
Quoting Sebastian Hesselbarth (2013-02-09 04:59:32) > This patch adds a common clock driver for Silicon Labs Si5351a/b/c > i2c programmable clock generators. Currently, the driver supports > DT kernels only and VXCO feature of si5351b is not implemented. DT > bindings selectively allow to overwrite

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";