Re: [PATCH V2 00/10] mmc_of_parse() adaptations, DT support for Sheevaplugs

2013-05-13 Thread Guennadi Liakhovetski
Hi Simon On Mon, 13 May 2013, Simon Baatz wrote: > While adding DT support for the Sheevaplugs by Globalscale Technologies > (Kirkwood), it turned out that the DT binding of mvsdio lacked features to > properly support the hardware (active high/low of CD and WP pins could not > be described in DT

Re: [PATCH V2 05/10] mmc: sdhi-pxav3: handle mmc_of_parse() errors during probe

2013-05-13 Thread Guennadi Liakhovetski
There's a typo in the subject line - it's sdhci, not sdhi :) Thanks Guennadi On Mon, 13 May 2013, Simon Baatz wrote: > > Signed-off-by: Simon Baatz > --- > drivers/mmc/host/sdhci-pxav3.c |7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/sdhci

Re: [PATCH 1/6] ARM: tegra20: create a DT header defining CLK IDs

2013-05-13 Thread Hiroshi Doyu
Stephen Warren wrote @ Mon, 13 May 2013 18:46:27 +0200: > I'm not sure exactly how these patches will get merged. For you > reference, I anticipate one of two things happening: > > 1) > > * Patches 1, 3, 5 get put into a topic branch, and merged into both the > clk tree and the Tegra tree. > >

Re: [PATCH V2 07/10] ARM: mvebu: Use standard MMC binding for all users of mvsdio

2013-05-13 Thread Simon Baatz
Hi Jason, On Mon, May 13, 2013 at 07:09:18PM -0400, Jason Cooper wrote: > On Mon, May 13, 2013 at 11:18:58PM +0200, Simon Baatz wrote: > > In order to prepare the switch to the standard MMC device tree parser > > for mvsdio, adapt all current uses of mvsdio in the dts files to the > > standard for

Re: [PATCH RFC v3] media: i2c: mt9p031: add OF support

2013-05-13 Thread Sascha Hauer
On Tue, May 14, 2013 at 12:59:27AM +0200, Laurent Pinchart wrote: > Hi Sascha, > > On Monday 13 May 2013 12:46:04 Sascha Hauer wrote: > > On Wed, May 08, 2013 at 12:37:29PM +0200, Laurent Pinchart wrote: > > > Hi Prabhakar, > > > > > > On Wednesday 08 May 2013 10:19:57 Prabhakar Lad wrote: > > >

Re: [PATCH v2] mtd: fsmc_nand: fix error return code in fsmc_nand_probe()

2013-05-13 Thread Viresh Kumar
On 14 May 2013 08:00, Wei Yongjun wrote: > From: Wei Yongjun > > Fix to return -ENODEV in the dma channel request error handling > case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun > --- > v1 -> v2: set ret for error cases only > --- > drivers/mtd/nand/fsmc_n

[PATCH v2] mtd: fsmc_nand: fix error return code in fsmc_nand_probe()

2013-05-13 Thread Wei Yongjun
From: Wei Yongjun Fix to return -ENODEV in the dma channel request error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- v1 -> v2: set ret for error cases only --- drivers/mtd/nand/fsmc_nand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/

Re: [PATCH V2 07/10] ARM: mvebu: Use standard MMC binding for all users of mvsdio

2013-05-13 Thread Jason Cooper
On Mon, May 13, 2013 at 11:18:58PM +0200, Simon Baatz wrote: > In order to prepare the switch to the standard MMC device tree parser > for mvsdio, adapt all current uses of mvsdio in the dts files to the > standard format. > > Signed-off-by: Simon Baatz > --- ... > diff --git a/arch/arm/boot/dts/

Re: [PATCH RFC v3] media: i2c: mt9p031: add OF support

2013-05-13 Thread Laurent Pinchart
Hi Sascha, On Monday 13 May 2013 12:46:04 Sascha Hauer wrote: > On Wed, May 08, 2013 at 12:37:29PM +0200, Laurent Pinchart wrote: > > Hi Prabhakar, > > > > On Wednesday 08 May 2013 10:19:57 Prabhakar Lad wrote: > > > On Wed, May 8, 2013 at 7:32 AM, Laurent Pinchart wrote: > > > > On Tuesday 07 Ma

[PATCH V2 09/10] ARM: Kirkwood: Add dts files for Sheevaplug and eSATA Sheevaplug

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- arch/arm/boot/dts/Makefile|2 + arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi | 97 + arch/arm/boot/dts/kirkwood-sheevaplug-esata.dts | 40 + arch/arm/boot/dts/kirkwood-sheevaplug.dts | 45

[PATCH V2 06/10] mmc: tegra: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/sdhci-tegra.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index e0dba74..7eb62f8 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/

[PATCH V2 08/10] mmc: mvsdio: use standard MMC device-tree binding parser mmc_of_parse()

2013-05-13 Thread Simon Baatz
Instead of parsing the DT binding on our own, use the standard parser mmc_of_parse(), introduced by commit 6c56e7a. Signed-off-by: Simon Baatz --- drivers/mmc/host/mvsdio.c | 73 + 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/drive

[PATCH V2 03/10] mmc: tmio-mmc: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/tmio_mmc_pio.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index f508ecb..f1a9d4a 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tm

[PATCH V2 10/10] ARM: Kirkwood: add DT support for Sheevaplug and Sheevaplug eSATA

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- arch/arm/mach-kirkwood/Kconfig|7 +++ arch/arm/mach-kirkwood/Makefile |1 + arch/arm/mach-kirkwood/board-dt.c |4 arch/arm/mach-kirkwood/board-sheevaplug.c | 27 +++ arch/arm/mach-kirkwood

[PATCH V2 05/10] mmc: sdhi-pxav3: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/sdhci-pxav3.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index 1ae358e..67ea388 100644 --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sd

[PATCH V2 07/10] ARM: mvebu: Use standard MMC binding for all users of mvsdio

2013-05-13 Thread Simon Baatz
In order to prepare the switch to the standard MMC device tree parser for mvsdio, adapt all current uses of mvsdio in the dts files to the standard format. Signed-off-by: Simon Baatz --- arch/arm/boot/dts/armada-370-db.dts|1 + arch/arm/boot/dts/armada-370-mirabox.dts

[PATCH V2 04/10] mmc: mxcmmc: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/mxcmmc.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/mxcmmc.c b/drivers/mmc/host/mxcmmc.c index d503635..f47546f 100644 --- a/drivers/mmc/host/mxcmmc.c +++ b/drivers/mmc/host/mxcmmc.c @@ -1067,7 +1067,

[PATCH V2 00/10] mmc_of_parse() adaptations, DT support for Sheevaplugs

2013-05-13 Thread Simon Baatz
While adding DT support for the Sheevaplugs by Globalscale Technologies (Kirkwood), it turned out that the DT binding of mvsdio lacked features to properly support the hardware (active high/low of CD and WP pins could not be described in DT). This is standard functionality provided by the mmc_of_p

[PATCH V2 02/10] mmc: sh_mmcif: handle mmc_of_parse() errors during probe

2013-05-13 Thread Simon Baatz
Signed-off-by: Simon Baatz --- drivers/mmc/host/sh_mmcif.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index ba76a53..6ded7fb 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -

[PATCH V2 01/10] mmc: return mmc_of_parse() errors to caller

2013-05-13 Thread Simon Baatz
In addition to just logging errors encountered during DT parsing or allocating GPIO slots for CD/WP, mmc_of_parse() now returns with an error. Signed-off-by: Simon Baatz --- drivers/mmc/core/host.c | 24 +++- include/linux/mmc/host.h |2 +- 2 files changed, 20 insertio

[PATCH v2] i2c: core: make it possible to match a pure device tree driver

2013-05-13 Thread Linus Walleij
This tries to address an issue found when writing an MFD driver for the Nomadik STw481x PMICs: as the platform is using device tree exclusively I want to specify the driver matching like this: static const struct of_device_id stw481x_match[] = { { .compatible = "st,stw4810", }, { .

Re: [PATCH] pinctrl: dove: add PMU functions to pinctrl

2013-05-13 Thread Jason Cooper
On Mon, May 13, 2013 at 10:03:57PM +0200, Sebastian Hesselbarth wrote: > On 05/13/2013 10:00 PM, Jason Cooper wrote: > >On Tue, May 07, 2013 at 01:36:08AM +0200, Sebastian Hesselbarth wrote: > >>Dove power management unit can mux some special functions to mpp0-15. > >>This patch adds support to set

Re: [PATCH] pinctrl: dove: add PMU functions to pinctrl

2013-05-13 Thread Sebastian Hesselbarth
On 05/13/2013 10:00 PM, Jason Cooper wrote: On Tue, May 07, 2013 at 01:36:08AM +0200, Sebastian Hesselbarth wrote: Dove power management unit can mux some special functions to mpp0-15. This patch adds support to set/get the current PMU function mapped to the corresponding mpp pins. The device tr

Re: [PATCH] pinctrl: dove: add PMU functions to pinctrl

2013-05-13 Thread Jason Cooper
On Tue, May 07, 2013 at 01:36:08AM +0200, Sebastian Hesselbarth wrote: > Dove power management unit can mux some special functions to mpp0-15. > This patch adds support to set/get the current PMU function mapped > to the corresponding mpp pins. The device tree documentation is also > updated accord

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

2013-05-13 Thread Stephen Boyd
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 either one or two views. A frame typically maps to a privilege level (user/kernel,

Re: [PATCH] usb: phy: samsung: adding usbphy for Exynos4X12

2013-05-13 Thread Tomasz Figa
Hi Vivek, On Tuesday 14 of May 2013 01:10:32 Vivek Gautam wrote: > Hi Dongjin, > > On Mon, May 13, 2013 at 11:55 PM, Dongjin Kim wrote: > > This patch adds usb host phy (USB 2.0 PHY) support for Samsung > > Exynos4X12 SoC. New functions, > > samsung_exynos4x12_usb2phy_enable/_disable and select

Re: [PATCH] usb: phy: samsung: adding usbphy for Exynos4X12

2013-05-13 Thread Vivek Gautam
Hi Dongjin, On Mon, May 13, 2013 at 11:55 PM, Dongjin Kim wrote: > This patch adds usb host phy (USB 2.0 PHY) support for Samsung Exynos4X12 SoC. > New functions, samsung_exynos4x12_usb2phy_enable/_disable and selecting > reference clock, for Exynos4X12 are added. Since it has different register

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

2013-05-13 Thread Thomas Gleixner
On Mon, 13 May 2013, Linus Walleij wrote: > On Wed, May 8, 2013 at 4:11 PM, Srinivas KANDAGATLA > > + clk->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; > > + clk->set_mode = gt_clockevent_set_mode; > > + clk->set_next_event = gt_clockevent_set_next_event; > > +

Re: [PATCH v3] clk: add PowerPC corenet clock driver support

2013-05-13 Thread Mike Turquette
Quoting yuantian.t...@freescale.com (2013-04-09 01:46:26) > From: Tang Yuantian > > This adds the clock driver for Freescale PowerPC corenet > series SoCs using common clock infrastructure. > > Signed-off-by: Tang Yuantian > Signed-off-by: Li Yang Patch #1 looks good to me. I've taken it int

[PATCH 4/4] ARM: tegra: convert device tree files to use IRQ defines

2013-05-13 Thread Stephen Warren
From: Stephen Warren Use the GIC and standard IRQ binding defines in all IRQ specifiers. Signed-off-by: Stephen Warren --- arch/arm/boot/dts/tegra114-dalmore.dts |2 +- arch/arm/boot/dts/tegra114.dtsi| 151 arch/arm/boot/dts/tegra20-colibri-512.dts

[PATCH 3/4] ARM: tegra: convert device tree files to use GPIO defines

2013-05-13 Thread Stephen Warren
From: Stephen Warren Use TEGRA_GPIO() macro to name all GPIOs referenced by GPIO properties, and some interrupts properties. Use standard GPIO flag defines too. Signed-off-by: Stephen Warren --- arch/arm/boot/dts/tegra114-dalmore.dts | 12 arch/arm/boot/dts/tegra114.dtsi

[PATCH 1/4] ARM: tegra: use #include for all device trees

2013-05-13 Thread Stephen Warren
From: Stephen Warren Replace /include/ (dtc) with #include (C pre-processor) for all Tegra DT files, so that gcc -E handles the entire include tree, and hence any of those files can #include some other file e.g. for constant definitions. This allows future use of #defines and header files in ord

[PATCH 2/4] ARM: tegra: create a DT header defining GPIO IDs

2013-05-13 Thread Stephen Warren
From: Stephen Warren All Tegra GPIOs are named after the GPIO bank and GPIO number within the bank. Define a macro to calculate the GPIO ID based on those parameters. Make the macro available via all Tegra .dtsip files. Signed-off-by: Stephen Warren --- include/dt-bindings/gpio/tegra-gpio.h |

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

2013-05-13 Thread Linus Walleij
On Wed, May 8, 2013 at 4:11 PM, Srinivas KANDAGATLA wrote: Thomas Gleixner and John Stultz should always be included on timer code review. This is one reason I really like to move the clocksource/clockevent/etc code out of arch/arm, so that people can get their To: line right from MAINTAINERS. (

[PATCH] usb: phy: samsung: adding usbphy for Exynos4X12

2013-05-13 Thread Dongjin Kim
This patch adds usb host phy (USB 2.0 PHY) support for Samsung Exynos4X12 SoC. New functions, samsung_exynos4x12_usb2phy_enable/_disable and selecting reference clock, for Exynos4X12 are added. Since it has different register set up with Exynos4210 or Exynos5250, "samsung,exynos4x12-usb2phy" is add

Re: [PATCH 2/6] ARM: tegra20: convert device tree files to use CLK defines

2013-05-13 Thread Stephen Warren
On 05/13/2013 05:07 AM, Hiroshi Doyu wrote: > Replace magic number in tegra_car: > > - clocks = <&tegra_car 28>; > + clocks = <&tegra_car CLK_HOST1X>; Patches 2, 4, 6 look basically fine. I'd also like slightly more explanation in the commit description here. How about

Re: [PATCH 1/6] ARM: tegra20: create a DT header defining CLK IDs

2013-05-13 Thread Stephen Warren
On 05/13/2013 05:07 AM, Hiroshi Doyu wrote: > To replace magic number in tegra_car: > > - clocks = <&tegra_car 28>; > + clocks = <&tegra_car CLK_HOST1X>; > @@ -172,7 +26,7 @@ Example SoC include file: > }; > > usb@c5004000 { > - clocks = <&teg

Re: [PATCH 1/6] ARM: tegra20: create a DT header defining CLK IDs

2013-05-13 Thread Stephen Warren
On 05/13/2013 05:07 AM, Hiroshi Doyu wrote: > To replace magic number in tegra_car: > > - clocks = <&tegra_car 28>; > + clocks = <&tegra_car CLK_HOST1X>; I'd like slightly more description of the change here. What about: = Create a header file to define the clock

Re: [PATCH 1/2] PM / OPP: add support to specify phandle of another node for OPP

2013-05-13 Thread Sudeep KarkadaNagesha
Hi device-tree folks, On 01/05/13 15:41, Nishanth Menon wrote: > On 12:11-20130501, sudeep.karkadanage...@arm.com wrote: >> From: Sudeep KarkadaNagesha >> >> If more than one similar devices share the same OPPs, currently we >> need to replicate the OPP entries in all the nodes. > Nice, thanks. >

[PATCH 5/6] ARM: tegra114: create a DT header defining CLK IDs

2013-05-13 Thread Hiroshi Doyu
Replace magic number in tegra_car: - clocks = <&tegra_car 28>; + clocks = <&tegra_car CLK_HOST1X>; Signed-off-by: Hiroshi Doyu --- .../bindings/clock/nvidia,tegra114-car.txt | 250 +-- include/dt-bindings/clk/tegra114-car.h | 342 +

[PATCH 4/6] ARM: tegra30: convert device tree files to use CLK defines

2013-05-13 Thread Hiroshi Doyu
Replace magic number in tegra_car: - clocks = <&tegra_car 28>; + clocks = <&tegra_car CLK_HOST1X>; Signed-off-by: Hiroshi Doyu --- arch/arm/boot/dts/tegra30-beaver.dts | 4 +- arch/arm/boot/dts/tegra30-cardhu.dtsi | 4 +- arch/arm/boot/dts/tegra30.dtsi|

[PATCH 6/6] ARM: tegra114: convert device tree files to use CLK defines

2013-05-13 Thread Hiroshi Doyu
Replace magic number in tegra_car: - clocks = <&tegra_car 28>; + clocks = <&tegra_car CLK_HOST1X>; Signed-off-by: Hiroshi Doyu --- arch/arm/boot/dts/tegra114-dalmore.dts | 4 +- arch/arm/boot/dts/tegra114.dtsi| 79 +++--- 2 files

[PATCH 0/6] CLK: tegra: convert device tree files to use CLK defines

2013-05-13 Thread Hiroshi Doyu
This patchset converts device tree files to use CLK defines. This is against Stephen Warren's linux-next_common branch in: git://nv-tegra.nvidia.com/user/swarren/linux-2.6 If this is ok, I'll also convert enum variables to use CLK defines in drivers/clk/tegra/clk-tegra{20,30,114}.c Hiroshi Do

[PATCH 3/6] ARM: tegra30: create a DT header defining CLK IDs

2013-05-13 Thread Hiroshi Doyu
To replace magic number in tegra_car: - clocks = <&tegra_car 28>; + clocks = <&tegra_car CLK_HOST1X>; Signed-off-by: Hiroshi Doyu --- .../bindings/clock/nvidia,tegra30-car.txt | 209 +--- include/dt-bindings/clk/tegra30-car.h | 265 +

[PATCH 2/6] ARM: tegra20: convert device tree files to use CLK defines

2013-05-13 Thread Hiroshi Doyu
Replace magic number in tegra_car: - clocks = <&tegra_car 28>; + clocks = <&tegra_car CLK_HOST1X>; Signed-off-by: Hiroshi Doyu --- arch/arm/boot/dts/tegra20-colibri-512.dtsi | 4 +- arch/arm/boot/dts/tegra20-harmony.dts | 4 +- arch/arm/boot/dts/tegra20-medc

[PATCH 1/6] ARM: tegra20: create a DT header defining CLK IDs

2013-05-13 Thread Hiroshi Doyu
To replace magic number in tegra_car: - clocks = <&tegra_car 28>; + clocks = <&tegra_car CLK_HOST1X>; Signed-off-by: Hiroshi Doyu --- .../bindings/clock/nvidia,tegra20-car.txt | 152 +--- include/dt-bindings/clk/tegra20-car.h | 1

Re: [PATCH] i2c: core: make it possible to match a pure device tree driver

2013-05-13 Thread Grant Likely
On 13 May 2013 10:26, Linus Walleij wrote: > On Mon, May 13, 2013 at 9:16 AM, Sascha Hauer wrote: > >>> - status = driver->probe(client, i2c_match_id(driver->id_table, >>> client)); >>> + if (dev->driver->of_match_table) >>> + /* Device tree matching */ >>> + stat

Re: [PATCH RFC v3] media: i2c: mt9p031: add OF support

2013-05-13 Thread Sascha Hauer
On Wed, May 08, 2013 at 12:37:29PM +0200, Laurent Pinchart wrote: > Hi Prabhakar, > > On Wednesday 08 May 2013 10:19:57 Prabhakar Lad wrote: > > On Wed, May 8, 2013 at 7:32 AM, Laurent Pinchart wrote: > > > On Tuesday 07 May 2013 15:10:36 Prabhakar Lad wrote: > > >> On Mon, May 6, 2013 at 8:29 PM,

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

2013-05-13 Thread Will Deacon
On Mon, May 13, 2013 at 10:07:24AM +0100, Andreas Herrmann wrote: > On Tue, May 07, 2013 at 04:26:02PM -0400, Olav Haugan wrote: > > I think you misunderstood me. I am talking about having for example 1 > > master with two (2) context banks so that StreamID "1" goes to CB0 and > > StreamID "2" goes

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

2013-05-13 Thread Will Deacon
On Mon, May 13, 2013 at 10:50:20AM +0100, Andreas Herrmann wrote: > Hi Will, Hi Andreas, > so far, I thought, that this proposal is fine. After I have tried to > make use of the binding I have some points that might need further > disucssion. Sure, although I've been using the binding without is

Re: [PATCH] i2c: core: make it possible to match a pure device tree driver

2013-05-13 Thread Linus Walleij
On Mon, May 13, 2013 at 9:16 AM, Sascha Hauer wrote: >> - status = driver->probe(client, i2c_match_id(driver->id_table, client)); >> + if (dev->driver->of_match_table) >> + /* Device tree matching */ >> + status = driver->probe(client, NULL); >> + else >> +

Re: [PATCH] mtd: fsmc_nand: fix error return code in fsmc_nand_probe()

2013-05-13 Thread Viresh Kumar
On 13 May 2013 12:25, Wei Yongjun wrote: > From: Wei Yongjun > > Fix to return -ENODEV in the dma channel request error handling > case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun > --- > drivers/mtd/nand/fsmc_nand.c | 1 + > 1 file changed, 1 insertion(+) >

Re: [PATCH] i2c: core: make it possible to match a pure device tree driver

2013-05-13 Thread Sascha Hauer
Hi Linus, On Mon, May 13, 2013 at 12:26:23AM +0200, Linus Walleij wrote: > Cc: Rob Herring > Cc: Grant Likely > Signed-off-by: Linus Walleij > --- > I would need some device tree core people to confirm that I am > on the right track with this. I was s confused when I found > that .of_match_