Re: Where to put a large bootloader-supplied device tree on ARM ?

2012-07-06 Thread Mitch Bradley
On 7/6/2012 3:23 PM, David VomLehn (dvomlehn) wrote: The kernel *must* go where it is linked, but the FDT contains only relative references and is thus free to go anywhere. The same is true of ramdisks, which are usually placed after the kernel. Right, but the kernel image is compressed, so aft

RE: Where to put a large bootloader-supplied device tree on ARM ?

2012-07-06 Thread David VomLehn (dvomlehn)
The kernel *must* go where it is linked, but the FDT contains only relative references and is thus free to go anywhere. The same is true of ramdisks, which are usually placed after the kernel. How about doing the same with your FDT? > -Original Message- > From: devicetree-discuss [mailto:d

Where to put a large bootloader-supplied device tree on ARM ?

2012-07-06 Thread Mitch Bradley
I'm passing a flatted device tree from OLPC's bootloader (which is a full Open Firmware implementation) to the kernel. If I put the FDT at the "traditional" address 0x100, bad things happen when the DT is larger than 16K. The FDT extends past the 0x4000 boundary and gets overwritten by the early

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-07-06 Thread Guennadi Liakhovetski
On Fri, 6 Jul 2012, Russell King - ARM Linux wrote: > On Fri, Jul 06, 2012 at 01:36:32PM +0200, Guennadi Liakhovetski wrote: > > I like this idea, but why don't we extend it to also cover the non-DT > > case? I.e., why don't we add the above callback (call it "match" or > > "filter" or anything

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-07-06 Thread Russell King - ARM Linux
On Fri, Jul 06, 2012 at 05:43:38PM +0200, Guennadi Liakhovetski wrote: > Hi Arnd > > On Fri, 6 Jul 2012, Arnd Bergmann wrote: > > How would the individual driver know the size of the filter_arg? > > In exactly the same way as most dmaengine drivers do it today: they don't > touch filter_arg unti

Re: [PATCH v2 01/12] ARM: Orion: DT support for IRQ and GPIO Controllers

2012-07-06 Thread Andrew Lunn
On Fri, Jul 06, 2012 at 08:08:23PM +, Arnd Bergmann wrote: > On Thursday 05 July 2012, Andrew Lunn wrote: > > > I think the latter one needs to be > > > > > > +static int __initdata gpio1_irqs[4] = { > > > + IRQ_DOVE_HIGH_GPIO, > > > + IRQ_DOVE_HIGH_GPIO, > > > + IRQ_DOVE_HIGH_GPIO

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-07-06 Thread Russell King - ARM Linux
On Fri, Jul 06, 2012 at 01:36:32PM +0200, Guennadi Liakhovetski wrote: > I like this idea, but why don't we extend it to also cover the non-DT > case? I.e., why don't we add the above callback (call it "match" or > "filter" or anything else) to dmaengine operations and inside (the > extended) dm

Re: [PATCH v2 01/12] ARM: Orion: DT support for IRQ and GPIO Controllers

2012-07-06 Thread Arnd Bergmann
On Thursday 05 July 2012, Andrew Lunn wrote: > > I think the latter one needs to be > > > > +static int __initdata gpio1_irqs[4] = { > > + IRQ_DOVE_HIGH_GPIO, > > + IRQ_DOVE_HIGH_GPIO, > > + IRQ_DOVE_HIGH_GPIO, > > + IRQ_DOVE_HIGH_GPIO, > > +}; > > > > so we register all four part

Re: Tegra DRM device tree bindings

2012-07-06 Thread Stephen Warren
On 07/05/2012 06:15 AM, Thierry Reding wrote: > Here's a new proposal that should address all issues collected > during the discussion of the previous one: > > From tegra20.dtsi: ... At a quick glance, that all seems pretty reasonable now. > One problem I've come across when trying to get some r

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-07-06 Thread Arnd Bergmann
On Friday 06 July 2012, Guennadi Liakhovetski wrote: > > > > > > for_each_channel() { > > > ret = chan->device->device_alloc_chan_resources(chan, > > > filter_arg); > > > if (!ret) > > > return chan; > > > else if (ret != -ENODEV) > > >

Re: [PATCH 2/2] ARM: EXYNOS5: Add gscalar device from DT

2012-07-06 Thread Sylwester Nawrocki
Hi Shaik, On 07/06/2012 02:45 PM, Shaik Ameer Basha wrote: Adding all 4 gscalar devices from DT device list in machine file. nit: s/gscalar/gscaler The above sentence doesn't quite parse though. Signed-off-by: Abhilash Kesavan Signed-off-by: Leela Krishna Amudala Signed-off-by: Shaik Ameer

Re: SPI, GPIO, and DT maintainer ship (cry for help)

2012-07-06 Thread Mark Brown
On Thu, Jul 05, 2012 at 10:09:17PM +0200, Wolfram Sang wrote: > Hi Grant, > > the next merge window, and quite possibly the next window. Since you > > three have agreed to co-maintain those subsystems with me, can you > > please take a look at the patches that have been posted, pick up the > > on

Re: [PATCH V2] regulator: tps65910: add support for input supply

2012-07-06 Thread Mark Brown
On Fri, Jul 06, 2012 at 02:13:12PM +0530, Laxman Dewangan wrote: > There is multiple voltage input pins on device which > takes the voltage input for different voltage regulator. > Support to configure the voltage input supplied by > different regulator for each regulators. Applied, thanks. sign

Re: [PATCH][v3] powerpc/85xx:Add BSC9131 RDB Support

2012-07-06 Thread Kumar Gala
On Mar 21, 2012, at 11:54 PM, Prabhakar Kushwaha wrote: > BSC9131RDB is a Freescale reference design board for BSC9131 SoC.The BSC9131 > is integrated SoC that targets Femto base station market. It combines Power > Architecture e500v2 and DSP StarCore SC3850 core technologies with MAPLE-B2F > bas

Re: [PATCH v8 06/14] USB: Chipidea: rename struct ci13xxx variables from udc to ci

2012-07-06 Thread Greg KH
On Fri, Jun 29, 2012 at 05:48:54PM +0800, Richard Zhao wrote: > struct ci13xxx represent the controller, which may be device or host, > so name its variables as ci. > > Signed-off-by: Richard Zhao > Reviewed-by: Felipe Balbi > Signed-off-by: Alexander Shishkin > Reviewed-by: Marek Vasut This

RE: OF_DYNAMIC usage

2012-07-06 Thread Stephen Neuendorffer
> -Original Message- > From: devicetree-discuss [mailto:devicetree-discuss- > bounces+stephen.neuendorffer=xilinx@lists.ozlabs.org] On Behalf Of > Benjamin Herrenschmidt > Sent: Friday, July 06, 2012 1:10 AM > To: mon...@monstr.eu > Cc: devicetree-discuss@lists.ozlabs.org > Subject: Re:

Re: [PATCH] ARM: davinci: cp_intc: Add OF support for TI interrupt controller

2012-07-06 Thread Sekhar Nori
Hi Grant, On 7/5/2012 6:13 PM, Heiko Schocher wrote: > Hello Sekhar, > > On 03.07.2012 21:16, Sekhar Nori wrote: >> From: Heiko Schocher >> >> Add a function to initialize the Common Platform Interrupt Controller >> (cp_intc) from TI used on OMAP-L1x SoCs using a device tree node. >> >> Signed-of

Re: [PATCH V3 5/6] Avoid duplicate probe for of platform devices

2012-07-06 Thread Greg KH
On Fri, Jul 06, 2012 at 06:07:43AM +, Jia Hongtao-B38951 wrote: > > > -Original Message- > > From: Greg KH [mailto:g...@kroah.com] > > Sent: Friday, July 06, 2012 12:26 PM > > To: Jia Hongtao-B38951 > > Cc: Rob Herring; devicetree-discuss@lists.ozlabs.org; linux- > > ker...@vger.kernel

Re: [PATCH 1/2] pinctrl: pinctrl-imx: add support for set bits for general purpose registers

2012-07-06 Thread Stephen Warren
On 07/06/2012 03:09 AM, Dong Aisheng wrote: > From: Dong Aisheng > > The General Purpose Registers (GPR) is used to select operating modes for > general features in the SoC, usually not related to the IOMUX itself, > but it does belong to IOMUX controller. > We simply provide an convient API for

Re: [PATCH V2] regulator: tps65910: add support for input supply

2012-07-06 Thread Stephen Warren
On 07/06/2012 02:43 AM, Laxman Dewangan wrote: > There is multiple voltage input pins on device which > takes the voltage input for different voltage regulator. > Support to configure the voltage input supplied by > different regulator for each regulators. > > Signed-off-by: Laxman Dewangan Acke

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-07-06 Thread Guennadi Liakhovetski
Hi Arnd On Fri, 6 Jul 2012, Arnd Bergmann wrote: > On Friday 06 July 2012, Guennadi Liakhovetski wrote: > > On Mon, 25 Jun 2012, Arnd Bergmann wrote: > > > > [snip] > > > > > The channel data in the device tree is still in a format > > > that is specific to that dmaengine driver and interpreted

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-07-06 Thread Arnd Bergmann
On Friday 06 July 2012, Guennadi Liakhovetski wrote: > On Mon, 25 Jun 2012, Arnd Bergmann wrote: > > [snip] > > > The channel data in the device tree is still in a format > > that is specific to that dmaengine driver and interpreted > > by it. Using the regular dma_filter_fn prototype is not > >

Re: [PATCH] bindings: update imx and mxs #gpio-cells

2012-07-06 Thread Shawn Guo
On Thu, Jun 28, 2012 at 11:15:37AM +0800, Shawn Guo wrote: > The of_get_named_gpio_flags can retrieve the second cell of > gpio-specifier as the "flags". The imx and mxs gpio driver do not > have their own .xlate callback, which means of_gpio_simple_xlate is > used and it's a 1:1 mapping between g

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-07-06 Thread Guennadi Liakhovetski
On Mon, 25 Jun 2012, Arnd Bergmann wrote: [snip] > The channel data in the device tree is still in a format > that is specific to that dmaengine driver and interpreted > by it. Using the regular dma_filter_fn prototype is not > necessary, but it would be convenient because the dmaengine > code al

Re: Early printk baudrate initialization DTS description

2012-07-06 Thread Michal Simek
On 06/30/2012 03:41 AM, David VomLehn (dvomlehn) wrote: -Original Message- From: devicetree-discuss [mailto:devicetree-discuss- bounces+dvomlehn=cisco@lists.ozlabs.org] On Behalf Of Michal Simek Sent: Tuesday, June 26, 2012 4:17 AM To: devicetree-discuss@lists.ozlabs.org Cc: John Will

Re: [PATCH v2 1/1] of: reform prom_update_property function

2012-07-06 Thread Dong Aisheng
On Tue, Jun 26, 2012 at 07:40:10AM +0800, Rob Herring wrote: > On 06/25/2012 01:28 AM, Dong Aisheng wrote: > > From: Dong Aisheng > > > > prom_update_property() currently fails if the property doesn't > > actually exist yet which isn't what we want. Change to add-or-update > > instead of update-o

[PATCH 1/2] pinctrl: pinctrl-imx: add support for set bits for general purpose registers

2012-07-06 Thread Dong Aisheng
From: Dong Aisheng The General Purpose Registers (GPR) is used to select operating modes for general features in the SoC, usually not related to the IOMUX itself, but it does belong to IOMUX controller. We simply provide an convient API for driver to call to set the general purpose register bits

[PATCH 2/2] pinctrl: pinctrl-imx6q: add missed mux function for USBOTG_ID

2012-07-06 Thread Dong Aisheng
From: Dong Aisheng The original pin registers table is derived from u-boot mainline, but somehow it was found missing some mux functions for USBOTG_ID. We added it at the bottom by following the exist pin function ids, then it will not break the exist using of pin function id in dts file. Report

Re: [PATCHv2 3/3] watchdog: omap_wdt: add device tree support

2012-07-06 Thread Tony Lindgren
Hi Wim, * jgq...@gmail.com [120531 20:56]: > From: Xiao Jiang > > Add device table for omap_wdt to support dt. Care to ack this patch in the series? Regards, Tony > > Signed-off-by: Xiao Jiang > --- > drivers/watchdog/omap_wdt.c |7 +++ > 1 files changed, 7 insertions(+), 0 delet

Re: [PATCH 1/2] arm/dts: Add AM33XX basic pinctrl support

2012-07-06 Thread Tony Lindgren
* AnilKumar Ch [120705 02:18]: > Adds basic pinctrl support for AM33XX family of devices. This patch > is based on the pinctrl-simple driver submitted by Tony Lindgren's > here: http://lwn.net/Articles/496075/ > > Signed-off-by: AnilKumar Ch > --- > arch/arm/boot/dts/am33xx.dtsi | 12

Re: OF_DYNAMIC usage

2012-07-06 Thread Michal Simek
On 07/06/2012 10:10 AM, Benjamin Herrenschmidt wrote: On Fri, 2012-07-06 at 10:02 +0200, Michal Simek wrote: ok. How that FDT blob segment should look like? It can't be just one node because it also requires path where it is connected. It means at least the part like below for injecting. No,

Re: OF_DYNAMIC usage

2012-07-06 Thread Benjamin Herrenschmidt
On Fri, 2012-07-06 at 10:02 +0200, Michal Simek wrote: > ok. How that FDT blob segment should look like? > It can't be just one node because it also requires path where it is connected. > > It means at least the part like below for injecting. No, my idea was to pass 3 arguments: - action (enum

Re: OF_DYNAMIC usage

2012-07-06 Thread Michal Simek
On 07/06/2012 09:08 AM, Benjamin Herrenschmidt wrote: On Fri, 2012-07-06 at 08:51 +0200, Michal Simek wrote: On 07/06/2012 08:19 AM, Benjamin Herrenschmidt wrote: On Fri, 2012-07-06 at 08:03 +0200, Michal Simek wrote: The way it works at the moment is that when something new is plugged in, th

Re: OF_DYNAMIC usage

2012-07-06 Thread Benjamin Herrenschmidt
On Fri, 2012-07-06 at 08:51 +0200, Michal Simek wrote: > On 07/06/2012 08:19 AM, Benjamin Herrenschmidt wrote: > > On Fri, 2012-07-06 at 08:03 +0200, Michal Simek wrote: > >>> > >>> The way it works at the moment is that when something new is plugged in, > >>> the hypervisor talks to a proprietary