[PATCH] gpio/tegra: dt: add binding for gpio polarity

2011-07-14 Thread Olof Johansson
Allocate one bit in the available extra cell to indicate if the gpio should be considered logically inverted. Signed-off-by: Olof Johansson --- .../devicetree/bindings/gpio/gpio_nvidia.txt |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/b

Re: [PATCH v2] mtd: dataflash: add device tree probe support

2011-07-14 Thread Shawn Guo
On Thu, Jul 14, 2011 at 08:54:07PM -0600, Grant Likely wrote: > On Thu, Jul 14, 2011 at 11:52:37PM +0800, Shawn Guo wrote: > > It adds device tree probe support for mtd_dataflash driver. > > > > Signed-off-by: Shawn Guo > > Cc: Grant Likely > > Cc: David Woodhouse > > Cc: Artem Bityutskiy > >

Re: [PATCH v2] mtd: dataflash: add device tree probe support

2011-07-14 Thread Shawn Guo
On Thu, Jul 14, 2011 at 09:52:02PM +0400, Dmitry Eremin-Solenikov wrote: > On Thu, Jul 14, 2011 at 11:52:37PM +0800, Shawn Guo wrote: > > It adds device tree probe support for mtd_dataflash driver. > > > > Signed-off-by: Shawn Guo > > Cc: Grant Likely > > Cc: David Woodhouse > > Cc: Artem Bityu

Re: Unbalanced of_node_put{get} on initial 'from' node?

2011-07-14 Thread Grant Likely
On Fri, Jul 15, 2011 at 12:39:58AM +0800, Shawn Guo wrote: > Hi Grant, > > I'm running into some problem when using of_find_matching_node(). > Here is the pseudo code. > > void foo(struct platform_device *pdev) > { > struct device_node *from = pdev->dev.parent->of_node; > struct devic

Re: [PATCH 2/2] dmaengine: imx-sdma: add device tree probe support

2011-07-14 Thread Grant Likely
On Fri, Jul 15, 2011 at 12:14:17AM +0800, Shawn Guo wrote: > It adds device tree probe support for imx-sdma driver. > > Signed-off-by: Shawn Guo > Cc: Grant Likely > Cc: Vinod Koul > Cc: Sascha Hauer > --- > .../devicetree/bindings/dma/fsl-imx-sdma.txt | 55 > >

Re: [PATCH 1/2] dmaengine: imx-sdma: use platform_device_id to identify sdma version

2011-07-14 Thread Grant Likely
On Fri, Jul 15, 2011 at 12:14:16AM +0800, Shawn Guo wrote: > It might be not good to use software defined version to identify sdma > device type, when hardware does not define such version. Instead, > soc name is stable enough to define the device type. > > The patch uses platform_device_id rathe

Re: [PATCH 1/2] i2c/imx: remove init/exit hooks from platform data

2011-07-14 Thread Grant Likely
On Fri, Jul 15, 2011 at 12:03:44AM +0800, Shawn Guo wrote: > The init/exit hooks in platform data are being used nowhere, so can > be removed. > > Signed-off-by: Shawn Guo > Cc: Darius Augulis > Cc: Ben Dooks Acked-by: Grant Likely Yes, I think this is the think to do. Notifiers provide a g

Re: [PATCH 2/2] i2c/imx: add device tree probe support

2011-07-14 Thread Grant Likely
On Fri, Jul 15, 2011 at 12:03:45AM +0800, Shawn Guo wrote: > It adds device tree probe support for i2c-imx driver. > > Signed-off-by: Shawn Guo > Cc: Grant Likely > Cc: Darius Augulis > Cc: Ben Dooks > --- > .../devicetree/bindings/i2c/fsl-imx-i2c.txt| 25 > >

Re: [PATCH v2] mtd: dataflash: add device tree probe support

2011-07-14 Thread Grant Likely
On Thu, Jul 14, 2011 at 11:52:37PM +0800, Shawn Guo wrote: > It adds device tree probe support for mtd_dataflash driver. > > Signed-off-by: Shawn Guo > Cc: Grant Likely > Cc: David Woodhouse > Cc: Artem Bityutskiy > --- > Changes since v1: > * Add "atmel,at45xxx" into the match table > * Add

Re: [PATCH v2] mtd: dataflash: add device tree probe support

2011-07-14 Thread Grant Likely
On Thu, Jul 14, 2011 at 09:52:02PM +0400, Dmitry Eremin-Solenikov wrote: > On Thu, Jul 14, 2011 at 11:52:37PM +0800, Shawn Guo wrote: > > It adds device tree probe support for mtd_dataflash driver. > > > > Signed-off-by: Shawn Guo > > Cc: Grant Likely > > Cc: David Woodhouse > > Cc: Artem Bityu

Re: [PATCH] dt: Add id to AUXDATA structure

2011-07-14 Thread Grant Likely
On Wed, Jul 13, 2011 at 07:53:24PM -0700, John Bonesio wrote: > This patch adds the ability to set the device id in the AUXDATA structure for > those few device drivers that just have to have a statically defined device > id. > --- > > drivers/of/platform.c |7 +++ > include/linux/

Re: [PATCH v2 7/7] spi/imx: add device tree probe support

2011-07-14 Thread Grant Likely
On Sun, Jul 10, 2011 at 01:16:41AM +0800, Shawn Guo wrote: > It adds device tree probe support for spi-imx driver. > > Signed-off-by: Shawn Guo > Cc: Grant Likely Applied, thanks. g. > --- > .../devicetree/bindings/spi/fsl-imx-cspi.txt | 22 +++ > drivers/spi/spi-imx.c

Re: [PATCH v2 3/7] spi/imx: do not use spi_imx2_3 to name SPI_IMX_VER_2_3 function and macro

2011-07-14 Thread Grant Likely
On Sun, Jul 10, 2011 at 01:16:37AM +0800, Shawn Guo wrote: > It's confusing to use spi_imx2_3 to name SPI_IMX_VER_2_3 function > and macro, as it easily make people think of imx2 and imx3. It's > better to use specific soc name just like what other SPI_IMX_VER > do. For SPI_IMX_VER_2_3 case, it w

Re: [PATCH v2 2/7] spi/imx: use mx21 to name SPI_IMX_VER_0_0 function and macro

2011-07-14 Thread Grant Likely
On Mon, Jul 11, 2011 at 09:35:23AM +0200, Uwe Kleine-König wrote: > On Sun, Jul 10, 2011 at 01:16:36AM +0800, Shawn Guo wrote: > > SPI_IMX_VER_0_0 covers i.mx21 and i.mx27. It makes more sense to > > use mx21 rather than mx27 to name SPI_IMX_VER_0_0 function and > > macro, since i.mx21 comes out e

Re: [PATCH v2 5/7] spi/imx: use soc name in spi device type naming scheme

2011-07-14 Thread Grant Likely
On Sun, Jul 10, 2011 at 01:16:39AM +0800, Shawn Guo wrote: > Software defined version number is not stable enough to be used > in device type naming scheme. The patch changes it to use implicit > soc name for spi device type definition. In this way, we can easily > align the naming scheme with de

Re: [PATCH v2 1/7] spi/imx: do not make copy of spi_imx_devtype_data

2011-07-14 Thread Grant Likely
On Sun, Jul 10, 2011 at 01:16:35AM +0800, Shawn Guo wrote: > spi_imx_devtype_data has already been driver private data. There is > really no need to make a copy in spi_imx_data. Instead, a reference > pointer works perfectly fine. > > Signed-off-by: Shawn Guo > Cc: Uwe Kleine-König > Cc: Sasch

Re: Device tree FSL description for Microblaze

2011-07-14 Thread Grant Likely
On Wed, May 25, 2011 at 01:27:15PM +0200, Michal Simek wrote: > Hi, > > I would like to check with you proper device tree FSL description > for Microblaze (PPC can use FSL through IP connected to the bus). > > Microblaze supports FSL buses to connect coprocessors or hw > accelerators directly to

Re: [PATCH v2 1/5] dt: add of_alias_scan and of_alias_get_id

2011-07-14 Thread Grant Likely
On Sat, Jun 25, 2011 at 02:04:32AM +0800, Shawn Guo wrote: > The patch adds function of_alias_scan to populate a global lookup > table with the properties of 'aliases' node and function > of_alias_get_id for drivers to find alias id from the lookup table. > > Signed-off-by: Shawn Guo > Cc: Grant

Re: [PATCH] i2c: Tegra: Add of_match_table

2011-07-14 Thread Grant Likely
On Thursday, July 14, 2011, Stephen Warren wrote: > From: John Bonesio > > This patch was intended to be part of 7ca2d1a105a239e300b937e9c41a10a4bd08f569 > "i2c: Tegra: Add DeviceTree support". However, an early version of that patch, > which was missing a chunk, was applied to next-i2c. This cha

[PATCH] i2c: Tegra: Add of_match_table

2011-07-14 Thread Stephen Warren
From: John Bonesio This patch was intended to be part of 7ca2d1a105a239e300b937e9c41a10a4bd08f569 "i2c: Tegra: Add DeviceTree support". However, an early version of that patch, which was missing a chunk, was applied to next-i2c. This change is that missing chunk. Signed-off-by: John Bonesio Sig

RE: [PATCH] i2c: tegra: Use engineering names in DT compatible property

2011-07-14 Thread Stephen Warren
Grant Likely wrote at Wednesday, July 13, 2011 5:34 PM: > On Thu, Jul 14, 2011 at 2:59 AM, Stephen Warren wrote: ... > > I don't believe anyone ever sent a patch to Ben to add tegra_i2c_of_match > > to the driver; the OF support patch didn't include that part of the code. > > As such, Ben can't ye

Re: [PATCH v2] mtd: dataflash: add device tree probe support

2011-07-14 Thread Dmitry Eremin-Solenikov
On Thu, Jul 14, 2011 at 11:52:37PM +0800, Shawn Guo wrote: > It adds device tree probe support for mtd_dataflash driver. > > Signed-off-by: Shawn Guo > Cc: Grant Likely > Cc: David Woodhouse > Cc: Artem Bityutskiy > --- > Changes since v1: > * Add "atmel,at45xxx" into the match table > * Add

Re: [PATCH v2] mtd: dataflash: add device tree probe support

2011-07-14 Thread Mike Frysinger
shouldnt there be #ifdef's around this ? not everyone supports devicetrees. -mike ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

Unbalanced of_node_put{get} on initial 'from' node?

2011-07-14 Thread Shawn Guo
Hi Grant, I'm running into some problem when using of_find_matching_node(). Here is the pseudo code. void foo(struct platform_device *pdev) { struct device_node *from = pdev->dev.parent->of_node; struct device_node *np; np = of_find_matching_node(from, matches); /* matche

[PATCH 1/2] dmaengine: imx-sdma: use platform_device_id to identify sdma version

2011-07-14 Thread Shawn Guo
It might be not good to use software defined version to identify sdma device type, when hardware does not define such version. Instead, soc name is stable enough to define the device type. The patch uses platform_device_id rather than version number passed by platform data to identify sdma device

[PATCH 2/2] dmaengine: imx-sdma: add device tree probe support

2011-07-14 Thread Shawn Guo
It adds device tree probe support for imx-sdma driver. Signed-off-by: Shawn Guo Cc: Grant Likely Cc: Vinod Koul Cc: Sascha Hauer --- .../devicetree/bindings/dma/fsl-imx-sdma.txt | 55 drivers/dma/imx-sdma.c | 29 +- 2 files ch

[PATCH 0/2] Add device tree probe for imx-sdma driver

2011-07-14 Thread Shawn Guo
The first patch remove the use of software defined sdma version, and instead uses platform_device_id to handle the sdma differences from one soc to another. And the second one adds the actual device tree probe support. Shawn Guo (2): dmaengine: imx-sdma: use platform_device_id to identify s

[PATCH 2/2] i2c/imx: add device tree probe support

2011-07-14 Thread Shawn Guo
It adds device tree probe support for i2c-imx driver. Signed-off-by: Shawn Guo Cc: Grant Likely Cc: Darius Augulis Cc: Ben Dooks --- .../devicetree/bindings/i2c/fsl-imx-i2c.txt| 25 drivers/i2c/busses/i2c-imx.c | 25 +++ 2

[PATCH 1/2] i2c/imx: remove init/exit hooks from platform data

2011-07-14 Thread Shawn Guo
The init/exit hooks in platform data are being used nowhere, so can be removed. Signed-off-by: Shawn Guo Cc: Darius Augulis Cc: Ben Dooks --- arch/arm/plat-mxc/include/mach/i2c.h |4 drivers/i2c/busses/i2c-imx.c | 21 +++-- 2 files changed, 3 insertions(+), 2

[PATCH 0/2] Add device tree probe for i2c-imx driver

2011-07-14 Thread Shawn Guo
The first patch removes unused init/exit hooks from platform data, and the second one actually adds the actual device tree probe support. Shawn Guo (2): i2c/imx: remove init/exit hooks from platform data i2c/imx: add device tree probe support .../devicetree/bindings/i2c/fsl-imx-i2c.t

[PATCH v2] mtd: dataflash: add device tree probe support

2011-07-14 Thread Shawn Guo
It adds device tree probe support for mtd_dataflash driver. Signed-off-by: Shawn Guo Cc: Grant Likely Cc: David Woodhouse Cc: Artem Bityutskiy --- Changes since v1: * Add "atmel,at45xxx" into the match table * Add binding document .../devicetree/bindings/mtd/atmel-dataflash.txt| 14 +

[PATCH] omap2+: Use Kconfig symbol in Makefile instead of obj-y

2011-07-14 Thread Tony Lindgren
As noted by Grant Likely , omap2+ Makefile unnecessarily repeats entries for common device init code instead of using Kconfig symbol. Remove references to hsmmc.o and board-flash.o. Also omap_phy_internal.o references can be removed once it has some Kconfig symbol to use. Signed-off-by: Tony Lin