Re: Testing on ARM (omap)

2011-01-18 Thread Grant Likely
On Tue, Jan 04, 2011 at 04:16:46AM -0500, Jon Masters wrote: > Folks, > > Anyone point me to the latest status for testing fdt on ARM? (e.g. OMAP3) > > Jon. Hi Jon Sorry for the delay in answering. I published a new branch today that makes it a lot easier to start playing around with fdt on AR

Re: [PATCH] mtd/of: allow MTD_OF_PARTS and MTD_PHYSMAP_OF config to others

2011-01-18 Thread Thomas Chou
On 01/19/2011 11:43 AM, Thomas Chou wrote: As devicetree support is added to more arch, these config should be allowed to other arch. Please ignore this patch, as it is already fixed by Rob Herring. - Thomas Signed-off-by: Thomas Chou --- drivers/mtd/Kconfig |2 +- drivers/mtd/

[PATCH] mtd/of: allow MTD_OF_PARTS and MTD_PHYSMAP_OF config to others

2011-01-18 Thread Thomas Chou
As devicetree support is added to more arch, these config should be allowed to other arch. Signed-off-by: Thomas Chou --- drivers/mtd/Kconfig |2 +- drivers/mtd/maps/Kconfig |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconf

Re: Antw:Re: [PATCH] alter_ps2: Add devicetree support

2011-01-18 Thread Thomas Chou
Hi Walter, On 01/18/2011 11:25 PM, W.A. GOOSSENS wrote: I can however create a "fallback" rule were unkown components are just added with the names the sopcinfo file, but that should not be the default in my opinion since this will very effectively polute the namespace in an uncontrolable way.

Re: [PATCH v3] spi: New driver for Altera SPI

2011-01-18 Thread Thomas Chou
On 01/17/2011 03:27 PM, Sinan Akman wrote: + if (hw->irq >= 0) { + init_completion(&hw->done); I think you init this twice, once in altera_spi_probe below as well. I will remove this one, too. Thank you again. - Thomas ___ devicetree-discuss mailin

Re: [PATCH 8/8] arm/dt: Basic tegra devicetree support

2011-01-18 Thread Nicolas Pitre
On Tue, 18 Jan 2011, Grant Likely wrote: > This patch adds adds very basic support for booting versatile with a > device tree. [...] Description doesn't match $subject. Nicolas ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org ht

Re: [PATCH 8/8] arm/dt: Basic tegra devicetree support

2011-01-18 Thread Grant Likely
On Tue, Jan 18, 2011 at 2:47 PM, Nicolas Pitre wrote: > On Tue, 18 Jan 2011, Grant Likely wrote: > >> This patch adds adds very basic support for booting versatile with a >> device tree. > [...] > > Description doesn't match $subject. Fixed, thanks. g. ___

Re: [PATCH 1/8] arm/dt: Make __vet_atags also accept a dtb image

2011-01-18 Thread Nicolas Pitre
On Tue, 18 Jan 2011, Grant Likely wrote: > The dtb is passed to the kernel via register r2, which is the same > method that is used to pass an atags pointer. This patch modifies > __vet_atags to not clear r2 when it encounters a dtb image. > > Signed-off-by: Grant Likely > --- > arch/arm/kerne

Re: [Nios2-dev] [PATCHv2] Add devicetree support to altera_jtaguart

2011-01-18 Thread Tobias Klauser
Hi Walter A small comment on the patch is below, though I have not run it yet (need some more time to get everything started with devicetree here). On Thu, 13 Jan 2011 02:18:55 +0100 Walter Goossens wrote: > This patch adds devicetree support to the altera_jtaguart driver. > Tested on hardware

Re: [PATCH] alter_ps2: Add devicetree support

2011-01-18 Thread Dmitry Torokhov
On Mon, Jan 17, 2011 at 02:29:20PM +0800, Thomas Chou wrote: > From: Walter Goossens > For my education, why is this needed? > Signed-off-by: Walter Goossens > Signed-off-by: Thomas Chou > --- > drivers/input/serio/altera_ps2.c | 16 > 1 files changed, 16 insertions(+), 0

Re: [PATCH v3] spi: New driver for Altera SPI

2011-01-18 Thread Sinan Akman
Thomas Chou wrote: [...] + +static int altera_spi_txrx(struct spi_device *spi, struct spi_transfer *t) +{ + struct altera_spi *hw = to_hw(spi); + + hw->tx = t->tx_buf; + hw->rx = t->rx_buf; + hw->count = 0; + hw->bytes_per_word = (t->bits_per_word ? : spi->bits_per_word) / 8; + hw->l

Re: drivers/mmc/host/sdhci-of-core.c on sparc64

2011-01-18 Thread Chris Ball
Hi, On Thu, Jan 13, 2011 at 03:41:40PM -0800, Andrew Morton wrote: > > > drivers/mmc/host/sdhci-of-core.c:24:25: asm/machdep.h: No such file or > > > directory > > > drivers/mmc/host/sdhci-of-core.c: In function `sdhci_of_wp_inverted': > > > drivers/mmc/host/sdhci-of-core.c:115: error: implicit d

Re: [PATCH 1/8] arm/dt: Make __vet_atags also accept a dtb image

2011-01-18 Thread Grant Likely
Hi Nicolas, On Tue, Jan 18, 2011 at 2:26 PM, Nicolas Pitre wrote: > On Tue, 18 Jan 2011, Grant Likely wrote: > >> The dtb is passed to the kernel via register r2, which is the same >> method that is used to pass an atags pointer.  This patch modifies >> __vet_atags to not clear r2 when it encount

Re: [PATCH 1/2] powerpc: document the MPIC device tree binding

2011-01-18 Thread Scott Wood
On Mon, 17 Jan 2011 18:52:24 -0600 Meador Inge wrote: > +** Required properties: > + > + NOTE: Many of these descriptions were paraphrased from [1] to aid > + readability. > + > + - name : Specifies the name of the MPIC. "name" isn't really a property with flat trees. The appropriat

[PATCH 8/8] arm/dt: Basic tegra devicetree support

2011-01-18 Thread Grant Likely
This patch adds adds very basic support for booting versatile with a device tree. It simply allows the existing machine_descs to match against the tegra compatible values so that the kernel can boot. Kernel parameters and the initrd pointer is read out of the tree instead of atags. This is not co

[PATCH 7/8] arm/tegra: Fix tegra irq_data conversion

2011-01-18 Thread Grant Likely
Commit 37337a8d5e68d6e19075dbdb3acf4f1011dae972, "ARM: tegra: irq_data conversion." missed changing one reference to 'irq' in the function tegra_gpio_irq_set_type(). This patch fixes the build error. Signed-off-by: Grant Likely --- arch/arm/mach-tegra/gpio.c |4 ++-- 1 files changed, 2 inse

[PATCH 5/8] arm/dt: probe for platforms via the device tree

2011-01-18 Thread Grant Likely
Add a macro to define a device-tree-probable machine (DT_MACHINE_START/DT_MACHINE_END), and iterate through compiled-in mdescs once we have the DT. This patch creates a new function, setup_machine_fdt() which is analogous to the setup_machine_atags() created in the previous patch. It does all the

[PATCH 6/8] arm/dt: Basic versatile devicetree support

2011-01-18 Thread Grant Likely
This patch adds adds very basic support for booting versatile with a device tree. It simply allows the existing machine_descs to match against the versatile ab & pb compatible values so that the kernel can boot. Kernel parameters and the initrd pointer is read out of the tree instead of atags. T

[PATCH 4/8] arm/dt: consolidate atags setup into setup_machine_atags

2011-01-18 Thread Grant Likely
In preparation for adding device tree support, this patch consolidates all of the atag-specific setup into a single function. Signed-off-by: Grant Likely --- arch/arm/kernel/setup.c | 68 --- 1 files changed, 35 insertions(+), 33 deletions(-) diff -

[PATCH 3/8] arm/dt: Allow CONFIG_OF on ARM

2011-01-18 Thread Grant Likely
From: Jeremy Kerr Add some basic empty infrastructure for DT support on ARM. Signed-off-by: Jeremy Kerr Signed-off-by: Grant Likely --- arch/arm/Kconfig |7 ++ arch/arm/include/asm/prom.h | 25 ++ arch/arm/include/asm/setup.h |1 + arch/arm/kerne

[PATCH 1/8] arm/dt: Make __vet_atags also accept a dtb image

2011-01-18 Thread Grant Likely
The dtb is passed to the kernel via register r2, which is the same method that is used to pass an atags pointer. This patch modifies __vet_atags to not clear r2 when it encounters a dtb image. Signed-off-by: Grant Likely --- arch/arm/kernel/head-common.S | 19 +-- arch/arm/ker

[PATCH 2/8] arm/dt: allow bootmem reservation for device tree blob and initrd

2011-01-18 Thread Grant Likely
This patch adds a function, arm_reserve_devtree(), to allow the device tree code to reserve the memory used by the FDT blob. It also adds early_init_dt_setup_initrd() which is the hook used by the flat device tree code to register the region of memory occupied by an initrd. [based on original pat

[PATCH 0/8] Basic ARM device tree support

2011-01-18 Thread Grant Likely
It's been a while since these patches have been circulated for review. Much has changed since the last posting and there are no longer any ugly hacks or workarounds to it working. From my viewpoint, these patches are complete and ready to be used. This patch series allows CONFIG_OF to be enabled

RE: [PATCH 1/2] powerpc: document the MPIC device tree binding

2011-01-18 Thread Yoder Stuart-B08248
> From: Meador Inge > Date: Mon, Jan 17, 2011 at 6:52 PM > Subject: [PATCH 1/2] powerpc: document the MPIC device tree binding > To: linuxppc-...@lists.ozlabs.org > Cc: minge , > devicetree-discuss@lists.ozlabs.org, "Blanchard, Hollis" > > > > This binding documents several properties that have

RE: [PATCH] define binding for fsl mpic interrupt controllers

2011-01-18 Thread Yoder Stuart-B08248
> -Original Message- > From: Meador Inge [mailto:meador_i...@mentor.com] > Sent: Monday, January 17, 2011 7:21 PM > To: Yoder Stuart-B08248 > Cc: linuxppc-...@lists.ozlabs.org; devicetree-discuss@lists.ozlabs.org; > Blanchard, Hollis; Meador Inge > Subject: Re: [PATCH] define binding for

Antw:Re: [PATCH] alter_ps2: Add devicetree support

2011-01-18 Thread W.A. GOOSSENS
Op 18/01/11, Thomas Chou schreef: On 01/18/2011 07:27 AM, Walter Goossens wrote:>>so, instead of trying to us a 'generic' value like "altera,altera_ps2">>which has a bunch of ambiguity about which hardware actually>>implements the behaviour, the values "altera,altera_ps2-1" and>>"altera,altera_ps

Re: [PATCH v2 05/15] x86/dtb: add early parsing of APIC and IO APIC

2011-01-18 Thread Sebastian Andrzej Siewior
Grant Likely wrote: Hi Sebastian, Hi Grant, diff --git a/arch/x86/include/asm/prom.h b/arch/x86/include/asm/prom.h index 9076ae4..3bc8ed5 100644 --- a/arch/x86/include/asm/prom.h +++ b/arch/x86/include/asm/prom.h @@ -22,10 +22,17 @@ #include #ifdef CONFIG_OF +extern int of_ioapic; +exter

Re: [PATCH] alter_ps2: Add devicetree support

2011-01-18 Thread Thomas Chou
On 01/18/2011 07:27 AM, Walter Goossens wrote: so, instead of trying to us a 'generic' value like "altera,altera_ps2" which has a bunch of ambiguity about which hardware actually implements the behaviour, the values "altera,altera_ps2-1" and "altera,altera_ps2-3" become the de-facto 'generic' val