Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Dave Martin
On Mon, Dec 05, 2011 at 02:47:29PM -0600, Rob Herring wrote: On 12/05/2011 02:21 PM, Anton Vorontsov wrote: On Mon, Dec 05, 2011 at 01:16:39PM -0600, Rob Herring wrote: [...] At least for DT enabled platforms, we could force no irq to be 0 in the DT irq code. Searching the dts files, I

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Dave Martin
On Mon, Dec 05, 2011 at 02:49:01PM -0500, Nicolas Pitre wrote: [...] Unfortunately, NO_IRQ is often not spelled NO_IRQ. It looks like the assumption irq 0 === no irq may be quite a lot more widespread than NO_IRQ === no irq. Since there's no specific thing we can grep for

Re: [PATCH v2 1/4] mfd: mc13xxx: add device tree probe support

2011-12-06 Thread Mark Brown
On Tue, Dec 06, 2011 at 11:26:43AM +0800, Shawn Guo wrote: On Mon, Dec 05, 2011 at 07:09:47PM +, Mark Brown wrote: That doesn't answer the question - I've still no idea how the binding is supposed to map the nodes contained within regulators onto the physical regulators. And here it

Re: [PATCH v2 1/5] ASoC: WM8903: Fix platform data gpio_cfg confusion

2011-12-06 Thread Mark Brown
On Fri, Dec 02, 2011 at 03:08:37PM -0700, Stephen Warren wrote: wm8903_platform_data.gpio_cfg[] was intended to be interpreted as follows: 0: Don't touch this GPIO's configuration register 1..7fff: Write that value to the GPIO's configuration register 8000:Write zero to the GPIO's

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Alan Cox
Otherwise, it feels like we might need a strategy for migrating pretty much everything if we don't want to end up in a mess. You really do anyway - lots of generic driver code knows !dev-irq is a valid test. That covers things like 8250 based UART hardware, network phy layer code and vast

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Russell King - ARM Linux
On Tue, Dec 06, 2011 at 09:37:09AM +, Dave Martin wrote: To clarify, you're suggesting that the meanings of all other IRQ values would not change initially? (i.e., we remap HW irq 0, if there is one, to some other random number but have a 1:1 mapping for everything else). Even better.

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Russell King - ARM Linux
On Tue, Dec 06, 2011 at 09:30:00AM +, Dave Martin wrote: Do we expect there to be any platform drivers which are shared between legacy platforms and newer DT-ised platforms? Those drivers would be pain points since they would need to understand both conventions. So far as I can see,

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Geert Uytterhoeven
On Tue, Dec 6, 2011 at 11:46, Russell King - ARM Linux li...@arm.linux.org.uk wrote: But.. let's make one thing clear: Alan Cox and Linus have been going on about how IRQ0 should not be used.  Let's be crystal clear: even x86 uses IRQ0.  It happens to be the PIC timer, and that gets claimed

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Russell King - ARM Linux
On Tue, Dec 06, 2011 at 12:00:12PM +0100, Geert Uytterhoeven wrote: On Tue, Dec 6, 2011 at 11:46, Russell King - ARM Linux li...@arm.linux.org.uk wrote: But.. let's make one thing clear: Alan Cox and Linus have been going on about how IRQ0 should not be used.  Let's be crystal clear: even

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Alan Cox
Even better. Avoid the first 16 IRQ numbers altogether - so that ISA drivers which have these numbers hard-encoded in them will see failures if they're expecting standard ISA IRQ numbering. The ISA bus space is non-discoverable so that doesn't make any sense. But.. let's make one thing

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Alan Cox
It's shown in /proc/interrupts due to a bug in show_interrupts(). The (gmail damaged) patch below fixes this bug. We get API breakage then. Which is a pain of course because debug tools and the like which think IRQ 0 is timer ticks are somewhat broken.

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Russell King - ARM Linux
On Tue, Dec 06, 2011 at 11:05:54AM +, Alan Cox wrote: Even better. Avoid the first 16 IRQ numbers altogether - so that ISA drivers which have these numbers hard-encoded in them will see failures if they're expecting standard ISA IRQ numbering. The ISA bus space is non-discoverable so

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Alan Cox
can we sinply introduce a macro irq_is_valid See the 2005, 2006 and 2008 discussion. if (!dev-irq) is the proper test. The = is just a temporary thing while ARM gets its publically visible house in order so it can be done without breakage. Alan

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Dave Martin
On Tue, Dec 06, 2011 at 10:46:54AM +, Russell King - ARM Linux wrote: On Tue, Dec 06, 2011 at 09:37:09AM +, Dave Martin wrote: To clarify, you're suggesting that the meanings of all other IRQ values would not change initially? (i.e., we remap HW irq 0, if there is one, to some

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Russell King - ARM Linux
On Tue, Dec 06, 2011 at 11:37:35AM +, Dave Martin wrote: 1) All OF code and drivers should be migrating to use 0 instead of NO_IRQ for the no-interrupt case. Code which receives irq numbers directly from the OF framework and refers to NO_IRQ, or expects 0 to be a valid needs to

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Alan Cox
However, I have suggested in the past that new platforms _should_ avoid not just IRQ0 but IRQ0-15 (for a completely different reason to that of 'IRQ0 means no IRQ'.) But such comments just get ignored, so I just don't see the point in doing anything about this. If people experience

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Dave Martin
On Tue, Dec 06, 2011 at 11:49:52AM +, Russell King - ARM Linux wrote: On Tue, Dec 06, 2011 at 11:37:35AM +, Dave Martin wrote: 1) All OF code and drivers should be migrating to use 0 instead of NO_IRQ for the no-interrupt case. Code which receives irq numbers directly from

[PATCH v3] mfd: mc13xxx: add device tree probe support

2011-12-06 Thread Shawn Guo
It adds device tree probe support for mc13xxx mfd driver. Signed-off-by: Shawn Guo shawn@linaro.org Cc: Samuel Ortiz sa...@linux.intel.com --- Changes since v2: * Add some note on how driver matches regulator device and the node in binding document Since it's a small change, I only

PWM and backlight devices

2011-12-06 Thread Thierry Reding
Hi, I'm working on adding support for a device which is booted from a device tree only. Currently this gets me to a login prompt on a serial console and the device is basically functional. However, the device also has a display with a backlight that is controlled via a PWM (supplied by the SoC).

[PATCH v4 0/6] Versatile Express DT support

2011-12-06 Thread Pawel Moll
Hello again, Here goes the fourth version of the series, hopefully something that could be merged for 3.3 (all Revieved-by-s and Acked-by-s welcomed!) Changes since v3: * The core tile support has been renamed (no real code change) to support for platforms based on a processor and the DTBs

[PATCH v4 1/6] ARM: versatile: Add missing ENDPROC to headsmp.S

2011-12-06 Thread Pawel Moll
Once the ENDPROC is in place, BSYM() in not longer necessary to get correct pointer to versatile_secondary_startup(). Signed-off-by: Pawel Moll pawel.m...@arm.com --- arch/arm/mach-realview/platsmp.c |3 +-- arch/arm/mach-vexpress/platsmp.c |4 +--- arch/arm/plat-versatile/headsmp.S |

[PATCH v4 2/6] ARM: vexpress: Get rid of MMIO_P2V

2011-12-06 Thread Pawel Moll
This patch gets rid of the MMIO_P2V and __MMIO_P2V macros, defining constant virtual base for motherboard and tile peripherals instead. Additionally, in preparation for the new motherboard memory map, the motherboard peripherals are using base pointers calculated in runtime, instead of

[PATCH v4 3/6] ARM: vexpress: Add DT support for the motherboard

2011-12-06 Thread Pawel Moll
This patch provides hooks for DT-based tile machine implementations and adds Flattened Device Tree description for the motherboard. Signed-off-by: Pawel Moll pawel.m...@arm.com --- Documentation/devicetree/bindings/arm/vexpress.txt | 118 arch/arm/boot/dts/vexpress-v2m.dtsi

[PATCH v4 4/6] ARM: vexpress: Motherboard RS1 memory map support

2011-12-06 Thread Pawel Moll
This patch adds support for RS1 memory map based Versatile Express motherboard. Signed-off-by: Pawel Moll pawel.m...@arm.com --- arch/arm/boot/dts/vexpress-v2m-rs1.dtsi | 196 + arch/arm/mach-vexpress/include/mach/debug-macro.S | 37 -

[PATCH v4 5/6] ARM: vexpress: DT-based support for Cortex-A5 and Cortex-A9 based tiles

2011-12-06 Thread Pawel Moll
This patch adds Flattened Device Trees based support for ARM Ltd. Versatile Express platforms based on Cortex-A5 and Cortex-A9 processors. Signed-off-by: Pawel Moll pawel.m...@arm.com --- arch/arm/boot/dts/vexpress-v2p-ca5s.dts | 131

[PATCH v4 6/6] ARM: vexpress: DT-based support for Cortex-A7 and Cortex-A15 based tiles

2011-12-06 Thread Pawel Moll
This patch adds Flattened Device Trees based support for ARM Ltd. Versatile Express platforms based on Cortex-A7 and Cortex-A15 processors. Signed-off-by: Pawel Moll pawel.m...@arm.com --- arch/arm/boot/dts/vexpress-v2p-ca15-tc1.dts | 138 +++

OMAP2+: Devicetree cleanup

2011-12-06 Thread Benoit Cousson
Hi Tony, This is a trivial cleanup series the removed some useless stuff inside DTS and force DT by default in an omap2plus_config build. Patches are based 3.2-rc4 and are available here: git://gitorious.org/omap-pm/linux.git for_3.3/1_dt_base Regards, Benoit Benoit Cousson (3): ARM:

[PATCH 1/3] ARM: OMAP2+: kconfig: Enable devicetree by default for OMAP2+ systems

2011-12-06 Thread Benoit Cousson
devicetree will become the mandatory boot method for OMAP2+. In order to avoid cluttering the OMAP code with #ifdef CONFIG_OF, select USE_OF by default for every OMAP2+ systems. Select as well the APPENDED_DTB and ATAG_DTB_COMPAT to allow legacy boot loader to keep working properly. Enable

[PATCH 2/3] arm/dts: OMAP: Remove bootargs node from board files

2011-12-06 Thread Benoit Cousson
Since 3.2, the CONFIG_ARM_ATAG_DTB_COMPAT config allows an old bootloader to still use ATAG to provide cmdline. Remove chosen/bootargs from the DTS board files. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Cc: Rob Herring rob.herr...@calxeda.com ---

[PATCH 3/3] ARM: OMAP2+: board-generic: Replace #if defined by #ifdef for consistency

2011-12-06 Thread Benoit Cousson
The file contains a mix of #ifdef and #if defined(). Replace the #if... by #ifdef. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Tony Lindgren t...@atomide.com --- arch/arm/mach-omap2/board-generic.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 2/3] arm/dts: OMAP: Remove bootargs node from board files

2011-12-06 Thread Rob Herring
Benoit, On 12/06/2011 10:49 AM, Benoit Cousson wrote: Since 3.2, the CONFIG_ARM_ATAG_DTB_COMPAT config allows an old bootloader to still use ATAG to provide cmdline. Remove chosen/bootargs from the DTS board files. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Grant Likely

Re: PWM and backlight devices

2011-12-06 Thread Rob Herring
On 12/06/2011 09:07 AM, Thierry Reding wrote: Hi, I'm working on adding support for a device which is booted from a device tree only. Currently this gets me to a login prompt on a serial console and the device is basically functional. However, the device also has a display with a backlight

RE: [PATCH v2 5/5] ASoC: WM8903: Add device tree binding

2011-12-06 Thread Stephen Warren
Stephen Warren wrote at Friday, December 02, 2011 3:09 PM: Document the device tree binding for the WM8903 codec, and modify the driver to extract platform data from the device tree, if present. Mark, I just realized that when I was re-organizing all the WM8903 patches, I dropped the part that

Re: [PATCH v2 5/5] ASoC: WM8903: Add device tree binding

2011-12-06 Thread Rob Herring
On 12/06/2011 12:22 PM, Stephen Warren wrote: Stephen Warren wrote at Friday, December 02, 2011 3:09 PM: Document the device tree binding for the WM8903 codec, and modify the driver to extract platform data from the device tree, if present. Mark, I just realized that when I was

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Nicolas Pitre
On Tue, 6 Dec 2011, Dave Martin wrote: On Mon, Dec 05, 2011 at 02:49:01PM -0500, Nicolas Pitre wrote: No need to convert everything. First move is to make irq=0 meaning no IRQ. That means making things like: if (irq 0) if (irq = 0) into if (irq = 0)

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Rob Herring
On 12/06/2011 05:49 AM, Russell King - ARM Linux wrote: On Tue, Dec 06, 2011 at 11:37:35AM +, Dave Martin wrote: 1) All OF code and drivers should be migrating to use 0 instead of NO_IRQ for the no-interrupt case. Code which receives irq numbers directly from the OF framework and

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Russell King - ARM Linux
On Tue, Dec 06, 2011 at 11:20:49AM -0800, Linus Torvalds wrote: Not for any device driver, though. It's used entirely internally, and it doesn't even use request_irq(). It uses the magic internal setup_irq() and never *ever* exposes irq0 as anything that a driver can see. That's what

RE: [PATCH v2 5/5] ASoC: WM8903: Add device tree binding

2011-12-06 Thread Stephen Warren
Rob Herring wrote at Tuesday, December 06, 2011 12:07 PM: On 12/06/2011 12:22 PM, Stephen Warren wrote: Stephen Warren wrote at Friday, December 02, 2011 3:09 PM: Document the device tree binding for the WM8903 codec, and modify the driver to extract platform data from the device tree, if

Re: [PATCH v2 5/5] ASoC: WM8903: Add device tree binding

2011-12-06 Thread Rob Herring
On 12/06/2011 02:09 PM, Stephen Warren wrote: Rob Herring wrote at Tuesday, December 06, 2011 12:07 PM: On 12/06/2011 12:22 PM, Stephen Warren wrote: Stephen Warren wrote at Friday, December 02, 2011 3:09 PM: Document the device tree binding for the WM8903 codec, and modify the driver to

Re: [PATCH v2 09/17] tegra: usb: fdt: Add additional device tree definitions for USB ports

2011-12-06 Thread Stephen Warren
On 12/05/2011 05:55 PM, Simon Glass wrote: On Mon, Dec 5, 2011 at 3:25 PM, Stephen Warren swar...@nvidia.com wrote: On 12/02/2011 07:11 PM, Simon Glass wrote: This adds peripheral IDs and timing information to the USB part of the device tree for U-Boot. The peripheral IDs provide easy access

Re: [PATCH] ata: Don't use NO_IRQ in pata_of_platform driver

2011-12-06 Thread Uwe Kleine-König
Hello Linus, On Tue, Dec 06, 2011 at 11:20:49AM -0800, Linus Torvalds wrote: On Tue, Dec 6, 2011 at 2:46 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: But.. let's make one thing clear: Alan Cox and Linus have been going on about how IRQ0 should not be used.  Let's be crystal

Re: [PATCH v2 09/17] tegra: usb: fdt: Add additional device tree definitions for USB ports

2011-12-06 Thread Simon Glass
Hi Stephen, On Tue, Dec 6, 2011 at 12:28 PM, Stephen Warren swar...@nvidia.com wrote: On 12/05/2011 05:55 PM, Simon Glass wrote: On Mon, Dec 5, 2011 at 3:25 PM, Stephen Warren swar...@nvidia.com wrote: On 12/02/2011 07:11 PM, Simon Glass wrote: This adds peripheral IDs and timing information

Re: [PATCH 1/2] of/irq: Get rid of NO_IRQ usage

2011-12-06 Thread Rob Herring
On 11/10/2011 09:25 AM, Anton Vorontsov wrote: PPC32/64 defines NO_IRQ to zero, so no problems expected. ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, which returns correct ('0') value in 'no irq' case. So everything should be fine. Other arches might break if some of

Re: [PATCH] drivers, char: add U-Boot bootcount driver

2011-12-06 Thread Wolfram Sang
Hi Heiko, This driver provides read/write access to the U-Boot bootcounter through PROC FS and/or sysFS file. Why ProcFS? Why ProcFS and/or SysFS? Which has priority? Why not /dev? I drop the ProcFS support for v2. Don't bother. This approach starts from the wrong side. The

Re: [PATCH] drivers, char: add U-Boot bootcount driver

2011-12-06 Thread Wolfgang Denk
Dear Wolfram, In message 20111206215056.gd14...@pengutronix.de you wrote: bootcount itself is not a device. It is a feature of certain devices. And that needs to be implemented; possibly generic enough that it can work for register based, i2c based, and so forth, accesses. If boot counter

[PATCH v2 1/6] tegra: fdt: Add keyboard controller definition

2011-12-06 Thread Simon Glass
From: Anton Staff robot...@chromium.org The Tegra keyboard controller provides a simple interface to a matrix keyboard. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/tegra20.dtsi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git

[PATCH v2 2/6] tegra: fdt: Add keyboard definitions for Seaboard

2011-12-06 Thread Simon Glass
From: Anton Staff robot...@chromium.org Seaboard uses a QUERTY keyboard. We add key codes for this to enable key scanning to work. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Remove status = okay since this is the default anyway board/nvidia/dts/tegra2-seaboard.dts | 70

[PATCH v2 3/6] fdt: Add fdtdec functions to read byte array

2011-12-06 Thread Simon Glass
From: Anton Staff robot...@chromium.org Sometimes we don't need a full cell for each value. This provides a simple function to read a byte array, both with and without copying it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Use correct name for get_prop_check_min_len()

Re: [PATCH] drivers, char: add U-Boot bootcount driver

2011-12-06 Thread Wolfram Sang
bootcount itself is not a device. It is a feature of certain devices. And that needs to be implemented; possibly generic enough that it can work for register based, i2c based, and so forth, accesses. If boot counter is not a good name for such a device, then what name would you

Re: [PATCH v4 2/6] ARM: vexpress: Get rid of MMIO_P2V

2011-12-06 Thread Arnd Bergmann
On Tuesday 06 December 2011 15:43:45 Pawel Moll wrote: This patch gets rid of the MMIO_P2V and __MMIO_P2V macros, defining constant virtual base for motherboard and tile peripherals instead. Additionally, in preparation for the new motherboard memory map, the motherboard peripherals are

Re: [PATCH v4 3/6] ARM: vexpress: Add DT support for the motherboard

2011-12-06 Thread Arnd Bergmann
On Tuesday 06 December 2011 15:43:46 Pawel Moll wrote: This patch provides hooks for DT-based tile machine implementations and adds Flattened Device Tree description for the motherboard. Signed-off-by: Pawel Moll pawel.m...@arm.com Reviewed-by: Arnd Bergmann a...@arndb.de

Re: [PATCH v4 1/6] ARM: versatile: Add missing ENDPROC to headsmp.S

2011-12-06 Thread Arnd Bergmann
On Tuesday 06 December 2011 15:43:44 Pawel Moll wrote: Once the ENDPROC is in place, BSYM() in not longer necessary to get correct pointer to versatile_secondary_startup(). Signed-off-by: Pawel Moll pawel.m...@arm.com Acked-by: Arnd Bergmann a...@arndb.de

Re: [PATCH v4 5/6] ARM: vexpress: DT-based support for Cortex-A5 and Cortex-A9 based tiles

2011-12-06 Thread Arnd Bergmann
On Tuesday 06 December 2011 15:43:48 Pawel Moll wrote: This patch adds Flattened Device Trees based support for ARM Ltd. Versatile Express platforms based on Cortex-A5 and Cortex-A9 processors. Signed-off-by: Pawel Moll pawel.m...@arm.com Acked-by: Arnd Bergmann a...@arndb.de

Re: [PATCH v4 5/6] ARM: vexpress: DT-based support for Cortex-A5 and Cortex-A9 based tiles

2011-12-06 Thread Arnd Bergmann
On Tuesday 06 December 2011 23:53:46 Arnd Bergmann wrote: On Tuesday 06 December 2011 15:43:48 Pawel Moll wrote: This patch adds Flattened Device Trees based support for ARM Ltd. Versatile Express platforms based on Cortex-A5 and Cortex-A9 processors. Signed-off-by: Pawel Moll

Re: [PATCH] drivers, char: add U-Boot bootcount driver

2011-12-06 Thread Rob Herring
On 12/06/2011 04:06 PM, Wolfram Sang wrote: bootcount itself is not a device. It is a feature of certain devices. And that needs to be implemented; possibly generic enough that it can work for register based, i2c based, and so forth, accesses. If boot counter is not a good name for such

Re: Boolean properties

2011-12-06 Thread David Gibson
On Mon, Dec 05, 2011 at 04:29:22PM -0800, Simon Glass wrote: Hi, As I understand it, boolean properties in the device tree are defined as follows: - if the property is present, then it is true - if the property is absent, then it is false That's the common convention. Although an

Re: Boolean properties

2011-12-06 Thread Simon Glass
Hi David, On Tue, Dec 6, 2011 at 3:12 PM, David Gibson da...@gibson.dropbear.id.au wrote: On Mon, Dec 05, 2011 at 04:29:22PM -0800, Simon Glass wrote: Hi, As I understand it, boolean properties in the device tree are defined as follows: - if the property is present, then it is true - if

Re: [U-Boot] [PATCH v2 04/17] fdt: Add basic support for decoding GPIO definitions

2011-12-06 Thread Simon Glass
Hi Mike, On Mon, Dec 5, 2011 at 7:55 PM, Mike Frysinger vap...@gentoo.org wrote: On Monday 05 December 2011 17:52:01 Simon Glass wrote: On Mon, Dec 5, 2011 at 2:22 PM, Stephen Warren wrote: On 12/05/2011 02:56 PM, Simon Glass wrote: * A system-wide GPIO ID, in which case the numbering is

[PATCH v3 02/16] fdt: Add functions to access phandles, arrays and bools

2011-12-06 Thread Simon Glass
Add a function to look up a property which is a phandle in a node, and another to read a fixed-length integer array from an fdt property. Also add a function to read boolean properties, although there is no actual boolean type in U-Boot. Signed-off-by: Simon Glass s...@chromium.org ---

[PATCH v3 01/16] fdt: Tidy up a few fdtdec problems

2011-12-06 Thread Simon Glass
This fixes five trivial issues in fdtdec.c: 1. fdtdec_get_is_enabled() doesn't really need a default value 2. The fdt must be word-aligned, since otherwise it will fail on ARM 3. The compat_names[] array is missing its first element. This is needed only because the first fdt_compat_id is defined

[PATCH v3 04/16] fdt: Add basic support for decoding GPIO definitions

2011-12-06 Thread Simon Glass
This adds some support into fdtdec for reading GPIO definitions from the fdt. We permit up to FDT_GPIO_MAX GPIOs in the system. Each GPIO is of the form: gpio-function-name = phandle gpio_num flags; where: phandle is a pointer to the GPIO node gpio_num is the number of the GPIO (0 to 223) flags

[PATCH v3 06/16] arm: fdt: Add skeleton device tree file from kernel

2011-12-06 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/skeleton.dtsi | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 arch/arm/dts/skeleton.dtsi

[PATCH v3 08/16] tegra: fdt: Add device tree file for Tegra2 Seaboard from kernel

2011-12-06 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/dts/tegra2-seaboard.dts | 36 ++ 1 files changed, 36 insertions(+), 0 deletions(-) create mode

[PATCH v3 09/16] tegra: usb: fdt: Add additional device tree definitions for USB ports

2011-12-06 Thread Simon Glass
This adds peripheral IDs to the USB part of the device tree for U-Boot. The peripheral IDs provide easy access to clock registers. We will likely remove this in favor of a full clock tree when it is available in the kernel (but probably still retain the peripheral ID, just move it into a clock

[PATCH v3 10/16] tegra: usb: fdt: Add USB definitions for Tegra2 Seaboard

2011-12-06 Thread Simon Glass
We set up two USB ports, one of which can be host or device. For some reason the kernel version does enable both ports. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Use okay instead of ok for fdt node status - Remove 0x from fdt aliases Changes in v3: - Remove okay from

[PATCH v3 07/16] tegra: fdt: Add Tegra2x device tree file from kernel

2011-12-06 Thread Simon Glass
This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git config.mk is updated to provide this file to boards through the built-in mechanism: /include/ ARCH_CPU_DTS Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/config.mk

[PATCH v3 05/16] arm: fdt: Ensure that an embedded fdt is word-aligned

2011-12-06 Thread Simon Glass
By putting the fdt blob into a distinctive area we can ensure that it appears at the start of the data section and is word-aligned. Note: It does not seem to be possible to get objcopy to honour its --section-alignment flag, which would otherwise provide an easier fix for this problem.

[PATCH v3 16/16] tegra: fdt: Enable FDT support for Seaboard

2011-12-06 Thread Simon Glass
This switches Seaboard over to use FDT for run-time config instead of CONFIG options. USB is the only user at present. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Drop Tegra USB alignment patch as we will deal with this another way include/configs/seaboard.h |5 +

Re: [PATCH v3] of/irq: Get rid of NO_IRQ usage

2011-12-06 Thread Rob Herring
On 12/06/2011 05:16 PM, Anton Vorontsov wrote: PPC32/64 defines NO_IRQ to zero, so no problems expected. ARM defines NO_IRQ to -1, but OF code relies on IRQ domains support, which returns correct ('0') value in 'no irq' case. So everything should be fine. Other arches might break if some of

Re: [PATCH 1/3 v4] usb: tegra20-ehci: Add devicetree support.

2011-12-06 Thread Jean-Christophe PLAGNIOL-VILLARD
On 14:17 Thu 21 Jul , ac...@nvidia.com wrote: From: Andrew Chew ac...@nvidia.com Add code to try to get platform data information (register base, irq, modes, various tuning parameters) from device tree, if not present in board files. Signed-off-by: Andrew Chew ac...@nvidia.com

Re: [PATCH] RFC, watchdog: add generic wdt driver API

2011-12-06 Thread Heiko Schocher
Hello Alan, Alan Cox wrote: that we have a number of customers who consider the existing wdt support unsufficient for their use cases. We've been using it on all kinds on PPC systems, and now on ARM as well. We will not fight for inclusion of this driver, we just wat to know if it's worth

Re: [PATCH net-next v6 4/4] powerpc: tqm8548/tqm8xx: add and update CAN device nodes

2011-12-06 Thread Benjamin Herrenschmidt
On Thu, 2011-12-01 at 10:41 +0100, Wolfgang Grandegger wrote: This patch enables or updates support for the CC770 and AN82527 CAN controller on the TQM8548 and TQM8xx boards. I'm a bit confused by the net-next prefix here. Those patches seem to be only touching arch/powerpc and seem to be sent

Re: [PATCH net-next v6 4/4] powerpc: tqm8548/tqm8xx: add and update CAN device nodes

2011-12-06 Thread David Miller
From: Benjamin Herrenschmidt b...@kernel.crashing.org Date: Wed, 07 Dec 2011 18:34:28 +1100 Let me know if I should just remove them from powerpc patchwork. These are DT entries for CAN devices for which drivers only exist in the net-next tree, I already included this patch into the net-next

Re: [PATCH net-next v6 4/4] powerpc: tqm8548/tqm8xx: add and update CAN device nodes

2011-12-06 Thread Benjamin Herrenschmidt
On Wed, 2011-12-07 at 02:39 -0500, David Miller wrote: From: Benjamin Herrenschmidt b...@kernel.crashing.org Date: Wed, 07 Dec 2011 18:34:28 +1100 Let me know if I should just remove them from powerpc patchwork. These are DT entries for CAN devices for which drivers only exist in the