Re: [PATCH v3 5/7] ARM: shmobile: r8a7740: add DT nodes for three DMAC instance

2013-07-03 Thread Guennadi Liakhovetski
Hi Magnus On Wed, 3 Jul 2013, Magnus Damm wrote: Hi Guennadi, On Wed, Jun 26, 2013 at 11:40 PM, Guennadi Liakhovetski g.liakhovet...@gmx.de wrote: This patch adds Device Tree support for the three DMA controller instances on r8a7740 in a DMA multiplexer node. Signed-off-by: Guennadi

Re: [PATCH v3 0/7] ARM: shmobile: shdma DT on sh73a0 and r8a7740

2013-06-27 Thread Guennadi Liakhovetski
Hi Simon On Thu, 27 Jun 2013, Simon Horman wrote: On Wed, Jun 26, 2013 at 04:40:49PM +0200, Guennadi Liakhovetski wrote: Recently shdma acquired DT support with a possibility to place multiple compatible DMAC instances under a common DMA multiplexer DT node. This is used to provide DMA

[PATCH/RFC v3 3/7] ARM: shmobile: kzm9g-reference: add DMA channels to the MMCIF DT

2013-06-26 Thread Guennadi Liakhovetski
The MMCIF driver can use DMA for data transfer, add suitable Device Tree bindings. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- arch/arm/boot/dts/sh73a0-kzm9g-reference.dts |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH/RFC 1/7] DMA: shdma: also support single top-level DMAC DT nodes

2013-06-26 Thread Guennadi Liakhovetski
. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Cc: Vinod Koul vinod.k...@intel.com --- drivers/dma/sh/shdma-of.c |5 +++-- drivers/dma/sh/shdma.c| 16 include/linux/sh_dma.h|5 + 3 files changed, 24 insertions(+), 2 deletions(-) diff --git

[PATCH/RFC v3 2/7] ARM: shmobile: sh73a0: add support for the DMA0 controller in DT

2013-06-26 Thread Guennadi Liakhovetski
Add a Device Tree node for the DMA0 controller on sh73a0 and auxdata to supply platform data to the driver. To enable the DMA0 controller it also has to be taken out of reset. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- arch/arm/boot/dts/sh73a0.dtsi | 36

[PATCH v3 7/7] ARM: shmobile: armadillo800eva-reference: add DMA support for MMCIF and SDHI

2013-06-26 Thread Guennadi Liakhovetski
Add DMA bindings to SDHI and MMCIF DT nodes on armadillo800eva-reference. Since SDHI and MMCIF devices can use any of the 3 DMAC instances on r8a7740, we point to the DMA multiplexer node instead of a specific DMAC DT node. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com

[PATCH v3 5/7] ARM: shmobile: r8a7740: add DT nodes for three DMAC instance

2013-06-26 Thread Guennadi Liakhovetski
This patch adds Device Tree support for the three DMA controller instances on r8a7740 in a DMA multiplexer node. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- arch/arm/boot/dts/r8a7740.dtsi | 62 arch/arm/mach-shmobile/setup

[PATCH v3 4/7] ARM: shmobile: r8a7740: add MMCIF DMA definitions

2013-06-26 Thread Guennadi Liakhovetski
Add DMA channel slave IDs and configuration entries for the r8a7740 MMCIF controller. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- arch/arm/mach-shmobile/include/mach/r8a7740.h |2 ++ arch/arm/mach-shmobile/setup-r8a7740.c| 10 ++ 2 files

[PATCH v3 0/7] ARM: shmobile: shdma DT on sh73a0 and r8a7740

2013-06-26 Thread Guennadi Liakhovetski
to not add this complexity to the driver and use a dummy DMA multiplexer instead, patch 1 shall be dropped and patches 2 and 3 would have to be reworked. Cc: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Cc: Vinod Koul vinod.k...@intel.com Guennadi Liakhovetski (7): DMA: shdma: also

[PATCH v3 6/7] ARM: shmobile: add SDHI and MMCIF interfaces to armadillo800eva-reference

2013-06-26 Thread Guennadi Liakhovetski
Add SDHI0, SDHI1 and MMCIF interfaces to armadillo800eva-reference. With no pinctrl DT support we cannot use GPIO card-detection and regulator switching. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- .../boot/dts/r8a7740-armadillo800eva-reference.dts | 21 +++- arch

Re: [PATCH v2 3/3] DMA: shdma: add DT support

2013-06-18 Thread Guennadi Liakhovetski
Hi Arnd On Mon, 17 Jun 2013, Arnd Bergmann wrote: On Thursday 06 June 2013, Guennadi Liakhovetski wrote: +Required properties: +- dmas:a list of [DMA controller phandle] [MID/RID value] pairs +- dma-names: a list of DMA channel names, one per dmas entry Looks ok

Re: [PATCH 2/3] dmaengine: add support for DMA multiplexer DT nodes

2013-06-18 Thread Guennadi Liakhovetski
Hi Arnd Thanks for your comments On Mon, 17 Jun 2013, Arnd Bergmann wrote: On Thursday 06 June 2013, Guennadi Liakhovetski wrote: Documentation/devicetree/bindings/dma/dma.txt | 44 + drivers/dma/of-dma.c | 31 + 2

[PATCH v3] DMA: shdma: add DT support

2013-06-18 Thread Guennadi Liakhovetski
procedure. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- v3: reimplementation without a common DMAC multiplexer support in dmaengine core, the multiplexer is now SHDMA local. Documentation/devicetree/bindings/dma/shdma.txt | 75 + drivers/dma/sh

[PATCH v2] ARM: shmobile: irqpin: add a DT property to enable masking on parent

2013-06-18 Thread Guennadi Liakhovetski
-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Acked-by: Magnus Damm d...@opensource.se --- v2: rebased on top of the current tree, also added Acked-by from Magnus .../interrupt-controller/renesas,intc-irqpin.txt |2 ++ drivers/irqchip/irq-renesas-intc-irqpin.c |7 +-- 2

Re: [PATCH 0/3] dma: add support for DMA multiplexer DT nodes

2013-06-12 Thread Guennadi Liakhovetski
On Wed, 12 Jun 2013, Vinod Koul wrote: On Wed, Jun 12, 2013 at 02:53:49PM +0530, Vinod Koul wrote: On Thu, Jun 06, 2013 at 05:47:22PM +0200, Guennadi Liakhovetski wrote: Next re-send of an earlier work. This series adds support for multiple compatible DMAC instances, capable of serving

Re: [PATCH 4/4] OF: modify function stubs to match proper function declarations.

2013-06-06 Thread Guennadi Liakhovetski
Hi On Tue, 30 Apr 2013, Guennadi Liakhovetski wrote: of_parse_phandle_with_args() and of_count_phandle_with_args() functions are declared with their first parameter as const. However, their respective stubs, used when CONFIG_OF isn't defined, don't have the const modifier. This patch adds

[PATCH 0/4] mmc: MMCIF SDHI: DT DMA support

2013-06-06 Thread Guennadi Liakhovetski
. Cc: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Guennadi Liakhovetski (4): mmc: sh_mmcif: add support for Device Tree DMA bindings mmc: sdhi/tmio: make DMA filter implementation specific mmc: sdhi/tmio: switch to using dmaengine_slave_config() mmc: sdhi/tmio: add DT DMA support

[PATCH 3/4] mmc: sdhi/tmio: switch to using dmaengine_slave_config()

2013-06-06 Thread Guennadi Liakhovetski
This removes the deprecated use of the .private member of struct dma_chan and switches the sdhi / tmio mmc driver to using the dmaengine_slave_config() channel configuration method. Cc: Samuel Ortiz sa...@linux.intel.com Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Acked

[PATCH 2/4] mmc: sdhi/tmio: make DMA filter implementation specific

2013-06-06 Thread Guennadi Liakhovetski
function can safely be provided by it. Move it into SDHI. Cc: Samuel Ortiz sa...@linux.intel.com Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Acked-by: Samuel Ortiz sa...@linux.intel.com --- drivers/mmc/host/sh_mobile_sdhi.c |9 + drivers/mmc/host/tmio_mmc_dma.c

[PATCH 4/4] mmc: sdhi/tmio: add DT DMA support

2013-06-06 Thread Guennadi Liakhovetski
Add support for initialising DMA from the Device Tree. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- drivers/mmc/host/sh_mobile_sdhi.c | 14 +++--- drivers/mmc/host/tmio_mmc_dma.c | 19 --- 2 files changed, 19 insertions(+), 14 deletions

[PATCH 1/4] mmc: sh_mmcif: add support for Device Tree DMA bindings

2013-06-06 Thread Guennadi Liakhovetski
To use DMA in the Device Tree case the driver has to be modified to use suitable API to obtain DMA channels. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- drivers/mmc/host/sh_mmcif.c | 29 ++--- 1 files changed, 18 insertions(+), 11 deletions

[PATCH 0/3] dma: add support for DMA multiplexer DT nodes

2013-06-06 Thread Guennadi Liakhovetski
clutters the Device Tree. Instead we group such DMAC DT nodes together under a common parent. Then slaves can just reference that parent in their DMA bindings. Cc: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Guennadi Liakhovetski (3): OF: add a new phandle parsing function for grouped

[PATCH 2/3] dmaengine: add support for DMA multiplexer DT nodes

2013-06-06 Thread Guennadi Liakhovetski
#dma-cells number and use the same slave IDs. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- Documentation/devicetree/bindings/dma/dma.txt | 44 + drivers/dma/of-dma.c | 31 + 2 files changed, 67

[PATCH v2 3/3] DMA: shdma: add DT support

2013-06-06 Thread Guennadi Liakhovetski
procedure. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- v2: merge DT binding documentation into the patch Documentation/devicetree/bindings/dma/shdma.txt | 61 +++ drivers/dma/sh/shdma-base.c | 51 +-- drivers

Re: [PATCH] mmc: sh_mobile_sdhi: fix error return code in sh_mobile_sdhi_probe()

2013-05-29 Thread Guennadi Liakhovetski
On Wed, 29 May 2013, Wei Yongjun wrote: Hi On 05/29/2013 02:58 PM, Guennadi Liakhovetski wrote: Hi On Tue, 28 May 2013, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code instead of 0 when we cannot get IRQ source

[PATCH 1/2] ARM: shmobile: irqpin: add a DT property to enable masking on parent

2013-05-24 Thread Guennadi Liakhovetski
-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- These two patches simply split the earlier ARM: shmobile: irqpin: fix handling of spurious interrupts in DT case patch into two parts. Otherwise no change. .../interrupt-controller/renesas,intc-irqpin.txt |2 ++ drivers/irqchip/irq

[PATCH 2/2] ARM: shmobile: irqpin: map spurious interrupts in DT case

2013-05-24 Thread Guennadi Liakhovetski
, spurious interrupts occur unmapped and thus cannot be handled properly. This patch fixes this by mapping such interrupts as they occur. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/irqchip/irq-renesas-intc-irqpin.c |8 1 files changed, 8 insertions(+), 0

Re: [PATCH v3 09/20] ARM: shmobile: r8a7790: Add GPIO controller devices to device tree

2013-05-18 Thread Guennadi Liakhovetski
Hi Laurent On Sat, 18 May 2013, Laurent Pinchart wrote: Hi Guennadi, On Friday 17 May 2013 14:26:48 Guennadi Liakhovetski wrote: Hi Laurent On Wed, 15 May 2013, Laurent Pinchart wrote: Add GPIO controller nodes to the r8a7790 core device tree. Signed-off-by: Laurent Pinchart

Re: [PATCH v3 09/20] ARM: shmobile: r8a7790: Add GPIO controller devices to device tree

2013-05-18 Thread Guennadi Liakhovetski
On Sat, 18 May 2013, Laurent Pinchart wrote: Hi Guennadi, On Saturday 18 May 2013 08:57:41 Guennadi Liakhovetski wrote: On Sat, 18 May 2013, Laurent Pinchart wrote: On Friday 17 May 2013 14:26:48 Guennadi Liakhovetski wrote: On Wed, 15 May 2013, Laurent Pinchart wrote: Add GPIO

Re: [RFC/PATCH 2/2] gpio-rcar: Add DT support

2013-05-17 Thread Guennadi Liakhovetski
) gpio_chip-owner = THIS_MODULE; gpio_chip-base = p-config.gpio_base; gpio_chip-ngpio = p-config.number_of_pins; + gpio_chip-dev = pdev-dev; irq_chip = p-irq_chip; irq_chip-name = name; Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open

Re: [PATCH v3 09/20] ARM: shmobile: r8a7790: Add GPIO controller devices to device tree

2013-05-16 Thread Guennadi Liakhovetski
and there are still some pieces missing, or you weren't aware of this? Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org

Re: [PATCH v3 01/20] sh-pfc: Add DT support

2013-05-15 Thread Guennadi Liakhovetski
+ if (*num_maps) + return 0; + + dev_err(dev, no mapping found in node %s\n, np-full_name); + ret = -EINVAL; + +done: + sh_pfc_dt_free_map(pctldev, *map, *num_maps); + + return ret; Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer

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

2013-05-14 Thread Guennadi Liakhovetski
); -- 1.7.9.5 --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

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

2013-05-14 Thread Guennadi Liakhovetski
#2, 3,... but WARN_ON(mmc_of_parse() 0); and continue for now. In 3.12 we could then replace those warnings with real failures. But maybe I'm just overcautious and we can just go ahead with your patches. You can add my Acked-by: Guennadi Liakhovetski g.liakhovet...@gmx.de for patches 1-3

Re: [PATCH/RFC 0/4] dmaengine: add DT support for DMA multiplexers

2013-05-02 Thread Guennadi Liakhovetski
On Thu, 2 May 2013, Vinod Koul wrote: On Tue, Apr 30, 2013 at 02:17:13PM +0200, Guennadi Liakhovetski wrote: (added Russell to CC, sorry for not including initially) Hi Vinod On Tue, 30 Apr 2013, Vinod Koul wrote: On Tue, Apr 30, 2013 at 09:11:19AM +0200, Guennadi Liakhovetski

[PATCH 2/4] dmaengine: add support for DMA multiplexer DT nodes

2013-04-30 Thread Guennadi Liakhovetski
#dma-cells number and use the same slave IDs. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- Documentation/devicetree/bindings/dma/dma.txt | 44 + drivers/dma/of-dma.c | 39 -- 2 files changed, 73

[PATCH 3/4] ARM: shmobile: move r8a7740 DMA controller DT node under a dma-mux node

2013-04-30 Thread Guennadi Liakhovetski
shall add further DMA controller DT nodes under the same DMA multiplexer DT node. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- Applies on top of my earlier ARM: shmobile: r8a7740: add DT node for one DMAC instance patch still under review. .../boot/dts/r8a7740

[PATCH/RFC 0/4] dmaengine: add DT support for DMA multiplexers

2013-04-30 Thread Guennadi Liakhovetski
is just a minor clean up, can be applied independently. Cc: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Guennadi Liakhovetski (4): OF: add a new phandle parsing function for grouped nodes dmaengine: add support for DMA multiplexer DT nodes ARM: shmobile: move r8a7740 DMA

[PATCH 4/4] OF: modify function stubs to match proper function declarations.

2013-04-30 Thread Guennadi Liakhovetski
of_parse_phandle_with_args() and of_count_phandle_with_args() functions are declared with their first parameter as const. However, their respective stubs, used when CONFIG_OF isn't defined, don't have the const modifier. This patch adds it to fix the mismatch. Signed-off-by: Guennadi Liakhovetski

Re: [PATCH 7/6] DMA: shdma: add DT binding documentation

2013-04-30 Thread Guennadi Liakhovetski
On Tue, 30 Apr 2013, Vinod Koul wrote: On Fri, Apr 26, 2013 at 08:26:16AM +0200, Guennadi Liakhovetski wrote: SHDMA uses only standard DMA Device Tree bindings. This patch adds documentation, exactly describing the use of the bindings and providing examples. Signed-off-by: Guennadi

Re: [PATCH/RFC 0/4] dmaengine: add DT support for DMA multiplexers

2013-04-30 Thread Guennadi Liakhovetski
(added Russell to CC, sorry for not including initially) Hi Vinod On Tue, 30 Apr 2013, Vinod Koul wrote: On Tue, Apr 30, 2013 at 09:11:19AM +0200, Guennadi Liakhovetski wrote: Previously an issue has been discussed, arising on sh-/r-mobile ARM-based systems. There we typically have

[PATCH 7/6] DMA: shdma: add DT binding documentation

2013-04-26 Thread Guennadi Liakhovetski
SHDMA uses only standard DMA Device Tree bindings. This patch adds documentation, exactly describing the use of the bindings and providing examples. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- This patch adds the missing documentation to the patch series DMA: shdma

Re: [PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2

2013-04-17 Thread Guennadi Liakhovetski
Hi all On Tue, 2 Apr 2013, Guennadi Liakhovetski wrote: On Tue, 2 Apr 2013, Arnd Bergmann wrote: On Tuesday 02 April 2013, Guennadi Liakhovetski wrote: Currently modular V4L2 build with enabled OF is broken dur to the of_get_next_parent() function being unavailable to modules. Export

Re: [PATCH 07/14] media: soc-camera: support deferred probing of clients

2013-04-10 Thread Guennadi Liakhovetski
Hi Barry On Wed, 10 Apr 2013, Barry Song wrote: Hi Guennadia, 2012/9/27 Guennadi Liakhovetski g.liakhovet...@gmx.de: Currently soc-camera doesn't work with independently registered I2C client devices, it has to register them itself. This patch adds support for such configurations

Re: [PATCH 07/14] media: soc-camera: support deferred probing of clients

2013-04-10 Thread Guennadi Liakhovetski
On Wed, 10 Apr 2013, Barry Song wrote: Hi Guennadia, There's a typo above. Thanks! 2013/4/10 Guennadi Liakhovetski g.liakhovet...@gmx.de: Hi Barry On Wed, 10 Apr 2013, Barry Song wrote: Hi Guennadia, 2012/9/27 Guennadi Liakhovetski g.liakhovet...@gmx.de: Currently soc

Re: [PATCH 07/14] media: soc-camera: support deferred probing of clients

2013-04-10 Thread Guennadi Liakhovetski
On Wed, 10 Apr 2013, Barry Song wrote: 2013/4/10 Guennadi Liakhovetski g.liakhovet...@gmx.de: On Wed, 10 Apr 2013, Barry Song wrote: [snip] This cannot work, because some I2C devices, e.g. sensors, need a clock signal from the camera interface to probe. Before the bridge driver has

[PATCH v3] irqchip: renesas-intc-irqpin: DT binding for sense bitfield width

2013-04-08 Thread Guennadi Liakhovetski
Most Renesas irqpin controllers have 4-bit sense fields, however, some have different widths. This patch adds a DT binding to optionally specify such non-standard values. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- v3: move the code to a common location, where

Re: [PATCH v3] irqchip: renesas-intc-irqpin: DT binding for sense bitfield width

2013-04-08 Thread Guennadi Liakhovetski
On Mon, 8 Apr 2013, Laurent Pinchart wrote: Hi Guennadi, Thanks for the patch. On Monday 08 April 2013 10:08:40 Guennadi Liakhovetski wrote: Most Renesas irqpin controllers have 4-bit sense fields, however, some have different widths. This patch adds a DT binding to optionally

Re: [PATCH v3] irqchip: renesas-intc-irqpin: DT binding for sense bitfield width

2013-04-08 Thread Guennadi Liakhovetski
On Mon, 8 Apr 2013, Laurent Pinchart wrote: Hi Guennadi, On Monday 08 April 2013 13:25:46 Guennadi Liakhovetski wrote: On Mon, 8 Apr 2013, Laurent Pinchart wrote: On Monday 08 April 2013 10:08:40 Guennadi Liakhovetski wrote: Most Renesas irqpin controllers have 4-bit sense fields

[PATCH v2] irqchip: renesas-intc-irqpin: DT binding for sense bitfield width

2013-04-05 Thread Guennadi Liakhovetski
Most Renesas irqpin controllers have 4-bit sense fields, however, some have different widths. This patch adds a DT binding to optionally specify such non-standard values. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- v2: is no longer based on an earlier ARM: shmobile

Re: [PATCH/RFC 0/2] ARM: shmobile: DT irqpin for r8a7779 and marzen-reference

2013-04-04 Thread Guennadi Liakhovetski
Hi Simon On Thu, 4 Apr 2013, Simon Horman wrote: On Wed, Apr 03, 2013 at 11:18:57AM +0200, Guennadi Liakhovetski wrote: Hi This 2 patches add DT irqpin support on marzen-reference. Only compile-tested due to the lack of hardware. The patches can go independently via

[PATCH/RFC 1/2] irqchip: renesas-intc-irqpin: DT binding for sense bitfield width

2013-04-03 Thread Guennadi Liakhovetski
Most Renesas irqpin controllers have 4-bit sense fields, however, some have different widths. This patch adds a DT binding to optionally specify such non-standard values. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- .../interrupt-controller/renesas,intc-irqpin.txt

[PATCH/RFC 2/2] ARM: shmobile: marzen-reference: add irqpin support in DT

2013-04-03 Thread Guennadi Liakhovetski
Add an irqpin interrupt controller DT node on marzen-reference. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com --- arch/arm/boot/dts/r8a7779.dtsi | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch

[PATCH/RFC 0/2] ARM: shmobile: DT irqpin for r8a7779 and marzen-reference

2013-04-03 Thread Guennadi Liakhovetski
interrupts, no breakage will be caused. Guennadi Liakhovetski (2): irqchip: renesas-intc-irqpin: DT binding for sense bitfield width ARM: shmobile: marzen-reference: add irqpin support in DT Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http

[PATCH] DT: export of_get_next_parent() for use by modules: fix modular V4L2

2013-04-02 Thread Guennadi Liakhovetski
Currently modular V4L2 build with enabled OF is broken dur to the of_get_next_parent() function being unavailable to modules. Export it to fix the build. Cc: Sylwester Nawrocki s.nawro...@samsung.com Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- This is for 3.10 drivers

Re: [PATCH v3 3/3] backlight: as3711: add OF support

2013-03-25 Thread Guennadi Liakhovetski
On Mon, 25 Mar 2013, Mark Brown wrote: On Mon, Mar 25, 2013 at 02:12:21PM +0900, Jingoo Han wrote: On Saturday, March 23, 2013 1:16 AM, Guennadi Liakhovetski wrote: But, there is a typo in comment. + * At least one su2-auto-curr* must be specified iff s/iff/if Are you sure

[PATCH v3 0/3] DT support for AS3711 MFD, regulator and backlight drivers

2013-03-22 Thread Guennadi Liakhovetski
This is just a split of the previous version of this patch(-set), no code changes. Guennadi Liakhovetski (3): mfd: as3711: add OF support regulator: as3711: add OF support backlight: as3711: add OF support Documentation/devicetree/bindings/mfd/as3711.txt | 73 + drivers/mfd

[PATCH v3 3/3] backlight: as3711: add OF support

2013-03-22 Thread Guennadi Liakhovetski
Add support for configuring AS3711 backlight driver from DT. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Reviwed-by: Mark Brown broo...@opensource.wolfsonmicro.com --- drivers/video/backlight/as3711_bl.c | 118 ++- 1 files changed, 117

[PATCH v3 1/3] mfd: as3711: add OF support

2013-03-22 Thread Guennadi Liakhovetski
Add Flat Device Tree support to the AS3711 MFD driver. This patch just allows to bind the driver to I2C devices, instantiated from the DT. DT support for AS3711 cell drivers will be added in separate drivers. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Reviwed-by: Mark

[PATCH v3 2/3] regulator: as3711: add OF support

2013-03-22 Thread Guennadi Liakhovetski
AS3711 regulator OF support only evaluates standard regulator DT properties. Signed-off-by: Guennadi Liakhovetski g.liakhovetski+rene...@gmail.com Reviwed-by: Mark Brown broo...@opensource.wolfsonmicro.com --- drivers/regulator/as3711-regulator.c | 74 - 1 files

Re: [PATCH v3 2/3] regulator: as3711: add OF support

2013-03-22 Thread Guennadi Liakhovetski
On Fri, 22 Mar 2013, Mark Brown wrote: On Fri, Mar 22, 2013 at 05:15:48PM +0100, Guennadi Liakhovetski wrote: AS3711 regulator OF support only evaluates standard regulator DT properties. It looks like this has no dependencies on the MFD patch, is that correct? Yes, that's correct

Re: [PATCH v2] mfd: as3711: add OF support

2013-03-20 Thread Guennadi Liakhovetski
Hi all On Sat, 2 Mar 2013, Mark Brown wrote: On Mon, Feb 18, 2013 at 10:57:44AM +0100, Guennadi Liakhovetski wrote: Add device-tree bindings to the AS3711 regulator and backlight drivers. Reviwed-by: Mark Brown broo...@opensource.wolfsonmicro.com This patch has been submitted more than

Re: [PATCH v7] [media] Add a V4L2 OF parser

2013-03-11 Thread Guennadi Liakhovetski
to get it in on time for 3.10. Let me know if you'd like me to do the next couple of rounds :) Or if you disagree with my comments and prefer your present state. On Fri, 8 Mar 2013, Sylwester Nawrocki wrote: From: Guennadi Liakhovetski g.liakhovet...@gmx.de Add a V4L2 OF parser

[PATCH v2] mfd: as3711: add OF support

2013-02-25 Thread Guennadi Liakhovetski
Add device-tree bindings to the AS3711 regulator and backlight drivers. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v2: 1. remove a redundant of_device_is_available() check, this also eliminates a compile breakage 2. add .of_node regulator configuration field

Re: [PATCH v4 00/13] mmc: core and driver DT and related development

2013-02-19 Thread Guennadi Liakhovetski
Hi Chris On Mon, 18 Feb 2013, Chris Ball wrote: Hi Guennadi, On Fri, Feb 15 2013, Guennadi Liakhovetski wrote: This is v4 of a patch-series, extending mmc subsystem device-tree usage and adding more advanced DT capabilities to sh_mmcif and sh_mobile_sdhi / tmio_mmc drivers. Changes

Re: [PATCH v4 13/13] mmc: tmio: add barriers to IO operations

2013-02-19 Thread Guennadi Liakhovetski
On Mon, 18 Feb 2013, Arnd Bergmann wrote: On Monday 18 February 2013, Guennadi Liakhovetski wrote: On Mon, 18 Feb 2013, Arnd Bergmann wrote: Sorry, I'm not sure how best to describe it, and I don't have sufficient information myself. In any case on a block-diagram of sh73a0 SDHI

Re: [PATCH v4 12/13] mmc: add DT bindings for more MMC capability flags

2013-02-18 Thread Guennadi Liakhovetski
Hi Sergei On Sun, 17 Feb 2013, Sergei Shtylyov wrote: Hello. On 02/15/2013 06:14 PM, Guennadi Liakhovetski wrote: Many MMC capability flags are platform-dependent and are traditionally set in platform data. With DT often each such capability requires a special binding. Add bindings

Re: [PATCH v5 03/13] mmc: provide a standard MMC device-tree binding parser centrally

2013-02-18 Thread Guennadi Liakhovetski
On Sun, 17 Feb 2013, Simon Horman wrote: On Sun, Feb 17, 2013 at 04:52:16PM +0900, Simon Horman wrote: On Sat, Feb 16, 2013 at 05:58:25PM +0100, Sascha Hauer wrote: Hi Guennadi, On Sat, Feb 16, 2013 at 04:21:16PM +0100, Guennadi Liakhovetski wrote: MMC defines a number

[PATCH v2] mfd: as3711: add OF support

2013-02-18 Thread Guennadi Liakhovetski
Add device-tree bindings to the AS3711 regulator and backlight drivers. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v2: 1. remove of_device_is_available() - it breaks compilation with CONFIG_OF disabled and is redundant anyway - I2C devices are only registered for available

Re: [PATCH v4 13/13] mmc: tmio: add barriers to IO operations

2013-02-18 Thread Guennadi Liakhovetski
Hi Arnd On Mon, 18 Feb 2013, Arnd Bergmann wrote: On Friday 15 February 2013, Guennadi Liakhovetski wrote: Without barriers SDIO operations fail with runtime PM enabled. I don't understand how the changeset comment relates to the patch. diff --git a/drivers/mmc/host/tmio_mmc.h b

Re: [PATCH v4 13/13] mmc: tmio: add barriers to IO operations

2013-02-18 Thread Guennadi Liakhovetski
On Mon, 18 Feb 2013, Arnd Bergmann wrote: On Monday 18 February 2013, Guennadi Liakhovetski wrote: Also, should the barrier not be after the MMIO read, rather than before it? Typically the barrier should ensure that any read from memory after an MMIO read reflects the memory

Re: [PATCH v4 03/13] mmc: provide a standard MMC device-tree binding parser centrally

2013-02-16 Thread Guennadi Liakhovetski
Guennadi There was some discussion about removing uninitialized_var() recently after it was found to hide some real bugs. Arnd --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ ___ devicetree

[PATCH v5 03/13] mmc: provide a standard MMC device-tree binding parser centrally

2013-02-16 Thread Guennadi Liakhovetski
into mmc_alloc_host(). Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v5: 1. fix an uninitialised variable warning. Note, I don't actually know, whether this will fix the error, reported by the kbuild test robot. None of my compilers reports an error there, at most, I've got a warning

[PATCH/RFC] mfd: as3711: add OF support

2013-02-15 Thread Guennadi Liakhovetski
Add device-tree bindings to the AS3711 regulator and backlight drivers. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- As usual - comments to the new bindings are very welcome! Documentation/devicetree/bindings/mfd/as3711.txt | 73 + drivers/mfd/as3711.c

[RFC] ARM: shmobile: add framebuffer and backlight support to kzm9g-reference

2013-02-15 Thread Guennadi Liakhovetski
This adds support for the framebuffer and an AS3711 PMIC, used for supplying power to the CPU, some peripherals and the backlight. not-Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- As is clear from the not-Sob line and the RFC in the subject, this is not for mainline

[PATCH v4 02/13] mmc: detailed definition of CD and WP MMC line polarities in DT

2013-02-15 Thread Guennadi Liakhovetski
Clarify ways to specify write-protect and card-detect MMC lines in FDT. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v4: remove Linux-specific references. Documentation/devicetree/bindings/mmc/mmc.txt | 23 +-- 1 files changed, 21 insertions(+), 2

[PATCH v4 01/13] mmc: sdhi, tmio: only check flags in tmio-mmc driver proper

2013-02-15 Thread Guennadi Liakhovetski
tmio-mmc platform flags can be set by various means, including caller drivers and device-tree bindings, therefore it is better to only check them in the tmio-mmc driver proper, not in caller drivers themselves. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/mmc/host

[PATCH v4 06/13] mmc: tmio-mmc: define device-tree bindings

2013-02-15 Thread Guennadi Liakhovetski
Define device-tree bindings for the tmio-mmc driver to be able to specify parameters, currently provided in platform data. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v4: remove the toshiba,mmc-blksz-2bytes property, it can be set directly by the sh_mobile_sdhi driver, use

[PATCH v4 13/13] mmc: tmio: add barriers to IO operations

2013-02-15 Thread Guennadi Liakhovetski
Without barriers SDIO operations fail with runtime PM enabled. Reviewed-by: Paul Mundt let...@linux-sh.org Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/mmc/host/tmio_mmc.h | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers

[PATCH v4 00/13] mmc: core and driver DT and related development

2013-02-15 Thread Guennadi Liakhovetski
This is v4 of a patch-series, extending mmc subsystem device-tree usage and adding more advanced DT capabilities to sh_mmcif and sh_mobile_sdhi / tmio_mmc drivers. Changes since v3 are described in respective patches. Thanks to all who commented on v3. Guennadi Liakhovetski (13): mmc: sdhi

[PATCH v4 08/13] mmc: sh_mobile_sdhi: remove unused .pdata field

2013-02-15 Thread Guennadi Liakhovetski
The struct sh_mobile_sdhi_info::pdata field was only used for platform- based card detection and isn't used anymore since the migration to GPIO- based MMC slot functions. Remove it. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/mmc/host/sh_mobile_sdhi.c |4

[PATCH v4 05/13] mmc: sh-mmcif: use mmc_of_parse() to parse standard MMC DT bindings

2013-02-15 Thread Guennadi Liakhovetski
Use mmc_of_parse() to get interface capability flags and used GPIOs from device-tree bindings. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/mmc/host/sh_mmcif.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/sh_mmcif.c b

[PATCH v4 07/13] mmc: tmio-mmc: parse device-tree bindings

2013-02-15 Thread Guennadi Liakhovetski
Add parsing of common and driver-specific DT bindings to the tmio-mmc MMC host driver and the sh_mobile_sdhi interface layer. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v4: add compatible string parsing to sh_mobile_sdhi, remove toshiba,mmc-blksz-2bytes and toshiba,mmc-has

[PATCH v4 04/13] mmc: (cosmetic) remove extern from function declarations

2013-02-15 Thread Guennadi Liakhovetski
The extern keyword isn't required in function declarations, remove it. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- include/linux/mmc/host.h | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/include/linux/mmc/host.h b/include/linux

[PATCH v4 11/13] mmc: tmio: add support for the VccQ regulator

2013-02-15 Thread Guennadi Liakhovetski
is to turn Vcc first on and last off. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/mmc/host/tmio_mmc_pio.c | 56 --- 1 files changed, 46 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host

[PATCH v4 09/13] mmc: sh_mobile_sdhi: use managed resource allocations

2013-02-15 Thread Guennadi Liakhovetski
Use managed allocations to get memory, clock and interrupts . This significantly simplifies clean up paths. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/mmc/host/sh_mobile_sdhi.c | 57 + 1 files changed, 14 insertions(+), 43

[PATCH v4 12/13] mmc: add DT bindings for more MMC capability flags

2013-02-15 Thread Guennadi Liakhovetski
parser to look up keep-power-in-suspend and enable-sdio-wakeup bindings and set MMC_PM_KEEP_POWER and MMC_PM_WAKE_SDIO_IRQ respectively, if found. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- Documentation/devicetree/bindings/mmc/mmc.txt |4 drivers/mmc/core/host.c

[PATCH v4 10/13] mmc: tmio: remove unused and deprecated symbols

2013-02-15 Thread Guennadi Liakhovetski
The tmio_mmc_cd_wakeup() inline function has been deprecated since 3.4 and is unused since 3.4 too. Remove them. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- include/linux/mfd/tmio.h | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git

[PATCH v4 03/13] mmc: provide a standard MMC device-tree binding parser centrally

2013-02-15 Thread Guennadi Liakhovetski
into mmc_alloc_host(). Cc: Markus Pargmann m...@pengutronix.de Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v4: make the bus-width property optional to match a recent change to mmc.txt, use of_property_read_bool() to obtain a boolean value of a DT property, add comments. drivers/mmc/core

Re: [PATCH v3 06/13] mmc: tmio-mmc: define device-tree bindings

2013-02-13 Thread Guennadi Liakhovetski
On Thu, 7 Feb 2013, Simon Horman wrote: On Wed, Feb 06, 2013 at 10:24:20PM +, Arnd Bergmann wrote: On Wednesday 06 February 2013, Guennadi Liakhovetski wrote: +* Toshiba Mobile IO SD/MMC controller + +The tmio-mmc driver doesn't probe its devices actively, instead its binding

Re: [PATCH/RFC] mmc: add DT bindings for more MMC capability flags

2013-02-06 Thread Guennadi Liakhovetski
Hi Mark On Wed, 6 Feb 2013, Mark Rutland wrote: Hi, On Wed, Jan 23, 2013 at 04:45:11PM +, Guennadi Liakhovetski wrote: Many MMC capability flags are platform-dependent and are traditionally set in platform data. With DT often each such capability requires a special binding. Add

Re: [PATCH/RFC] mmc: add DT bindings for more MMC capability flags

2013-02-06 Thread Guennadi Liakhovetski
On Thu, 7 Feb 2013, Arnd Bergmann wrote: On Wednesday 06 February 2013 17:25:42 Guennadi Liakhovetski wrote: Thank for pointing me out at that thread. However, I don't think MMC_CAP_POWER_OFF_CARD has anything to do with compatibility or hardware revisions. At least I haven't yet come

[PATCH v3 06/13] mmc: tmio-mmc: define device-tree bindings

2013-02-06 Thread Guennadi Liakhovetski
Define device-tree bindings for the tmio-mmc driver to be able to specify parameters, currently provided in platform data. Cc: Arnd Bergmann a...@arndb.de Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v3: make the property to set TMIO_MMC_SDIO_IRQ global Documentation

[PATCH v3 01/13] mmc: sdhi, tmio: only check flags in tmio-mmc driver proper

2013-02-06 Thread Guennadi Liakhovetski
tmio-mmc platform flags can be set by various means, including caller drivers and device-tree bindings, therefore it is better to only check them in the tmio-mmc driver proper, not in caller drivers themselves. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/mmc/host

[PATCH v3 05/13] mmc: sh-mmcif: use mmc_of_parse() to parse standard MMC DT bindings

2013-02-06 Thread Guennadi Liakhovetski
Use mmc_of_parse() to get interface capability flags and used GPIOs from device-tree bindings. Cc: Arnd Bergmann a...@arndb.de Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v3: updated on top of mmc: sh_mmcif: Avoid unnecessary mmc_delay() at mmc_card_sleepawake() drivers

[PATCH v3 09/13] mmc: sh_mobile_sdhi: use managed resource allocations

2013-02-06 Thread Guennadi Liakhovetski
Use managed allocations to get memory, clock and interrupts . This significantly simplifies clean up paths. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- drivers/mmc/host/sh_mobile_sdhi.c | 57 + 1 files changed, 14 insertions(+), 43

[PATCH v3 02/13] mmc: detailed definition of CD and WP MMC line polarities in DT

2013-02-06 Thread Guennadi Liakhovetski
Clarify ways to specify write-protect and card-detect MMC lines in FDT. Cc: Arnd Bergmann a...@arndb.de Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v3: {wp,cd}-inverted properties can now be used together with GPIO binding flags. A detailed explanation added

[PATCH v3 13/13] mmc: tmio: add barriers to IO operations

2013-02-06 Thread Guennadi Liakhovetski
Without barriers SDIO operations fail with runtime PM enabled. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Cc: Paul Mundt let...@linux-sh.org --- v3: use iowrite16_rep() and ioread16_rep() for consistency. drivers/mmc/host/tmio_mmc.h | 18 ++ 1 files changed

[PATCH v3 03/13] mmc: provide a standard MMC device-tree binding parser centrally

2013-02-06 Thread Guennadi Liakhovetski
into mmc_alloc_host(). Cc: Arnd Bergmann a...@arndb.de Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de --- v3: updated to match v3 of mmc.txt disambiguation in patch 02/13. drivers/mmc/core/host.c | 90 ++ include/linux/mmc/host.h |1 + 2 files

[PATCH v3 00/13] mmc: core and driver DT and related development

2013-02-06 Thread Guennadi Liakhovetski
This is v3 of my mmc DT patchset with several patches updated and two patches, previously sent separately, now integrated into the series. Guennadi Liakhovetski (13): mmc: sdhi, tmio: only check flags in tmio-mmc driver proper mmc: detailed definition of CD and WP MMC line polarities in DT

  1   2   3   >