Re: [PATCHv2 2/3] picoxcell: add the DTS for pc3x2 and pc3x3 devices

2011-09-01 Thread Barry Song
Hi Jamies, +       clocks { +               #address-cells = 1; +               #size-cells = 1; +               ranges; + +               clkgate: clkgate@800a0048 { +                       #address-cells = 1; +                       #size-cells = 0; +                       reg =

Re: [PATCHv2 3/3] picoxcell: add the DTS for the PC7302 board

2011-09-01 Thread Barry Song
2011/8/24 Jamie Iles ja...@jamieiles.com: The PC7302 board can be populated with either a PC3X2 or PC3X3 device. Add DTS files for both variants of the PC7302. Signed-off-by: Jamie Iles ja...@jamieiles.com ---  arch/arm/boot/dts/picoxcell-pc7302-pc3x2.dts |   87  

[PATCH v2 1/6] DMA: PL330: move filter function into driver

2011-09-01 Thread Thomas Abraham
The dma channel selection filter function is moved from plat-samsung into the pl330 driver. In additon to that, a check is added in the filter function to ensure that the channel on which the filter has been invoked is pl330 channel instance (and avoid any incorrect access of chan-private in a

[PATCH v2 2/6] DMA: PL330: Infer transfer direction from transfer request instead of platform data

2011-09-01 Thread Thomas Abraham
The transfer direction for a channel can be inferred from the transfer request and the need for specifying transfer direction in platfrom data can be eliminated. So the structure definition 'struct dma_pl330_peri' is no longer required. The channel's private data is set to point to a channel id

[PATCH v2 4/6] DMA: PL330: Add device tree support

2011-09-01 Thread Thomas Abraham
For PL330 dma controllers instantiated from device tree, the channel lookup is based on phandle of the dma controller and dma request id specified by the client node. During probe, the private data of each channel of the controller is set to point to the device node of the dma controller. The

[PATCH v2 3/6] ARM: EXYNOS4: Modify platform data for pl330 driver

2011-09-01 Thread Thomas Abraham
With the 'struct dma_pl330_peri' removed, the platfrom data for dma driver can be simplified to a simple list of peripheral request ids. Cc: Jassi Brar jassisinghb...@gmail.com Cc: Boojin Kim boojin@samsung.com Signed-off-by: Thomas Abraham thomas.abra...@linaro.org ---

[PATCH v2 5/6] ARM: SAMSUNG: Add device tree support for pl330 dma engine wrappers

2011-09-01 Thread Thomas Abraham
A new dma request id 'DMACH_DT_PROP' is introduced for client drivers requesting a dma channel. This request indicates that a device tree node property represting the dma channel is available in 'struct samsung_dma_info'. The dma channel request wrapper uses the node property value as the value

[PATCH v2 6/6] ARM: EXYNOS4: Limit usage of pl330 device instance to non-dt build

2011-09-01 Thread Thomas Abraham
The pl330 device instances and associated platform data is required only for non-device-tree builds. With device tree, all of this information is obtained from the device tree. Signed-off-by: Thomas Abraham thomas.abra...@linaro.org --- arch/arm/mach-exynos4/Kconfig |7 +++

Re: [PATCH v3 10/13] of: add a generic pinmux helper

2011-09-01 Thread Linus Walleij
On Mon, Aug 29, 2011 at 11:46 PM, Stephen Warren swar...@nvidia.com wrote: +EXPORT_SYMBOL_GPL(of_pinmux_parse); Renamed of_pinctrl_parse I'm happier with it. Well, it's not just that; the struct contains the function field to select for each pingroup, so it's not just pinctrl either. OK

Re: [PATCH v2 4/6] DMA: PL330: Add device tree support

2011-09-01 Thread Rob Herring
On 09/01/2011 04:04 AM, Thomas Abraham wrote: For PL330 dma controllers instantiated from device tree, the channel lookup is based on phandle of the dma controller and dma request id specified by the client node. During probe, the private data of each channel of the controller is set to point

[PATCH] gpio: exynos4: Add device tree support

2011-09-01 Thread Thomas Abraham
As gpio chips get registered, a device tree node which represents the gpio chip is searched and attached to it. A translate function is also provided to convert the gpio specifier into actual platform settings for pin function selection, pull up/down and drive strength settings. Signed-off-by:

[PATCH 00/13] OMAP4: Add DT support for i2c and twl6030

2011-09-01 Thread Benoit Cousson
Hi Grant, Tony, This is a rework of the original series done by Manju: http://www.spinics.net/lists/linux-omap/msg55827.html It fixes the main issue of the previous series that was not booting at all due to the lack of twl support. That fix is mandatory to allow further work on the regulators DT

[PATCH 01/13] irq: Add stub for none DT build in irqdomain.h

2011-09-01 Thread Benoit Cousson
Add an empty funtion to allow building a file without adding some #ifdef CONFIG_OF around of APIs. Signed-off-by: Benoit Cousson b-cous...@ti.com Grant Likely grant.lik...@secretlab.ca --- include/linux/irqdomain.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH 02/13] i2c: OMAP: Add DT support for i2c controller

2011-09-01 Thread Benoit Cousson
From: G, Manjunath Kondaiah manj...@ti.com Add initial DT support to retrieve the frequency using a DT attribute instead of the pdata pointer if CONFIG_OF is enabled. These changes will not affect non DT builds and existing functionality is retained. Signed-off-by: G, Manjunath Kondaiah

[PATCH 03/13] documentation/dt: Add OMAP i2c bindings documentation

2011-09-01 Thread Benoit Cousson
From: G, Manjunath Kondaiah manj...@ti.com Add documentation for using omap i2c controller with device tree support enabled. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com [b-cous...@ti.com: Update the documentaion with hwmods binding] Signed-off-by: Benoit Cousson b-cous...@ti.com ---

[PATCH 05/13] documentation/dt: Add TWL4030 and TWL6030 bindings

2011-09-01 Thread Benoit Cousson
Add documentation for the Texas Instruments TWL Integrated Chip. Cc: Randy Dunlap rdun...@xenotime.net Signed-off-by: Benoit Cousson b-cous...@ti.com --- .../devicetree/bindings/mfd/twl-familly.txt| 47 1 files changed, 47 insertions(+), 0 deletions(-) create mode

[PATCH 04/13] mfd: twl-core: Add initial DT support for twl4030/twl6030

2011-09-01 Thread Benoit Cousson
Add initial device-tree support for twl familly chips. The current version is missing the regulator entries due to the lack of DT regulator bindings for the moment. Only the simple sub-modules that do not depend on platform_data information can be initialized properly. Signed-off-by: Benoit

[PATCH 06/13] arm/dts: OMAP4: Add i2c controller nodes

2011-09-01 Thread Benoit Cousson
Add i2c controllers nodes into the main ocp bus. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: G, Manjunath Kondaiah manj...@ti.com --- arch/arm/boot/dts/omap4.dtsi | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git

[PATCH 07/13] arm/dts: omap4-sdp: Set clock freq for i2c controllers

2011-09-01 Thread Benoit Cousson
Update DTS file with required clock frequencies for the i2c client devices existing on sdp4430. Signed-off-by: Benoit Cousson b-cous...@ti.com --- arch/arm/boot/dts/omap4-sdp.dts | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git

[PATCH 08/13] arm/dts: omap4-panda: Set clock freq for i2c controllers

2011-09-01 Thread Benoit Cousson
From: G, Manjunath Kondaiah manj...@ti.com Update pandaboard dts file with required clock frequencies for the i2c client devices existing on pandaboard. Signed-off-by: G, Manjunath Kondaiah manj...@ti.com [b-cous...@ti.com: Fix the wrong use of reference and wrong clock value] Signed-off-by:

[PATCH 09/13] arm/dts: omap4-sdp: Add twl6030 node

2011-09-01 Thread Benoit Cousson
Add the twl6030 node inside the i2c1 controller node. Add the RTC submodule inside the twl node. This is just the minimal support needed to boot OMAP4 boards without any crash. The support for all the features included in this MFD will be added later. Signed-off-by: Benoit Cousson

[PATCH 10/13] arm/dts: omap4-panda: Add twl6030 node

2011-09-01 Thread Benoit Cousson
Add the twl6030 node in i2c1 controller. This is just the minimal support needed to boot OMAP4 boards without any crash. The support for all the features included in this MFD will be added later. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca ---

[PATCH 12/13] arm/dts: omap4-sdp: Add i2c3 i2c4 devices

2011-09-01 Thread Benoit Cousson
Signed-off-by: Benoit Cousson b-cous...@ti.com --- arch/arm/boot/dts/omap4-sdp.dts | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap4-sdp.dts b/arch/arm/boot/dts/omap4-sdp.dts index d03f2e7..14faf92 100644 ---

[PATCH 13/13] arm/dts: omap4-panda: Add EEPROM entry in i2c3

2011-09-01 Thread Benoit Cousson
Add a generic i2c EEPROM entry. Signed-off-by: Benoit Cousson b-cous...@ti.com --- arch/arm/boot/dts/omap4-panda.dts |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap4-panda.dts b/arch/arm/boot/dts/omap4-panda.dts index 5c1c2a7..0a83e3f

[PATCH 0/7] OMAP3: Add basic DT support + i2c + twl

2011-09-01 Thread Benoit Cousson
Hi Grant, Tony, This is second part of the rework of the original series done by Manju: http://www.spinics.net/lists/linux-omap/msg55827.html It introduces the OMAP3 DT support incrementaly like it was done for OMAP4. Patches are based on for_3.2/5_omap_dt_i2c_twl + devicetree/test and are

[PATCH 1/7] arm/dts: Add initial device-tree support for OMAP3 SoC

2011-09-01 Thread Benoit Cousson
Add initial OMAP3 soc file with empty ocp bus. Based on initial patch from Manju: http://www.spinics.net/lists/linux-omap/msg55830.html Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Grant Likely grant.lik...@secretlab.ca Cc: G, Manjunath Kondaiah manj...@ti.com ---

[PATCH 2/7] arm/dts: OMAP3: Add mpu and iva nodes

2011-09-01 Thread Benoit Cousson
Add nodes for devices used by PM code (mpu, iva). In the case of OMAP3, the dsp was included inside the IVA2.2. Add an empty cpus node as well as recommended in the DT spec. Remove mpu and iva devices init if CONFIG_OF is defined. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: Grant Likely

[PATCH 3/7] arm/dts: OMAP3: Add i2c controllers nodes

2011-09-01 Thread Benoit Cousson
Add i2c controllers nodes into the main ocp bus. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: G, Manjunath Kondaiah manj...@ti.com --- arch/arm/boot/dts/omap3.dtsi | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git

[PATCH 4/7] arm/dts: omap3-beagle: Include the generic omap3.dtsi

2011-09-01 Thread Benoit Cousson
Update OMAP3 beagleboard DTS file to use the omap3.dtsi SoC file. Add a default bootargs line to allow a boot from RAMDISK Add memory node information. Signed-off-by: Benoit Cousson b-cous...@ti.com Cc: G, Manjunath Kondaiah manj...@ti.com --- arch/arm/boot/dts/omap3-beagle.dts | 26

[PATCH 6/7] OMAP3: board-dt: Add generic board file for DT support

2011-09-01 Thread Benoit Cousson
Create an OMAP3 generic board to start the DT migration. This file is doing the minimal initialization needed to boot properly on a RAMDISK filesystem. As soon as the OMAP3 specifics will be removed, that board will be converted to an even more generic board-dt.c that will support every OMAP2+

[PATCH 7/7] OMAP3: beagleboard: Remove DT support from regular board

2011-09-01 Thread Benoit Cousson
In order to avoid conflict with the new board-omap3-dt.c file, remove the .dt_compat entry from the beagle regular board file. Any DT work for OMAP3 will have to be done on the generic DT board file to avoid breaking the legacy board support until DT migration is done. Based on orginal patch

Re: [RFC/PATCH v2 08/13] dt: omap: i2c: add dt support for i2c1 controller

2011-09-01 Thread Cousson, Benoit
Hi Manju, On 8/23/2011 5:46 PM, G, Manjunath Kondaiah wrote: Hi Grant, [...] This function calls of_i2c_register_devices which attaches all the required parameters reg, irq, archdata etc into i2c adapter. But it will not attach platform_data which results empty pdata pointer in i2c child

Re: [PATCH 2/7] arm/dts: OMAP3: Add mpu and iva nodes

2011-09-01 Thread Arnd Bergmann
On Thursday 01 September 2011 19:25:07 Benoit Cousson wrote: /* +* XXX: The cpus node is mandatory, but since the CPUs are as well part +* of the mpu subsystem below, it is not clear where the information +* should be. Maybe here with a phandle inside the

Re: [PATCH 04/13] mfd: twl-core: Add initial DT support for twl4030/twl6030

2011-09-01 Thread Arnd Bergmann
On Thursday 01 September 2011 19:21:20 Benoit Cousson wrote: +#ifdef CONFIG_OF +#define MODALIAS_SIZE 32 + +static int add_of_children(struct i2c_client *client, unsigned long features) +{ + u32 reg; + struct device *child, *dev = client-dev; + struct device_node *node,

Re: [PATCH 00/13] OMAP4: Add DT support for i2c and twl6030

2011-09-01 Thread Arnd Bergmann
On Thursday 01 September 2011 19:21:16 Benoit Cousson wrote: This is a rework of the original series done by Manju: http://www.spinics.net/lists/linux-omap/msg55827.html It fixes the main issue of the previous series that was not booting at all due to the lack of twl support. That fix is

[PATCH 4/4] powerpc/85xx: Adding DCSR node to dtsi device trees

2011-09-01 Thread Kumar Gala
From: Stephen George stephen.geo...@freescale.com Adding new device tree binding file for the DCSR node. Modifying device tree dtsi files to add DCSR node for P2041, P3041, P3060, P4080, P5020. Signed-off-by: Stephen George stephen.geo...@freescale.com Signed-off-by: Kumar Gala

[PATCH 1/2] power: bq20z75: devicetree init support

2011-09-01 Thread Rhyland Klein
Adding support to generate platform data when kernel is configured through device tree. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/power/bq20z75.c | 73 +++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git

[PATCH 2/2] power: bq20z75: Add Device Tree Binding

2011-09-01 Thread Rhyland Klein
Adding the binding for the TI bq20z75 fuel gadge and the bq20z75 driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../bindings/power_supply/ti_bq20z75.txt | 25 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644

Re: [RFC/PATCH v2 08/13] dt: omap: i2c: add dt support for i2c1 controller

2011-09-01 Thread G, Manjunath Kondaiah
Hi Benoit, On Thu, Sep 01, 2011 at 07:34:11PM +0200, Cousson, Benoit wrote: Hi Manju, On 8/23/2011 5:46 PM, G, Manjunath Kondaiah wrote: Hi Grant, [...] This function calls of_i2c_register_devices which attaches all the required parameters reg, irq, archdata etc into i2c adapter. But