Re: [PATCH v3 05/10] resource: add PCI configuration space support

2012-08-14 Thread Thierry Reding
On Tue, Aug 14, 2012 at 02:44:24PM -0700, Bjorn Helgaas wrote: > On Tue, Aug 14, 2012 at 11:01 AM, Thierry Reding > wrote: > > On Tue, Aug 14, 2012 at 10:38:08AM -0700, Bjorn Helgaas wrote: > >> On Mon, Aug 13, 2012 at 10:55 PM, Thierry Reding > >> wrote: > >> > On Mon, Aug 13, 2012 at 10:00:45PM

Re: [PATCH v3 10/10] ARM: tegra: pcie: Add device tree support

2012-08-14 Thread Thierry Reding
On Tue, Aug 14, 2012 at 04:50:26PM -0700, Bjorn Helgaas wrote: > On Tue, Aug 14, 2012 at 1:12 PM, Thierry Reding > wrote: > > On Thu, Jul 26, 2012 at 09:55:12PM +0200, Thierry Reding wrote: > >> diff --git a/arch/arm/boot/dts/tegra20.dtsi > >> b/arch/arm/boot/dts/tegra20.dtsi > >> index a094c97..

Re: [PATCH] pinctrl: imx5: start numbering pad from 0

2012-08-14 Thread Uwe Kleine-König
Hello, (Cc += devicetree-discuss@lists.ozlabs.org) On Wed, Aug 15, 2012 at 11:59:18AM +0800, Dong Aisheng wrote: > On 15 August 2012 03:37, Matt Sealey wrote: > > On Tue, Aug 14, 2012 at 2:20 AM, Dong Aisheng > > wrote: > >> On 13 August 2012 23:12, Matt Sealey wrote: > >>> I have a minor nit

Re: [RFC:PATCH 3.6.0-rc1] dtc: Add -P option to dtc for Pre-Processing.

2012-08-14 Thread Tabi Timur-B04825
On Tue, Aug 14, 2012 at 8:11 PM, David Gibson wrote: > On Mon, Aug 13, 2012 at 09:01:53AM +0100, Srinivas KANDAGATLA wrote: >> From: Srinivas Kandagatla >> >> This patch add pre-processing capablity to dtc based on status property. >> Now the dtc has additional option -P to enable Pre-processing

Re: [RFC:PATCH 3.6.0-rc1] dtc: Add -P option to dtc for Pre-Processing.

2012-08-14 Thread David Gibson
On Mon, Aug 13, 2012 at 09:01:53AM +0100, Srinivas KANDAGATLA wrote: > From: Srinivas Kandagatla > > This patch add pre-processing capablity to dtc based on status property. > Now the dtc has additional option -P to enable Pre-processing based on > status property. > > The SOCS have lot of devic

Re: [PATCH v3 00/10] ARM: tegra: Add PCIe device tree support

2012-08-14 Thread Bjorn Helgaas
On Tue, Aug 14, 2012 at 3:58 PM, Stephen Warren wrote: > On 08/14/2012 03:55 PM, Bjorn Helgaas wrote: >> On Tue, Aug 14, 2012 at 12:58 PM, Thierry Reding >> wrote: >>> On Tue, Aug 14, 2012 at 01:39:23PM -0600, Stephen Warren wrote: On 08/13/2012 05:18 PM, Bjorn Helgaas wrote: > On Mon, A

Re: [PATCH v3 00/10] ARM: tegra: Add PCIe device tree support

2012-08-14 Thread Stephen Warren
On 08/14/2012 04:58 PM, Stephen Warren wrote: > On 08/14/2012 03:55 PM, Bjorn Helgaas wrote: >> On Tue, Aug 14, 2012 at 12:58 PM, Thierry Reding >> wrote: >>> On Tue, Aug 14, 2012 at 01:39:23PM -0600, Stephen Warren wrote: On 08/13/2012 05:18 PM, Bjorn Helgaas wrote: > On Mon, Aug 13, 201

Re: [PATCH v3 10/10] ARM: tegra: pcie: Add device tree support

2012-08-14 Thread Bjorn Helgaas
On Tue, Aug 14, 2012 at 1:12 PM, Thierry Reding wrote: > On Thu, Jul 26, 2012 at 09:55:12PM +0200, Thierry Reding wrote: >> diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi >> index a094c97..c886dff 100644 >> --- a/arch/arm/boot/dts/tegra20.dtsi >> +++ b/arch/arm/boot/d

[PATCH 2/2] [v2] netdev/phy: skip disabled mdio-mux nodes

2012-08-14 Thread Timur Tabi
The mdio-mux driver scans all child mdio nodes, without regard to whether the node is actually used. Some device trees include all possible mdio-mux nodes and rely on the boot loader to disable those that are not present, based on some run-time configuration. Those nodes need to be skipped. Sign

[PATCH 1/2] dt: introduce for_each_available_child_of_node, of_get_next_available_child

2012-08-14 Thread Timur Tabi
Macro for_each_child_of_node() makes it easy to iterate over all of the children for a given device tree node, including those nodes that are marked as unavailable (i.e. status = "disabled"). Introduce for_each_available_child_of_node(), which is like for_each_child_of_node(), but it automatically

Re: [PATCH v3 00/10] ARM: tegra: Add PCIe device tree support

2012-08-14 Thread Stephen Warren
On 08/14/2012 03:55 PM, Bjorn Helgaas wrote: > On Tue, Aug 14, 2012 at 12:58 PM, Thierry Reding > wrote: >> On Tue, Aug 14, 2012 at 01:39:23PM -0600, Stephen Warren wrote: >>> On 08/13/2012 05:18 PM, Bjorn Helgaas wrote: On Mon, Aug 13, 2012 at 11:47 AM, Stephen Warren wrote: >>> ... >

Re: [PATCH v3 00/10] ARM: tegra: Add PCIe device tree support

2012-08-14 Thread Bjorn Helgaas
On Tue, Aug 14, 2012 at 12:58 PM, Thierry Reding wrote: > On Tue, Aug 14, 2012 at 01:39:23PM -0600, Stephen Warren wrote: >> On 08/13/2012 05:18 PM, Bjorn Helgaas wrote: >> > On Mon, Aug 13, 2012 at 11:47 AM, Stephen Warren >> > wrote: >> ... >> >> whereas for a device tree boot: >> >> >> >> (sa

Re: [PATCH v3 05/10] resource: add PCI configuration space support

2012-08-14 Thread Bjorn Helgaas
On Tue, Aug 14, 2012 at 11:01 AM, Thierry Reding wrote: > On Tue, Aug 14, 2012 at 10:38:08AM -0700, Bjorn Helgaas wrote: >> On Mon, Aug 13, 2012 at 10:55 PM, Thierry Reding >> wrote: >> > On Mon, Aug 13, 2012 at 10:00:45PM -0700, Bjorn Helgaas wrote: >> >> On Thu, Jul 26, 2012 at 12:55 PM, Thierr

Re: [PATCH v2 1/2] powerpc/mpic: Add Open-PIC global timer document

2012-08-14 Thread Scott Wood
On 08/13/2012 09:40 PM, Wang Dongsheng-B40534 wrote: +Example 2: > + > + timer: timer@010f0 { > + compatible = "open-pic,global-timer"; > + device_type = "open-pic"; > + reg = <0x010f0 4 0x01100 0x100>; > + interrupts = <0 0 3 0 > +

Re: [PATCH v3 10/10] ARM: tegra: pcie: Add device tree support

2012-08-14 Thread Thierry Reding
On Thu, Jul 26, 2012 at 09:55:12PM +0200, Thierry Reding wrote: > diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi > index a094c97..c886dff 100644 > --- a/arch/arm/boot/dts/tegra20.dtsi > +++ b/arch/arm/boot/dts/tegra20.dtsi > @@ -199,6 +199,68 @@ > #size-c

Re: [PATCH v3 00/10] ARM: tegra: Add PCIe device tree support

2012-08-14 Thread Thierry Reding
On Tue, Aug 14, 2012 at 01:39:23PM -0600, Stephen Warren wrote: > On 08/13/2012 05:18 PM, Bjorn Helgaas wrote: > > On Mon, Aug 13, 2012 at 11:47 AM, Stephen Warren > > wrote: > ... > >> whereas for a device tree boot: > >> > >> (same): > >>> [2.112217] pci :01:00.0: reg 10: [io 0x-0x

Re: [PATCH v3 00/10] ARM: tegra: Add PCIe device tree support

2012-08-14 Thread Stephen Warren
On 08/13/2012 05:18 PM, Bjorn Helgaas wrote: > On Mon, Aug 13, 2012 at 11:47 AM, Stephen Warren > wrote: ... >> whereas for a device tree boot: >> >> (same): >>> [2.112217] pci :01:00.0: reg 10: [io 0x-0x00ff] >>> [2.117635] pci :01:00.0: reg 18: [mem 0x-0x0fff 64

Re: [PATCH v3 05/10] resource: add PCI configuration space support

2012-08-14 Thread Thierry Reding
On Tue, Aug 14, 2012 at 10:38:08AM -0700, Bjorn Helgaas wrote: > On Mon, Aug 13, 2012 at 10:55 PM, Thierry Reding > wrote: > > On Mon, Aug 13, 2012 at 10:00:45PM -0700, Bjorn Helgaas wrote: > >> On Thu, Jul 26, 2012 at 12:55 PM, Thierry Reding > >> wrote: > >> > This commit adds a new flag that a

Re: [PATCH v3 05/10] resource: add PCI configuration space support

2012-08-14 Thread Bjorn Helgaas
On Mon, Aug 13, 2012 at 10:55 PM, Thierry Reding wrote: > On Mon, Aug 13, 2012 at 10:00:45PM -0700, Bjorn Helgaas wrote: >> On Thu, Jul 26, 2012 at 12:55 PM, Thierry Reding >> wrote: >> > This commit adds a new flag that allows marking resources as PCI >> > configuration space. >> > >> > Signed-o

[PATCH v2 14/14] ASoC: twl4030: Support for DT booted kernel

2012-08-14 Thread Peter Ujfalusi
When the kernel has been booted with DT blob the platform data is NULL for the driver. We need to construct the pdata based on the DT information for runtime use. Signed-off-by: Peter Ujfalusi --- sound/soc/codecs/twl4030.c | 57 +-- 1 files changed, 49

[PATCH v2 12/14] ASoC: twl4030: Convert to use devm_kzalloc

2012-08-14 Thread Peter Ujfalusi
Allocate the private data with devm_kzalloc. Signed-off-by: Peter Ujfalusi --- sound/soc/codecs/twl4030.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index 27ccea4..413e698 100644 --- a/sound/soc/codecs/twl40

[PATCH v2 13/14] ASoC: twl4030: Add pointer to pdata within the private data

2012-08-14 Thread Peter Ujfalusi
Access the pdata via a pointer within the twl4030_priv structure. In preparation for DeviceTree support. Signed-off-by: Peter Ujfalusi --- sound/soc/codecs/twl4030.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codec

[PATCH v2 11/14] ASoC/MFD: twl4030: Remove set_hs_extmute callback from platform data

2012-08-14 Thread Peter Ujfalusi
We no longer have users for the set_hs_extmute callback which has been replaced by hs_extmute_gpio so the codec driver can handle the external mute if it is needed by the board. Signed-off-by: Peter Ujfalusi --- include/linux/i2c/twl.h|2 -- sound/soc/codecs/twl4030.c |6 -- 2 fi

[PATCH v2 10/14] ARM: OMAP/ASoC: Zoom2: Let the codec to handle the hs_extmute GPIO

2012-08-14 Thread Peter Ujfalusi
Remove the use of set_hs_extmute callback and let the codec driver to handle the extmute GPIO. Signed-off-by: Peter Ujfalusi --- arch/arm/mach-omap2/board-zoom-peripherals.c |9 ++--- arch/arm/mach-omap2/include/mach/board-zoom.h |2 -- sound/soc/omap/zoom2.c

[PATCH v2 06/14] dt: Add empty of_find_node_by_name() function

2012-08-14 Thread Peter Ujfalusi
This commit adds an empty of_find_node_by_name() function for !CONFIG_OF builds. Signed-off-by: Peter Ujfalusi --- include/linux/of.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/of.h b/include/linux/of.h index 5919ee3..c90e59a 100644 --- a/include/

[PATCH v2 09/14] ASoC: twl4030: Move hs_extmute GPIO handling to driver

2012-08-14 Thread Peter Ujfalusi
The external mute (if it is in use) is handled by a GPIO line. Prepare to remove the set_hs_extmute callback and replace it with: hs_extmute_gpio: the GPIO number to use for external mute When the users of set_hs_extmute has been converted the callback can be removed. Signed-off-by: Peter Ujfalus

[PATCH v2 08/14] Input: twl4030-vibra: Support for DT booted kernel

2012-08-14 Thread Peter Ujfalusi
Add support when the kernel has been booted with DT blob. In this case the pdata is NULL, we need to reach up to the core node and check if the codec part has been enabled to determine if we need to coexist with the codec or not. Signed-off-by: Peter Ujfalusi --- drivers/input/misc/twl4030-vibra

[PATCH v2 07/14] MFD: twl4030-audio: Add DT support

2012-08-14 Thread Peter Ujfalusi
Support for loading the twl4030 audio module via devicetree. Sub devices for codec and vibra will be created as mfd devices once the core MFD driver is loaded when the kernel is booted with a DT blob. Signed-off-by: Peter Ujfalusi --- .../devicetree/bindings/mfd/twl4030-audio.txt | 46 +++

[PATCH v2 05/14] MFD: twl4030-audio: Get audio MCLK via twl-core API instead of pdata

2012-08-14 Thread Peter Ujfalusi
twl-core has API to get the boot time configured HFCLK rate which has the same rate as the audio MCLK. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl4030-audio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c

[PATCH v2 02/14] MFD: twl4030-audio: Convert to use devm_kzalloc

2012-08-14 Thread Peter Ujfalusi
Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl4030-audio.c | 15 ++- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/mfd/twl4030-audio.c b/drivers/mfd/twl4030-audio.c index ac04b4f..efa2d42 100644 --- a/drivers/mfd/twl4030-audio.c +++ b/drivers/mfd/twl4030-

[PATCH v2 04/14] MFD: twl-core: Add API to query the HFCLK rate

2012-08-14 Thread Peter Ujfalusi
CFG_BOOT register's HFCLK_FREQ field hold information about the used HFCLK frequency. Add possibility for users to get the configured rate based on this register. This register was configured during boot, without it the chip would not operate correctly, so we can trust on this information. Signed-

[PATCH v2 03/14] MFD: twl4030-audio: Rearange and clean-up the probe function

2012-08-14 Thread Peter Ujfalusi
To facilitate the device tree support the probe function need to be rearanged. Small cleanup in the APLL frequency selection part as well. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl4030-audio.c | 34 -- 1 files changed, 16 insertions(+), 18 deletions(-)

[PATCH v2 01/14] MFD: twl4030-audio: Clean up MODULE_* and platform_driver part

2012-08-14 Thread Peter Ujfalusi
Place the MODULE_* lines in the same block and add MODULE_DESCRIPTION. Rearange the platform_driver structure at the same time. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl4030-audio.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mfd/twl4030-audio.

[PATCH v2 00/14] MFD/ASoC/Input: twl4030-audio submodule DT support

2012-08-14 Thread Peter Ujfalusi
Hello, Changes since v1: - Get the MCLK frequencey from twl-core driver (via new API) - hs_extmute_disable_level parameter has been removed - empty of_find_node_by_name() in of.h for !CONFIG_OF builds Mark: the extmute GPIO handling (when it is used) remained in the codec driver for now. I can th

[PATCH 08/23] spi/atmel: add DT support

2012-08-14 Thread Richard Genoud
From: Jean-Christophe PLAGNIOL-VILLARD The atmel_spi use only gpio for chip select. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Cc: devicetree-discuss@lists.ozlabs.org Cc: spi-devel-gene...@lists.sourceforge.net --- .../devicetree/bindings/spi/spi_atmel.txt |6 + drivers/s

[PATCH 02/23] of_spi: add generic binding support to specify cs gpio

2012-08-14 Thread Richard Genoud
From: Jean-Christophe PLAGNIOL-VILLARD This will allow to use gpio for chip select with no modification in the driver binding When use the cs-gpios, the gpio number will be passed via the cs_gpio field and the number of chip select will automatically increased. Signed-off-by: Jean-Christophe PL

Re: DT GPIO numbering?

2012-08-14 Thread Johannes Stezenbach
On Tue, Aug 14, 2012 at 12:00:23PM +0200, Linus Walleij wrote: > On Fri, Aug 10, 2012 at 11:34 AM, Johannes Stezenbach wrote: > > > Actually I think the kernel internal GPIO numbers shouldn't be in the > > sysfs API, instead userspace should use the names. > > This is true, but we cannot remove

Re: [PATCHv2 0/4] Add device tree data for omap5

2012-08-14 Thread Benoit Cousson
Hi Sourav, On 08/13/2012 12:05 PM, Sourav Poddar wrote: > The following patch series add i2c support for omap5. > As well as enable I2C based devices like pressure and temperature > through device tree. Also add onchip keypad dts data. That series does not seems to apply on top of 3.6-rc1, what b

Re: [PATCHv2 2/4] arm/dts: omap5-evm: Add tmp102 sensor support

2012-08-14 Thread Benoit Cousson
Hi Felipe, On 08/14/2012 11:59 AM, Felipe Balbi wrote: > On Tue, Aug 14, 2012 at 11:56:45AM +0200, Benoit Cousson wrote: >> On 08/13/2012 12:05 PM, Sourav Poddar wrote: >>> Add tmp102 temperature sensor data in omap5 evm dts file. >>> >>> Tested on omap5430 evm with 3.5 custom kernel. >>> >>> Cc:

Re: [PATCHv2 2/4] arm/dts: omap5-evm: Add tmp102 sensor support

2012-08-14 Thread Felipe Balbi
On Tue, Aug 14, 2012 at 11:56:45AM +0200, Benoit Cousson wrote: > On 08/13/2012 12:05 PM, Sourav Poddar wrote: > > Add tmp102 temperature sensor data in omap5 evm dts file. > > > > Tested on omap5430 evm with 3.5 custom kernel. > > > > Cc: Benoit Cousson > > Cc: Felipe Balbi > > Cc: Santosh Shi

Re: DT GPIO numbering?

2012-08-14 Thread Linus Walleij
On Fri, Aug 10, 2012 at 11:34 AM, Johannes Stezenbach wrote: > Actually I think the kernel internal GPIO numbers shouldn't be in the > sysfs API, instead userspace should use the names. This is true, but we cannot remove these numbers because they are now in Documentation/ABI/testing/sysfs-gpio

Re: [PATCHv2 2/4] arm/dts: omap5-evm: Add tmp102 sensor support

2012-08-14 Thread Benoit Cousson
On 08/13/2012 12:05 PM, Sourav Poddar wrote: > Add tmp102 temperature sensor data in omap5 evm dts file. > > Tested on omap5430 evm with 3.5 custom kernel. > > Cc: Benoit Cousson > Cc: Felipe Balbi > Cc: Santosh Shilimkar > Acked-by: Felipe Balbi > Signed-off-by: Sourav Poddar > --- > arch/

Re: [PATCHv7] arm/dts: omap4-sdp: Add keypad data

2012-08-14 Thread Benoit Cousson
Hi Sourav On 08/14/2012 08:23 AM, Poddar, Sourav wrote: > Hi, > > On Fri, Jul 20, 2012 at 4:08 PM, Sourav Poddar wrote: >> Add keypad data node in omap4 device tree file. >> Also fill the device tree binding parameters >> with the required value in "omap4-sdp" dts file. >> >> Tested on omap4430

[PATCH v2 4/4] ASoC: Remove obsolete OMAP3 machine drivers

2012-08-14 Thread Peter Ujfalusi
The new omap-twl4030 handles the boards used the following drivers: igep0020, omap3beagle, omap3evm and overo. Remove these drivers since they are mostly identical and we already have drop in replacement for all of them. Note: Earlier patch added the needed code for the board files to retain the a

[PATCH v2 3/4] ARM: OMAP3: Switch to use the unified audio driver (omap-twl4030) for selected boards

2012-08-14 Thread Peter Ujfalusi
These boards have similar audio setup and they can all use the same driver for audio support if it is enabled in the kernel config. Signed-off-by: Peter Ujfalusi Cc: Igor Grinberg Acked-by: Tony Lindgren --- arch/arm/mach-omap2/board-cm-t35.c |1 + arch/arm/mach-omap2/board-devkit8000

[PATCH v2 2/4] ARM: OMAP: twl-common: Add helper function to register the omap-twl4030 audio driver

2012-08-14 Thread Peter Ujfalusi
Since several OMAP3 based boards will be using the unified simple audio driver it is better to not have duplicated code in the board files for this purpose. Board files can call omap_twl4030_audio_init(); to set up the needed device for the audio support. For example: omap_twl4030_audio_init("omap

[PATCH v2 1/4] ASoC: omap-twl4030: Simple machine driver for TI SoC with twl4030 codec

2012-08-14 Thread Peter Ujfalusi
Machine driver to handle simple devices using twl4030 as audio codec. The driver supports the following boards: - Beagleboard or Devkit8000 - Gumstix Overo or CompuLab CM-T35/CM-T3730 - IGEP v2 - OMAP3EVM All of these boards can be switched to use this driver since their setup is identical. Device

[PATCH v2 0/4] ASoC machine driver for simple SoC with twl4030

2012-08-14 Thread Peter Ujfalusi
Hello, Changes since v1: - Card name for cm-t35 is "cm-t3x" - Added Ack from Tony for the OMAP patch - Codec sysclock no longer needed by the machine driver The codec itself must know the mclk since it needs it for initial configuration and also in case only the vibra functionality is used.

Re: [PATCH 1/8] of/irq: Create stub for of_irq_find_parent when !CONFIG_OF

2012-08-14 Thread Linus Walleij
On Thu, Aug 9, 2012 at 5:53 PM, Lee Jones wrote: > of_irq_find_parent is a handy function to use outside the confines of > the Open Firmware subsystem. One such use-case is when the IRQ Domain > wishes to find an IRQ domain for a given device node. Currently it can > not take any notice of the 'i

RE: [PATCH] arm/dts: AM33XX: Set the default status of module to "disabled" state

2012-08-14 Thread Hiremath, Vaibhav
On Tue, Aug 14, 2012 at 12:25:54, AnilKumar, Chimata wrote: > Hi Vaibhav, > > On Mon, Aug 06, 2012 at 16:59:04, Hiremath, Vaibhav wrote: > > Ideally in common SoC dtsi file we should set all modules > > to "disabled" state and it should get enabled in respective > > EVM/Board dts file as per usage