Re: [PATCH] of/irq: of_irq_init: Call initialization function for all controllers

2012-03-28 Thread Thomas Abraham
On 26 March 2012 21:06, Thomas Abraham thomas.abra...@linaro.org wrote: On 26 March 2012 18:34, Rob Herring robherri...@gmail.com wrote: Your fix doesn't really guarantee the proper order either. It's still a side effect of the implementation. Perhaps a retry mechanism would work. Then the

[PATCH v2 3/3] arm: at91: dt: sam9g25ek add mci support

2012-03-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/boot/dts/at91sam9g25ek.dts | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git

[PATCH v2 0/3] atmel-mci device tree support

2012-03-28 Thread ludovic . desroches
Hi, This patch-set adds device tree support for atmel-mci. Regards Ludovic v2: - squash patch v1 2/4 and 3/4. - change atmci_get_of_slots to atmci_of_init and manage pdata allocation into it. - correct potential issue (e.g. having only one slot which is not slot0 into the dt) about slots by

[PATCH v2 2/3] arm: at91: at91sam9x5 add mci support

2012-03-28 Thread ludovic . desroches
From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com --- arch/arm/boot/dts/at91sam9x5.dtsi | 24 arch/arm/mach-at91/at91sam9x5.c |2 ++ 2 files changed, 26 insertions(+), 0 deletions(-) diff --git

Re: [PATCH] ARM: SPEAr600: Add device-tree support to SPEAr600 boards

2012-03-28 Thread Arnd Bergmann
On Wednesday 28 March 2012, Viresh Kumar wrote: On 3/27/2012 7:29 PM, Arnd Bergmann wrote: That would be even better. I think we should generally try do initialization as late as possible, ideally from initcalls. The init_early() function should only be used for code that absolutely

Re: [PATCH V3 5/5] mtd: Move fdt partition documentation to a seperate file

2012-03-28 Thread Arnd Bergmann
On Tuesday 27 March 2012, Jamie Lentin wrote: Partitions are described in the same way for all mtd devices when using devicetree, move the documentation to a separate file and add references to it. Signed-off-by: Jamie Lentin j...@lentin.co.uk Acked-by: Arnd Bergmann a...@arndb.de ---

Re: [PATCH V3 1/5] ARM: kirkwood: Basic support for DNS-320 and DNS-325

2012-03-28 Thread Arnd Bergmann
On Tuesday 27 March 2012, Jamie Lentin wrote: Add support for the DNS-320 and DNS-325. Describe as much as currently possible in the devicetree files, create a board-dnskw.c for everything else. Use IEEE-compliant okay, rather than ok Acked-by: Arnd Bergmann a...@arndb.de Acked-by:

Re: [PATCH v2 1/3] mmc: atmel-mci: add device tree support

2012-03-28 Thread Thomas Abraham
On 28 March 2012 15:35, ludovic.desroc...@atmel.com wrote: From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com ---  .../devicetree/bindings/mmc/atmel-hsmci.txt        |   67  drivers/mmc/host/atmel-mci.c          

Re: [PATCH v2 1/3] mmc: atmel-mci: add device tree support

2012-03-28 Thread Ludovic Desroches
Hi Thomas, On Wed, Mar 28, 2012 at 02:01:16PM +0530, Thomas Abraham wrote: On 28 March 2012 15:35, ludovic.desroc...@atmel.com wrote: From: Ludovic Desroches ludovic.desroc...@atmel.com Signed-off-by: Ludovic Desroches ludovic.desroc...@atmel.com ---  

Re: [PATCH v2 1/1] ARM: imx28: add basic dt support

2012-03-28 Thread Dong Aisheng
On Wed, Mar 28, 2012 at 01:58:04PM +0800, Guo Shawn-R65073 wrote: On Fri, Mar 23, 2012 at 10:31:10PM +0800, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org ... +/dts-v1/; +/include/ imx28.dtsi + +/ { + model = Freescale i.MX28 Evaluation Kit; + compatible =

[PATCH V2 0/7] SPEAr DT support updates

2012-03-28 Thread Viresh Kumar
Hello, This patchset updates DT support for SPEAr3xx and 6xx. It has following changes: - updates DT support Mainly for SPEAr3xx family - updates dma support for SPEAr6xx - updates defconfig It has dependency on following patchsets: - ehci ohci:

[PATCH V2 1/7] SPEAr: Use CLKDEV_INIT for defining clk_lookups

2012-03-28 Thread Viresh Kumar
Signed-off-by: Viresh Kumar viresh.ku...@st.com --- arch/arm/mach-spear3xx/clock.c | 111 arch/arm/mach-spear6xx/clock.c | 80 ++--- 2 files changed, 96 insertions(+), 95 deletions(-) diff --git a/arch/arm/mach-spear3xx/clock.c

[PATCH V2 2/7] SPEAr3xx: Add clock instance of usb hosts - ehci and ohci 0 and 1

2012-03-28 Thread Viresh Kumar
This patch adds following clocks: usbh.0_clk and usbh.1_clk. They are used by ehci and ohci drivers for SPEAr3xx usb host devices. Signed-off-by: Viresh Kumar viresh.ku...@st.com --- arch/arm/mach-spear3xx/clock.c | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH V2 3/7] SPEAr6xx: Add compilation support for dtbs using 'make dtbs'

2012-03-28 Thread Viresh Kumar
'make dtbs' compiles all dtbs for a family. For this we need to add entries for all board dtb's in Makefile.boot file. This patch does it. Signed-off-by: Viresh Kumar viresh.ku...@st.com --- arch/arm/mach-spear6xx/Makefile.boot |2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH v3 0/6] mmc: sdhci-s3c: Rework platform data and add device tree support

2012-03-28 Thread Mark Brown
On Tue, Mar 27, 2012 at 11:50:24AM -0400, Chris Ball wrote: On Tue, Feb 21 2012, Chris Ball wrote: On Tue, Feb 21 2012, Kukjin Kim wrote: I created topic branch for this we talked. You can pull that following: git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git

[PATCH V2 4/7] SPEAr3xx: Replace printk() with pr_*()

2012-03-28 Thread Viresh Kumar
For better print logs/messages, it is advisable to use pr_*() routines instead of directly calling printks. This patch removes direct calling of printks for spear3xx. Signed-off-by: Viresh Kumar viresh.ku...@st.com --- arch/arm/mach-spear3xx/spear300.c |8 +---

[PATCH V2 6/7] SPEAr: Add PL080 DMA support for 3xx and 6xx

2012-03-28 Thread Viresh Kumar
Both SPEAr3xx and SPEAr6xx families have one instance of ARM PL080 DMA controller. This patch adds in support for that. Signed-off-by: Viresh Kumar viresh.ku...@st.com --- arch/arm/boot/dts/spear300-evb.dts|4 + arch/arm/boot/dts/spear310-evb.dts|4 +

[PATCH V2 7/7] SPEAr: Update defconfigs

2012-03-28 Thread Viresh Kumar
Recently device tree support is added for SPEAr3xx SPEAr6xx and we must upgrade defconfig for that to get compiled. This patches does it. There are few more rearrangements done in defconfig automatically, when i run make savedefconfig. Signed-off-by: Viresh Kumar viresh.ku...@st.com ---

[PATCH V3 2/2] Input: spear-keyboard: add device tree bindings

2012-03-28 Thread Viresh Kumar
This adds simple DT bindings for spear-keyboard controller. Signed-off-by: Viresh Kumar viresh.ku...@st.com --- .../devicetree/bindings/input/spear-keyboard.txt | 21 + drivers/input/keyboard/Kconfig |1 + drivers/input/keyboard/spear-keyboard.c| 87

Re: [PATCH V2 5/7] ARM: SPEAr3xx: Add device-tree support to SPEAr3xx architecture

2012-03-28 Thread Arnd Bergmann
On Wednesday 28 March 2012, Viresh Kumar wrote: This patch adds a generic target for SPEAr3xx machines that can be configured via the device-tree. Currently the following devices are supported via the devicetree: - VIC interrupts - PL011 UART - PL061 GPIO - PL110 CLCD - SP805 WDT -

Re: [PATCH v2 1/1] ARM: imx28: add basic dt support

2012-03-28 Thread Shawn Guo
On Wed, Mar 28, 2012 at 05:53:47PM +0800, Dong Aisheng wrote: On Wed, Mar 28, 2012 at 01:58:04PM +0800, Guo Shawn-R65073 wrote: On Fri, Mar 23, 2012 at 10:31:10PM +0800, Dong Aisheng wrote: From: Dong Aisheng dong.aish...@linaro.org ... +static const char *imx28_dt_compat[] __initdata = {

Re: [PATCH v7 2/4] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-28 Thread Rob Herring
On 03/27/2012 05:31 PM, David Daney wrote: On 03/27/2012 03:05 PM, Rob Herring wrote: On 03/27/2012 01:24 PM, David Daney wrote: On 03/26/2012 06:56 PM, Rob Herring wrote: On 03/26/2012 02:31 PM, David Daney wrote: From: David Daneydavid.da...@cavium.com [...] +static bool

[PATCH v5 05/16] pwm: Add device tree support

2012-03-28 Thread Thierry Reding
This patch adds helpers to support device tree bindings for the generic PWM API. Device tree binding documentation for PWM controllers is also provided. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- Changes in v5: - use IS_ENABLED(CONFIG_OF) along with the compiler's DCE

[PATCH v5 06/16] ARM: tegra: Fix PWM clock programming

2012-03-28 Thread Thierry Reding
From: Simon Que s...@chromium.org PWM clock source registers in Tegra 2 have different clock source selection bit fields than other registers. PWM clock source bits in CLK_SOURCE_PWM_0 register are located at bit field bit[30:28] while others are at bit field bit[31:30] in their respective clock

[PATCH v5 04/16] pwm: Add table-based lookup for static mappings

2012-03-28 Thread Thierry Reding
In order to get rid of the global namespace for PWM devices, this commit provides an alternative method, similar to that of the regulator or clock frameworks, for registering a static mapping for PWM devices. This works by providing a table with a provider/consumer map in the board setup code.

[PATCH v5 07/16] ARM: tegra: Provide clock for only one PWM controller

2012-03-28 Thread Thierry Reding
A subsequent patch will add a generic PWM API driver for the Tegra PWFM controller, supporting all four PWM devices with a single PWM chip. The device will be named tegra-pwm and only one clock needs to be provided. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de Acked-by: Stephen

[PATCH v5 03/16] pwm: Add debugfs interface

2012-03-28 Thread Thierry Reding
This commit adds a debugfs interface that can be used to list the current internal state of the PWM devices registered with the PWM framework. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- Changes in v5: - new patch splitting off debugfs interface implementation - use

[PATCH v5 02/16] pwm: Allow chips to support multiple PWMs

2012-03-28 Thread Thierry Reding
Many PWM controllers provide access to more than a single PWM output and may even share some resource among them. Allowing a PWM chip to provide multiple PWM devices enables better sharing of those resources. As a side-effect this change allows easy integration with the device tree where a given

[PATCH v5 10/16] pwm: Move Blackfin PWM driver to PWM framework

2012-03-28 Thread Thierry Reding
This commit moves the Blackfin PWM driver to the drivers/pwm sub- directory and converts it to register with the new PWM framework. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- arch/blackfin/Kconfig | 10 --- arch/blackfin/kernel/Makefile |1 -

[PATCH v5 01/16] pwm: Add PWM framework support

2012-03-28 Thread Thierry Reding
From: Sascha Hauer s.ha...@pengutronix.de This patch adds framework support for PWM (pulse width modulation) devices. The is a barebone PWM API already in the kernel under include/linux/pwm.h, but it does not allow for multiple drivers as each of them implements the pwm_*() functions. There are

[PATCH v5 00/16] Add PWM framework and device tree support

2012-03-28 Thread Thierry Reding
, patch 16 makes me the new maintainer of the PWM subsystem. The whole series is based on the linux-next tree from 20120328. I think I've addressed all of the concerns raised in the first four versions. Thierry [0]: http://git.pengutronix.de/?p=imx/linux-2.6.git;a=shortlog;h=refs/heads/pwmlib

[PATCH v5 09/16] pwm: tegra: Add device tree support

2012-03-28 Thread Thierry Reding
Add auxdata to instantiate the PWFM controller from a device tree, include the corresponding nodes in the dtsi files for Tegra 20 and Tegra 30 and add binding documentation. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de Acked-by: Stephen Warren swar...@wwwdotorg.org --- Changes

[PATCH v5 11/16] pwm: Move PXA PWM driver to PWM framework

2012-03-28 Thread Thierry Reding
This commit moves the PXA PWM driver to the drivers/pwm subdirectory and converts it to use the new PWM framework. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- Changes in v5: - replace __raw_readl()/__raw_writel() by readl()/writel() - use clk_prepare_enable() and

[PATCH v5 08/16] pwm: Add NVIDIA Tegra SoC support

2012-03-28 Thread Thierry Reding
This commit adds a generic PWM framework driver for the PWFM controller found on NVIDIA Tegra SoCs. The driver is based on code from the Chromium kernel tree and was originally written by Gary King (NVIDIA) and later modified by Simon Que (Chromium). Signed-off-by: Thierry Reding

[PATCH v5 12/16] ARM i.MX: Move i.MX pwm driver to pwm framework

2012-03-28 Thread Thierry Reding
From: Sascha Hauer s.ha...@pengutronix.de Move the driver to drivers/pwm/ and convert it to use the framework. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- Changes in v5: - adopt patch by Sascha Hauer to move i.MX driver to

[PATCH v5 13/16] ARM Samsung: Move s3c pwm driver to pwm framework

2012-03-28 Thread Thierry Reding
From: Sascha Hauer s.ha...@pengutronix.de Move the driver to drivers/pwm/ and convert it to use the framework. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Cc: Ben Dooks ben-li...@fluff.org Cc: Kukjin Kim kgene@samsung.com Signed-off-by: Thierry Reding thierry.red...@avionic-design.de

Re: [PATCH V3 5/5] mtd: Move fdt partition documentation to a seperate file

2012-03-28 Thread Jason Cooper
On Tue, Mar 27, 2012 at 10:54:15PM +0100, Jamie Lentin wrote: Partitions are described in the same way for all mtd devices when using devicetree, move the documentation to a separate file and add references to it. Signed-off-by: Jamie Lentin j...@lentin.co.uk Acked-by: Jason Cooper

Re: [PATCH v5 05/16] pwm: Add device tree support

2012-03-28 Thread Arnd Bergmann
On Wednesday 28 March 2012, Thierry Reding wrote: This patch adds helpers to support device tree bindings for the generic PWM API. Device tree binding documentation for PWM controllers is also provided. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de Acked-by: Arnd Bergmann

Schemas for device trees

2012-03-28 Thread jonsm...@gmail.com
I'm putting together a device tree for a new platform and when looking at the other trees everything is kind of chaotic in regards to the various subsystems. Is the existing DT include mechanism powerful enough to describe generic fragments? And we're just missing the core fragments for generic

[PATCH v5 14/16] ARM vt8500: Move vt8500 pwm driver to pwm framework

2012-03-28 Thread Thierry Reding
From: Sascha Hauer s.ha...@pengutronix.de Move the driver to drivers/pwm/ and convert it to use the framework. Signed-off-by: Sascha Hauer s.ha...@pengutronix.de Cc: Alexey Charkov alch...@gmail.com Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- Changes in v5: - adopt patch

[PATCH v5 16/16] pwm: Take over maintainership of the PWM subsystem

2012-03-28 Thread Thierry Reding
I'm taking over the maintainership of the PWM subsystem. This commit also adds the URLs to the gitorious project and repository as well as any missing files related to the PWM subsystem. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- Note: I guess this patch in particular

[PATCH v5 15/16] pwm-backlight: Add rudimentary device tree support

2012-03-28 Thread Thierry Reding
This commit adds very basic support for device tree probing. Currently, only a PWM and a list of distinct brightness levels can be specified. Enabling or disabling backlight power via GPIOs is not yet supported. Signed-off-by: Thierry Reding thierry.red...@avionic-design.de --- Changes in v5: -

Re: [PATCH v4 2/2] regulator: add device tree support for max8997

2012-03-28 Thread Karol Lewandowski
On 24.03.2012 10:49, Thomas Abraham wrote: Hi Thomas! Add device tree based discovery support for max8997. ... +Regulators: The regulators of max8997 that have to be instantiated should be +included in a sub-node named 'regulators'. Regulator nodes included in this +sub-node should be of

Re: Handling device shared SFR on dt platform

2012-03-28 Thread Sylwester Nawrocki
Hello Grant, On 03/24/2012 08:32 PM, Grant Likely wrote: Generally, this is handled by having a third node for the shared register block and both device nodes holding a phandle to it. No, there isn't any common infrastructure for implementing this, but it isn't very much code. Thank you,

[PATCH 1/2] fdt: Avoid early panic() when there is no FDT present

2012-03-28 Thread Simon Glass
CONFIG_OF_CONTROL requires a valid device tree. However, we cannot call panic() before the console is set up since the message does not appear, and we get a silent failure. Remove the panic from fdtdec_check_fdt() and provide a new function to prepare the fdt for use. This will be called after

RE: [PATCH 1/2] fdt: Avoid early panic() when there is no FDT present

2012-03-28 Thread Tom Warren
Simon, -Original Message- From: Simon Glass [mailto:s...@chromium.org] Sent: Wednesday, March 28, 2012 1:08 PM To: U-Boot Mailing List Cc: Tom Warren; Stephen Warren; Albert Aribaud; Simon Glass; Jerry Van Baren; Devicetree Discuss Subject: [PATCH 1/2] fdt: Avoid early panic() when

Re: [PATCH V2 1/2] Input: of_keymap: Introduce matrix_keypad_of_build_keymap()

2012-03-28 Thread Stephen Warren
On 03/27/2012 10:55 PM, Viresh Kumar wrote: On 3/27/2012 9:15 PM, Stephen Warren wrote: static int __devinit tegra_kbc_probe(struct platform_device *pdev) ... + if (pdev-dev.of_node) { + /* FIXME: Add handling of linux,fn-keymap here */ + err =

Re: Schemas for device trees

2012-03-28 Thread Grant Likely
On Wed, 28 Mar 2012 10:55:15 -0400, jonsm...@gmail.com jonsm...@gmail.com wrote: I'm putting together a device tree for a new platform and when looking at the other trees everything is kind of chaotic in regards to the various subsystems. Is the existing DT include mechanism powerful enough

Re: [PATCH V3 2/5] mtd: Add orion_nand devicetree bindings

2012-03-28 Thread Grant Likely
On Tue, 27 Mar 2012 22:54:12 +0100, Jamie Lentin j...@lentin.co.uk wrote: Allow a NAND chip using the orion_nand driver to be described using devicetree. Acked-by: Arnd Bergmann a...@arndb.de Signed-off-by: Jamie Lentin j...@lentin.co.uk --- .../devicetree/bindings/mtd/orion-nand.txt

Re: [PATCH v7 2/4] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-28 Thread Grant Likely
On Wed, 28 Mar 2012 09:16:05 -0700, David Daney david.da...@cavium.com wrote: On 03/28/2012 07:21 AM, Rob Herring wrote: On 03/27/2012 05:31 PM, David Daney wrote: On 03/27/2012 03:05 PM, Rob Herring wrote: On 03/27/2012 01:24 PM, David Daney wrote: On 03/26/2012 06:56 PM, Rob Herring

Re: [PATCH v7 2/4] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-28 Thread Grant Likely
On Tue, 27 Mar 2012 11:24:51 -0700, David Daney david.da...@cavium.com wrote: On 03/26/2012 06:56 PM, Rob Herring wrote: On 03/26/2012 02:31 PM, David Daney wrote: From: David Daneydavid.da...@cavium.com [...] +static int octeon_irq_ciu_map(struct irq_domain *d, +

Re: [PATCH V3 5/5] mtd: Move fdt partition documentation to a seperate file

2012-03-28 Thread Grant Likely
On Wed, 28 Mar 2012 08:17:12 +, Arnd Bergmann a...@arndb.de wrote: On Tuesday 27 March 2012, Jamie Lentin wrote: Partitions are described in the same way for all mtd devices when using devicetree, move the documentation to a separate file and add references to it. Signed-off-by:

Re: [PATCH v7 2/4] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-28 Thread Grant Likely
On Mon, 26 Mar 2012 12:31:19 -0700, David Daney ddaney.c...@gmail.com wrote: From: David Daney david.da...@cavium.com Create two domains. One for the GPIO lines, and the other for on-chip sources. Signed-off-by: David Daney david.da...@cavium.com --- [...] +struct

Re: [PATCH v7 2/4] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-28 Thread David Daney
On 03/28/2012 03:31 PM, Grant Likely wrote: On Mon, 26 Mar 2012 12:31:19 -0700, David Daneyddaney.c...@gmail.com wrote: From: David Daneydavid.da...@cavium.com Create two domains. One for the GPIO lines, and the other for on-chip sources. Signed-off-by: David Daneydavid.da...@cavium.com ---

Re: [PATCH v7 2/4] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-28 Thread David Daney
On 03/28/2012 03:22 PM, Grant Likely wrote: On Tue, 27 Mar 2012 11:24:51 -0700, David Daneydavid.da...@cavium.com wrote: On 03/26/2012 06:56 PM, Rob Herring wrote: On 03/26/2012 02:31 PM, David Daney wrote: From: David Daneydavid.da...@cavium.com [...] +static int octeon_irq_ciu_map(struct

Re: [PATCH v7 2/4] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-28 Thread David Daney
On 03/28/2012 03:08 PM, Grant Likely wrote: On Wed, 28 Mar 2012 09:16:05 -0700, David Daneydavid.da...@cavium.com wrote: On 03/28/2012 07:21 AM, Rob Herring wrote: On 03/27/2012 05:31 PM, David Daney wrote: On 03/27/2012 03:05 PM, Rob Herring wrote: On 03/27/2012 01:24 PM, David Daney

Re: Schemas for device trees

2012-03-28 Thread jonsm...@gmail.com
Check out the XML schema stuff but another possibility is simply writing our own schema validation tools based on the existing DT syntax. What device trees really need is a schema language, how we achieve it doesn't really matter. A custom Perl app might be better in the Linux kernel world than

Re: [PATCH v3 0/6] mmc: sdhci-s3c: Rework platform data and add device tree support

2012-03-28 Thread Kukjin Kim
On 03/28/12 02:54, Mark Brown wrote: On Tue, Mar 27, 2012 at 11:50:24AM -0400, Chris Ball wrote: On Tue, Feb 21 2012, Chris Ball wrote: On Tue, Feb 21 2012, Kukjin Kim wrote: I created topic branch for this we talked. You can pull that following: