Re: [PATCH 4/4] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Grant Likely
On Thu, 1 Mar 2012 18:20:55 +, Jason Cooper ja...@lakedaemon.net wrote: Converted register address to a variable so that it could be set from fdt. Also, pull clock frequency from fdt and clean up failure logic a bit. Same as rtc-mv, this device is used in all kirkwood boards. So, it

Re: [PATCH 2/4] ARM: kirkwood: fdt: absorb kirkwood_init()

2012-03-02 Thread Grant Likely
On Thu, 1 Mar 2012 18:20:53 +, Jason Cooper ja...@lakedaemon.net wrote: We need to absorb kirkwood_init() into kirkwood_dt_init() so that as we convert drivers, we can remove the platform call, eg kirkwood_rtc_init(). This maintains compatibility with non-fdt configurations because they

Re: [PATCH 3/4] ARM: kirkwood: convert rtc-mv to fdt.

2012-03-02 Thread Grant Likely
On Thu, 1 Mar 2012 18:20:54 +, Jason Cooper ja...@lakedaemon.net wrote: The comment at mach-kirkwood/common.c:469, says this device is in every kirkwood board. So, it is placed in kirkwood.dtsi. Signed-off-by: Jason Cooper ja...@lakedaemon.net --- arch/arm/boot/dts/kirkwood.dtsi |

Re: [PATCH 3/4] ARM: kirkwood: convert rtc-mv to fdt.

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Grant Likely wrote: --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c @@ -163,7 +163,7 @@ void __init kirkwood_nand_init_rnb(struct mtd_partition *parts, int nr_parts,

[PATCH 1/2] ARM: dts: versatile-pb/ab fix MMC IRQs

2012-03-02 Thread Linus Walleij
The MMCI driver will not work without two IRQs since this is not flagged as a single-irq variant. Looking through the complex IRQ definition for the MMCI on the versatile (including an #if 1 statement forcing MMCI IRQ0 to the VIC) this appears to the the correct IRQ number for both models. Cc:

[PATCH 2/2] ARM: versatile: add some auxdata for device trees

2012-03-02 Thread Linus Walleij
The MMCI and PL022 SPI drivers sure need their platform data to work on the Versatile as well. (This does not fix the auxdata for MMCI instance mmc1 on the Versatile PB though.) Cc: Russell King rmk+ker...@arm.linux.org.uk Cc: Niklas Hernaeus niklas.herna...@linaro.org Signed-off-by: Linus

[PATCH 2/3 v3] of_spi: add generic binding support to specify ncs gpio

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to use gpio for chip select with no modification in the driver binding When use the ncs-gpios, the gpio number will be passed via the controller_data and the number of chip select will automatically increased. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com

[PATCH 3/3 v3] spi/atmel: add DT support

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
The atmel_spi use only gpio for chip select. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Cc: devicetree-discuss@lists.ozlabs.org Cc: spi-devel-gene...@lists.sourceforge.net --- .../devicetree/bindings/spi/spi_atmel.txt |6 ++ drivers/spi/spi-atmel.c

[PATCH 1/3 v3] spi: move master of_node init to spi_alloc_master

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Cc: devicetree-discuss@lists.ozlabs.org Cc: spi-devel-gene...@lists.sourceforge.net Cc: Grant Likely grant.lik...@secretlab.ca --- drivers/spi/spi-altera.c |3 --- drivers/spi/spi-fsl-lib.c |1 -

Re: [GIT PULL v2] at91: irqdomain and device tree for 3.4

2012-03-02 Thread Arnd Bergmann
On Thursday 01 March 2012, Nicolas Ferre wrote: This pull request supersedes the previous: [GIT PULL] at91: irqdomain and device tree for AIC and GPIO This series adds irqdomain and device tree support for both the interrupt and GPIO controllers of AT91 SoC. It has been discussed a lot and

Re: [PATCH 1/4] regulator: twl6030: add support for vdd1, vdd2 and vdd3 regulators

2012-03-02 Thread Samuel Ortiz
Hi, On Tue, Feb 28, 2012 at 03:09:10PM +0530, Rajendra Nayak wrote: From: Tero Kristo t-kri...@ti.com vdd1 and vdd2 are now common regulators for twl4030 and twl6030. Also added vdd3 as a new regulator for twl6030. twl6030 vdd1...vdd3 smps regulator voltages can only be controlled through

Re: [PATCH 4/4] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Jason
On Fri, Mar 02, 2012 at 10:15:11AM +0100, Simon Guinot wrote: Hi Jason, On Thu, Mar 01, 2012 at 06:20:55PM +, Jason Cooper wrote: Converted register address to a variable so that it could be set from fdt. Also, pull clock frequency from fdt and clean up failure logic a bit.

Re: [PATCH v6 4/5] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-02 Thread Rob Herring
David, On 02/29/2012 06:57 PM, David Daney wrote: From: David Daney david.da...@cavium.com Select IRQ_DOMAIN so the core irq_domain code and supply irq_create_of_mapping(). Signed-off-by: David Daney david.da...@cavium.com --- arch/mips/Kconfig|1 +

Re: [PATCH 4/4] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Jason wrote: Grr... good catch. I originally had this in kirkwood-dreamplug.dts, which is always 2. That's not the case in kirkwood.dtsi. What I would like to do, and I haven't had time to look into it (I thought I would tackle it later as a refinement :-(

Re: [PATCH 1/4] regulator: twl6030: add support for vdd1, vdd2 and vdd3 regulators

2012-03-02 Thread Mark Brown
On Fri, Mar 02, 2012 at 02:53:35PM +0100, Samuel Ortiz wrote: Mark, Liam, are you guys taking this one ? Yes. signature.asc Description: Digital signature ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org

Re: [PATCH 4/4] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Jason
On Fri, Mar 02, 2012 at 02:56:47PM +, Arnd Bergmann wrote: On Friday 02 March 2012, Jason wrote: Grr... good catch. I originally had this in kirkwood-dreamplug.dts, which is always 2. That's not the case in kirkwood.dtsi. What I would like to do, and I haven't had time to

Re: [PATCH 3/4] ARM: kirkwood: convert rtc-mv to fdt.

2012-03-02 Thread Jason
On Fri, Mar 02, 2012 at 01:19:39AM -0600, Grant Likely wrote: On Thu, 1 Mar 2012 18:20:54 +, Jason Cooper ja...@lakedaemon.net wrote: The comment at mach-kirkwood/common.c:469, says this device is in every kirkwood board. So, it is placed in kirkwood.dtsi. Signed-off-by: Jason

Re: [PATCH 0/4] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Jason
On Thu, Mar 01, 2012 at 10:14:06PM +, Arnd Bergmann wrote: On Thursday 01 March 2012, Jason wrote: On Thu, Mar 01, 2012 at 08:28:04PM +, Arnd Bergmann wrote: On Thursday 01 March 2012, Jason wrote: Thanks for the feedback. I'll redo this series and resubmit. Did you catch

Re: [PATCH 4/4] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Jason wrote: That would make wdt@fed20300/clock-frequency a phandle pointing to the root property, which is not what we want here. The 2 value is not the actual value used in most drivers [1], but rather the speed of the system clock [2] (hence, my

Re: [PATCH 0/4] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Jason wrote: I have other commit IDs for the two patches that I took from your emails, so you should rebase the other patches on top of the version that I have in the arm-soc/kirkwood/board branch, otherwise we end up with duplicate commits my tree when I pull

Re: [PATCH 4/4] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Jason
On Fri, Mar 02, 2012 at 04:48:51PM +, Arnd Bergmann wrote: On Friday 02 March 2012, Jason wrote: That would make wdt@fed20300/clock-frequency a phandle pointing to the root property, which is not what we want here. The 2 value is not the actual value used in most

Re: [PATCH 0/4] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Jason
On Fri, Mar 02, 2012 at 04:58:11PM +, Arnd Bergmann wrote: On Friday 02 March 2012, Jason wrote: I have other commit IDs for the two patches that I took from your emails, so you should rebase the other patches on top of the version that I have in the arm-soc/kirkwood/board

Re: [PATCH] Initial Device Tree system for Snowball

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
On 16:52 Fri 02 Mar , Niklas Hernaeus wrote: From: Niklas Hernaeus niklas.herna...@linaro.org This is the base system for using Device Tree for Snowball. The new boardfile is a slightly modified copy of the original board file, so new Device Tree stuff can simply be added and code

[PATCH 0/5 v2] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Jason Cooper
This series begins the process of converting all of the drivers initialized from kirkwood_init() to devicetree. The first patch converts an off-SoC driver (spi) to device tree and moves flash partition definitions to the device tree. This was previously it's own submission, but I've included it

[PATCH 2/5] ARM: kirkwood: move var setting to correct location.

2012-03-02 Thread Jason Cooper
This variable should be set within the driver init function that uses it's struct, not in the generic init function. Signed-off-by: Jason Cooper ja...@lakedaemon.net --- arch/arm/mach-kirkwood/common.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 1/5 v2] ARM: kirkwood: covert orion-spi to fdt.

2012-03-02 Thread Jason Cooper
On the Globalscale Dreamplug (Marvell Kirkwood Development Platform), 2MB of NOR flash are used to hold the bootloader, bootloader environment, and devicetree blob. It is connected via spi. Signed-off-by: Jason Cooper ja...@lakedaemon.net --- Changes from v1: - used of_match_ptr() as

[PATCH 4/5 v2] ARM: kirkwood: convert rtc-mv to fdt.

2012-03-02 Thread Jason Cooper
The comment at mach-kirkwood/common.c:469, says this device is in every kirkwood board. So, it is placed in kirkwood.dtsi. Signed-off-by: Jason Cooper ja...@lakedaemon.net --- Changes since v1: - removed unnecessary of_*() code from _probe() - use of_match_ptr()

[PATCH 5/5 v2] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Jason Cooper
Converted register address to a variable so that it could be set from fdt. Also, pull clock frequency from fdt and clean up failure logic a bit. Same as rtc-mv, this device is used in all kirkwood boards. So, it is placed in kirkwood.dtsi. Signed-off-by: Jason Cooper ja...@lakedaemon.net ---

[PATCH 3/5 v2] ARM: kirkwood: fdt: absorb kirkwood_init()

2012-03-02 Thread Jason Cooper
We need to absorb kirkwood_init() into kirkwood_dt_init() so that as we convert drivers, we can remove the platform call, eg kirkwood_rtc_init(). This maintains compatibility with non-fdt configurations because they still call kirkwood_init() in common.c. As drivers are converted, we will

Re: [PULL REQUEST] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Jason
The following changes since commit 759a45185ac0e4dfaf8bbfcb390ec73aca4b7a34: ARM: kirkwood: convert uart0 to devicetree. (2012-02-27 16:21:44 +) are available in the git repository at: git://git.infradead.org/users/jcooper/linux-kirkwood.git kirkwood_dt_test Jason Cooper (5): ARM:

Re: [PULL REQUEST] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Jason
Oops, forgot to remove the Re:... On Fri, Mar 02, 2012 at 12:52:33PM -0500, Jason wrote: The following changes since commit 759a45185ac0e4dfaf8bbfcb390ec73aca4b7a34: ARM: kirkwood: convert uart0 to devicetree. (2012-02-27 16:21:44 +) are available in the git repository at:

Re: [PATCH v6 4/5] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-02 Thread David Daney
On 03/02/2012 06:22 AM, Rob Herring wrote: [...] diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ce30e2f..01344ae 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1432,6 +1432,7 @@ config CPU_CAVIUM_OCTEON select WEAK_ORDERING select CPU_SUPPORTS_HIGHMEM

Re: [PATCH 5/5 v2] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Jason Cooper wrote: + wdt_reg = (void __iomem *)TIMER_VIRT_BASE; + + ret = of_address_to_resource(np, 0, res); + if (ret) { + printk(KERN_ERR invalid address\n); + return ret; + } + + wdt_reg =

Re: [PATCH v6 4/5] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-02 Thread Grant Likely
On Wed, 29 Feb 2012 16:57:01 -0800, David Daney ddaney.c...@gmail.com wrote: From: David Daney david.da...@cavium.com Select IRQ_DOMAIN so the core irq_domain code and supply irq_create_of_mapping(). Signed-off-by: David Daney david.da...@cavium.com --- arch/mips/Kconfig

Re: [PATCH] Initial Device Tree system for Snowball

2012-03-02 Thread Grant Likely
On Fri, 2 Mar 2012 16:52:47 +0100, Niklas Hernaeus niklas.herna...@stericsson.com wrote: From: Niklas Hernaeus niklas.herna...@linaro.org This is the base system for using Device Tree for Snowball. The new boardfile is a slightly modified copy of the original board file, so new Device Tree

Re: [PATCH 1/3 v3] spi: move master of_node init to spi_alloc_master

2012-03-02 Thread Grant Likely
On Fri, 2 Mar 2012 11:03:05 +0100, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Cc: devicetree-discuss@lists.ozlabs.org Cc: spi-devel-gene...@lists.sourceforge.net Cc: Grant Likely

Re: [PATCH v6 4/5] MIPS: Octeon: Setup irq_domains for interrupts.

2012-03-02 Thread David Daney
On 03/02/2012 11:07 AM, Grant Likely wrote: On Fri, 02 Mar 2012 10:03:58 -0800, David Daneydavid.da...@cavium.com wrote: On 03/02/2012 06:22 AM, Rob Herring wrote: [...] diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ce30e2f..01344ae 100644 --- a/arch/mips/Kconfig +++

[PATCH 0/6] AT91 more DT bindings

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
HI, The following patch series add the bindings for: - PMC - SDRAM/DDR Controller - Reset Controller - Shutdown Controller The following changes since commit c5ec01650adb1976f928177cd7e71afcb82026c5: ARM: at91: dt: enable usb ehci for sam9g45 and

Re: [PATCH 5/5 v2] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Jason
On Fri, Mar 02, 2012 at 06:32:33PM +, Arnd Bergmann wrote: On Friday 02 March 2012, Jason Cooper wrote: + wdt_reg = (void __iomem *)TIMER_VIRT_BASE; + + ret = of_address_to_resource(np, 0, res); + if (ret) { + printk(KERN_ERR invalid address\n); +

[PULL REQUEST v2] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Jason
The following changes since commit 759a45185ac0e4dfaf8bbfcb390ec73aca4b7a34: ARM: kirkwood: convert uart0 to devicetree. (2012-02-27 16:21:44 +) are available in the git repository at: git://git.infradead.org/users/jcooper/linux-kirkwood.git kirkwood_dt_test Jason Cooper (5): ARM:

Re: [PATCH 5/5 v2] ARM: kirkwood: convert orion-wdt to fdt.

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Jason wrote: On Fri, Mar 02, 2012 at 06:32:33PM +, Arnd Bergmann wrote: As I commented before, I think the best approach would be to provide a hardcoded resource for the device in the legacy case and just use platform_get_resource() to get the resource and

[PATCH 1/6] ARM: at91/dt: add specific DT soc init

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
This will allow to have static Device mapping and DT probe mapping for the System Controller. Temporary keep the call to ioremap_registers() until we have the binding for the SDRAM/DDR Controller. Temporary keep the main clock hardcoded to 12MHz until we have the binding for the PMC.

[PATCH 2/6] ARM: at91: add pmc DT support

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
Specified the main Oscillator via clock binding. This will allow to do not hardcode it anymore in the DT board at 12MHz. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- .../devicetree/bindings/arm/atmel-pmc.txt |

[PATCH 3/6] ARM: at91: always enable sam9 restart

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
This is need for multiple SoC in the same kernel image and DT. As we will chose the restart function via binding. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- arch/arm/mach-at91/Kconfig | 10 ++ 1 files

[PATCH 4/6] ARM: at91: add RSTC (Reset Controller) dt support

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com --- .../devicetree/bindings/arm/atmel-at91.txt | 12 arch/arm/boot/dts/at91sam9g20.dtsi |5 +++ arch/arm/boot/dts/at91sam9g45.dtsi

[PATCH 5/6] ARM: at91: add ram controller DT support

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
We can now drop the call to ioremap_registers() as we have the binding for the SDRAM/DDR Controller. Drop ioremap_registers() for sam9x5 too. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Acked-by: Nicolas Ferre nicolas.fe...@atmel.com ---

[PATCH 6/6] ARM: at91: add Shutdown Controller (SHDWC) DT support

2012-03-02 Thread Jean-Christophe PLAGNIOL-VILLARD
Use a string to specific the wakeup mode to make it more readable. Add the Real-time Clock Wake-up support too for sam9g45 and sam9x5. Add AT91_SHDW_CPTWK0_MAX to specific the Max of the Wakeup Counter. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Acked-by: Nicolas Ferre

Re: [PATCH 6/6] ARM: at91: add Shutdown Controller (SHDWC) DT support

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Jean-Christophe PLAGNIOL-VILLARD wrote: + } + + if (of_device_is_compatible(np, atmel,at91sam9x5-shdwc)) { + have_rtt = false; + have_rtc = true; + } else if (of_device_is_compatible(np, atmel,at91sam9rl-shdwc)) { +

Re: [PULL REQUEST v2] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Jason wrote: The following changes since commit 759a45185ac0e4dfaf8bbfcb390ec73aca4b7a34: ARM: kirkwood: convert uart0 to devicetree. (2012-02-27 16:21:44 +) are available in the git repository at: git://git.infradead.org/users/jcooper/linux-kirkwood.git

Re: [PULL REQUEST v2] ARM: kirkwood: fdt: convert kirkwood init funcs to fdt

2012-03-02 Thread Arnd Bergmann
On Friday 02 March 2012, Arnd Bergmann wrote: On Friday 02 March 2012, Jason wrote: The following changes since commit 759a45185ac0e4dfaf8bbfcb390ec73aca4b7a34: ARM: kirkwood: convert uart0 to devicetree. (2012-02-27 16:21:44 +) are available in the git repository at:

Re: [PATCH] devicetree: Add empty of_platform_populate() for !CONFIG_OF_ADDRESS (sparc)

2012-03-02 Thread Cousson, Benoit
Hi Grant, In fact this patch is not working for build without CONFIG_OF like x86. On 2/24/2012 11:06 PM, Grant Likely wrote: --- a/include/linux/of_platform.h +++ b/include/linux/of_platform.h @@ -81,7 +81,7 @@ extern struct platform_device *of_device_alloc(struct device_node *np,

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

2012-03-02 Thread Kukjin Kim
On 03/03/12 05:40, Chris Ball wrote: Hi, On Wed, Feb 22 2012, Mark Brown wrote: On Tue, Feb 21, 2012 at 08:17:41AM -0500, Chris Ball wrote: Pushed to mmc-next, thanks. (I'm expecting that you'll do the merge to Linus.) I've been sending patches adding runtime PM support to this driver for

[PATCH 1/4] fdtget: Fix multiple arg bug and add test for it

2012-03-02 Thread Simon Glass
There is a rather unfortunate bug in fdtget in that if multiple argument sets are provided, it just repeats displaying the first set ones for each set. Fix this bug and add a test for it. Signed-off-by: Simon Glass s...@chromium.org --- fdtget.c|6 +++---

[PATCH 3/4] fdtget: Add -l to list the children of a node

2012-03-02 Thread Simon Glass
This option lists the children of each node given as a parameter, one child per line. Signed-off-by: Simon Glass s...@chromium.org --- fdtget.c | 96 ++ 1 files changed, 84 insertions(+), 12 deletions(-) diff --git a/fdtget.c