[PATCH v5 4/4] regulator: map consumer regulator based on device tree

2011-11-18 Thread Rajendra Nayak
Device nodes in DT can associate themselves with one or more regulators/supply by providing a list of phandles (to regulator nodes) and corresponding supply names. For Example: devicenode: node@0x0 { ... ... vmmc-supply = regulator1;

Re: [PATCH 2/5] ARM: vexpress: Remove platform SMP functions from ct_desc

2011-11-18 Thread Pawel Moll
On Thu, 2011-11-17 at 15:31 +, Russell King - ARM Linux wrote: On Fri, Nov 11, 2011 at 06:27:03PM +, Pawel Moll wrote: This patch removes platform SMP callbacks from ct_desc struct and replaces them with global symbols in preparation for DT-based support code. Will and myself

Re: [PATCH 1/5] ARM: vexpress: Get rid of MMIO_P2V

2011-11-18 Thread Pawel Moll
On Thu, 2011-11-17 at 15:43 +, Russell King - ARM Linux wrote: +/* Tile's peripherals static mappings should start here */ +#define V2T_PERIPH 0xf820 +#define V2T_PERIPH_P2V(offset) ((void __iomem *)(V2T_PERIPH | (offset))) + Please get rid of these blank lines at the end of

Re: [PATCH 3/5] ARM: vexpress: Add DT support in v2m

2011-11-18 Thread Pawel Moll
On Thu, 2011-11-17 at 15:53 +, Russell King - ARM Linux wrote: You're totally failing to understand the point. That's your opinion, I think otherwise, won't try to convince you. The point is that when Versatile Express first came out, it had a memory map. At this point in time, there was

Re: [PATCH 4/5] ARM: vexpress: Initial RS1 memory map support

2011-11-18 Thread Pawel Moll
On Thu, 2011-11-17 at 15:36 +, Russell King - ARM Linux wrote: +config ARCH_VEXPRESS_LEGACY + bool + select AUTO_ZRELADDR + select ARM_PATCH_PHYS_VIRT + +config ARCH_VEXPRESS_RS1 + bool + This doesn't make sense. Why should CA9x4 be forced to use the P2V stuff and

[PATCH 1/1] net/macb: add DT support

2011-11-18 Thread Jean-Christophe PLAGNIOL-VILLARD
allow the DT to pass the mac address and the phy mode Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Cc: Jamie Iles ja...@jamieiles.com Cc: Nicolas Ferre nicolas.fe...@atmel.com --- Documentation/devicetree/bindings/net/macb.txt | 22

[PATCH] of/device: Obtain platform dev name and id from bus_id

2011-11-18 Thread Wojciech Baranowski
When adding new platform device, parse platform_device.dev.bus_id (used as device name) to get platform_device.name and platform_device.id before calling device_add. If bus_id cannot be split into name and id, fallback to the old way. Currently the name is being set to bus_id and id is being set

Re: [PATCH 1/1] net/macb: add DT support

2011-11-18 Thread Jamie Iles
Hi Jean-Christophe, On Fri, Nov 18, 2011 at 03:29:25PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: allow the DT to pass the mac address and the phy mode Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com Cc: Jamie Iles ja...@jamieiles.com Cc: Nicolas Ferre

RE: Need some advice on LCD driver in Chrome u-boot

2011-11-18 Thread Stephen Warren
AIUI, yes you'll need to rewrite the LCD driver, but this should just be a manual replacement of the bit-twiddling macros with manually coded manipulations. I don't see much point upstreaming a .dts file that's completely untested; having it upstream before we're able to use it won't benefit

Re: [PATCH] of/platform: Allow missing address for dev name lookup

2011-11-18 Thread Rob Herring
On 11/18/2011 09:09 AM, Wojciech Baranowski wrote: While looking up linux name for platform device, check the address only if it has been supplied in lookup table. And the reason you want to do this is? Rob Signed-off-by: Wojciech Baranowski baranow...@chromium.org ---

Re: [PATCH] of/device: Obtain platform dev name and id from bus_id

2011-11-18 Thread Rob Herring
On 11/18/2011 09:30 AM, Wojciech Baranowski wrote: When adding new platform device, parse platform_device.dev.bus_id (used as device name) to get platform_device.name and platform_device.id before calling device_add. If bus_id cannot be split into name and id, fallback to the old way.

Re: [PATCH 1/5] ARM: vexpress: Get rid of MMIO_P2V

2011-11-18 Thread Russell King - ARM Linux
On Fri, Nov 18, 2011 at 12:20:48PM +, Pawel Moll wrote: On Thu, 2011-11-17 at 15:43 +, Russell King - ARM Linux wrote: +/* Tile's peripherals static mappings should start here */ +#define V2T_PERIPH 0xf820 +#define V2T_PERIPH_P2V(offset) ((void __iomem *)(V2T_PERIPH |

Re: [PATCH 3/5] ARM: vexpress: Add DT support in v2m

2011-11-18 Thread Russell King - ARM Linux
On Fri, Nov 18, 2011 at 12:20:49PM +, Pawel Moll wrote: On Thu, 2011-11-17 at 15:53 +, Russell King - ARM Linux wrote: Again, this is _not_ how DT is supposed to work. DT is about describing the hardware, not describing the state of something. And that's exactly what I was

Re: [PATCH 3/5] ARM: vexpress: Add DT support in v2m

2011-11-18 Thread Russell King - ARM Linux
On Thu, Nov 17, 2011 at 06:37:26PM +, Dave Martin wrote: On Thu, Nov 17, 2011 at 04:05:37PM +, Russell King - ARM Linux wrote: You do understand that system_rev is for the system _revision_ not for some kind of system ID. For example, it's to identify whether we're on a revision 4,

Re: [PATCH 4/5] ARM: vexpress: Initial RS1 memory map support

2011-11-18 Thread Russell King - ARM Linux
On Fri, Nov 18, 2011 at 12:20:50PM +, Pawel Moll wrote: On Thu, 2011-11-17 at 15:36 +, Russell King - ARM Linux wrote: You do know that this will probably cause uboot to load the uImage at 0x80008000 instead of 0x60008000, and therefore we'll lose half the RAM on this board? I

Re: [PATCH 01/10] arm/tegra: initial device tree for tegra30

2011-11-18 Thread Olof Johansson
On Thu, Nov 17, 2011 at 11:39:14AM -0800, Stephen Warren wrote: Peter De Schrijver wrote at Thursday, November 17, 2011 9:19 AM: This patch adds the initial device tree for tegra30 diff --git a/Documentation/devicetree/bindings/arm/tegra.txt ... +* harmony: tegra20 based development

Re: [PATCH 03/10] arm/tegra: prepare clock code for multiple tegra variants

2011-11-18 Thread Olof Johansson
Hi, A nit and two comments below. On Thu, Nov 17, 2011 at 06:19:17PM +0200, Peter De Schrijver wrote: Rework the tegra20 clock code to support multiple tegra variants : * remove tegra2_periph_reset_assert/tegra2_periph_reset_deassert. This functionality should be in clock.c. * compile

Re: [PATCH 01/10] arm/tegra: initial device tree for tegra30

2011-11-18 Thread Rob Herring
On 11/18/2011 12:49 PM, Olof Johansson wrote: On Thu, Nov 17, 2011 at 11:39:14AM -0800, Stephen Warren wrote: Peter De Schrijver wrote at Thursday, November 17, 2011 9:19 AM: This patch adds the initial device tree for tegra30 diff --git a/Documentation/devicetree/bindings/arm/tegra.txt ...

Re: [PATCH] net: add calxeda xgmac ethernet driver

2011-11-18 Thread David Miller
From: Rob Herring robherri...@gmail.com Date: Tue, 15 Nov 2011 20:46:51 -0600 From: Rob Herring rob.herr...@calxeda.com Add support for the XGMAC 10Gb ethernet device in the Calxeda Highbank SOC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Doesn't build, because you reference

RE: [PATCH 03/10] arm/tegra: prepare clock code for multiple tegra variants

2011-11-18 Thread Stephen Warren
Olof Johansson wrote at Friday, November 18, 2011 12:07 PM: On Thu, Nov 17, 2011 at 06:19:17PM +0200, Peter De Schrijver wrote: Rework the tegra20 clock code to support multiple tegra variants : * remove tegra2_periph_reset_assert/tegra2_periph_reset_deassert. This functionality

Re: [PATCH 03/10] arm/tegra: prepare clock code for multiple tegra variants

2011-11-18 Thread Olof Johansson
On Fri, Nov 18, 2011 at 12:18 PM, Stephen Warren swar...@nvidia.com wrote: Olof Johansson wrote at Friday, November 18, 2011 12:07 PM: On Thu, Nov 17, 2011 at 06:19:17PM +0200, Peter De Schrijver wrote: Rework the tegra20 clock code to support multiple tegra variants :  * remove

RE: [PATCH 03/10] arm/tegra: prepare clock code for multiple tegra variants

2011-11-18 Thread Stephen Warren
Olof Johansson wrote at Friday, November 18, 2011 2:25 PM: On Fri, Nov 18, 2011 at 12:18 PM, Stephen Warren swar...@nvidia.com wrote: Olof Johansson wrote at Friday, November 18, 2011 12:07 PM: On Thu, Nov 17, 2011 at 06:19:17PM +0200, Peter De Schrijver wrote: ...  void

Re: [PATCH 06/10] arm/tegra: prepare pinmux code for multiple tegra variants

2011-11-18 Thread Olof Johansson
On Thu, Nov 17, 2011 at 06:19:20PM +0200, Peter De Schrijver wrote: This patch modifies the pinmux code to be useable for multiple tegra variants. Some tegra20 specific constants will be replaced by variables which will be initialized to the appropriate value at runtime. Signed-off-by: Peter

Re: [PATCH 08/10] arm/tegra: pinmux tables and definitions for tegra30

2011-11-18 Thread Olof Johansson
Hi, @@ -667,7 +710,12 @@ void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *co } static struct of_device_id tegra_pinmux_of_match[] __devinitdata = { +#ifdef CONFIG_ARCH_TEGRA_2x_SOC { .compatible = nvidia,tegra20-pinmux, tegra20_pinmux_init },

Re: [PATCH 01/10] arm/tegra: initial device tree for tegra30

2011-11-18 Thread Olof Johansson
On Fri, Nov 18, 2011 at 11:30 AM, Rob Herring robherri...@gmail.com wrote: On 11/18/2011 12:49 PM, Olof Johansson wrote: On Thu, Nov 17, 2011 at 11:39:14AM -0800, Stephen Warren wrote: Peter De Schrijver wrote at Thursday, November 17, 2011 9:19 AM: This patch adds the initial device tree for

RE: [PATCH 08/10] arm/tegra: pinmux tables and definitions for tegra30

2011-11-18 Thread Stephen Warren
Olof Johansson wrote at Friday, November 18, 2011 2:43 PM: @@ -667,7 +710,12 @@ void tegra_pinmux_config_pullupdown_table(const struct tegra_pingroup_config *co } static struct of_device_id tegra_pinmux_of_match[] __devinitdata = { +#ifdef CONFIG_ARCH_TEGRA_2x_SOC {

Re: [PATCH 01/10] arm/tegra: initial device tree for tegra30

2011-11-18 Thread Rob Herring
On 11/18/2011 03:48 PM, Olof Johansson wrote: On Fri, Nov 18, 2011 at 11:30 AM, Rob Herring robherri...@gmail.com wrote: On 11/18/2011 12:49 PM, Olof Johansson wrote: On Thu, Nov 17, 2011 at 11:39:14AM -0800, Stephen Warren wrote: Peter De Schrijver wrote at Thursday, November 17, 2011 9:19

Re: [PATCH] of/platform: Allow missing address for dev name lookup

2011-11-18 Thread Rob Herring
On 11/18/2011 10:45 AM, Wojciech Baranowski wrote: On Fri, Nov 18, 2011 at 11:10 AM, Rob Herring rob.herr...@calxeda.com wrote: On 11/18/2011 09:09 AM, Wojciech Baranowski wrote: While looking up linux name for platform device, check the address only if it has been supplied in lookup table.

Re: [PATCH] net: add calxeda xgmac ethernet driver

2011-11-18 Thread Ben Hutchings
On Tue, 2011-11-15 at 20:46 -0600, Rob Herring wrote: [...] +static int desc_get_rx_status(struct xgmac_priv *priv, struct xgmac_dma_desc *p) +{ [...] + if (status RXDESC_EXT_STATUS) { + if (ext_status RXDESC_IP_HEADER_ERR) + x-rx_ip_header_error++; +

Re: [PATCH 2/4] mmc: omap: adapt the hsmmc driver to device tree

2011-11-18 Thread Tony Lindgren
* Rajendra Nayak rna...@ti.com [14 19:40]: On Tuesday 15 November 2011 03:00 AM, Tony Lindgren wrote: * Rajendra Nayakrna...@ti.com [04 04:16]: @@ -1869,6 +1957,14 @@ static int __init omap_hsmmc_probe(struct platform_device *pdev) struct omap_hsmmc_host *host = NULL;