[PATCH v2 4/4] input: keyboard: tegra: remove default key mapping

2013-01-04 Thread Laxman Dewangan
Tegra KBC driver have the default key mapping for 16x8 configuration. The key mapping can be provided through platform data or through DT and the mapping varies from platform to platform, hence this default mapping is not so useful. Remove the default mapping to reduce the code lines of the driver.

[PATCH v2] input: keyboard: tegra: add support for rows/cols configuration from dt

2013-01-04 Thread Laxman Dewangan
The NVIDIA's Tegra KBC has maximum 24 pins to make matrix keypad. Any pin can be configured as row or column. The maximum column pin can be 8 and maximum row pin can be 16. Remove the assumption that all first 16 pins will be used as row and remaining as columns and Add the property for configurin

[PATCH v2 2/4] input: keyboard: tegra: use devm_* for resource allocation

2013-01-04 Thread Laxman Dewangan
Use devm_* for memory, clock, input device allocation. This reduces code for freeing these resources. Signed-off-by: Laxman Dewangan --- Changes from V1: None drivers/input/keyboard/tegra-kbc.c | 93 +++- 1 files changed, 28 insertions(+), 65 deletions(-) diff

[PATCH v2 1/4] input: keyboard: tegra: fix build warning

2013-01-04 Thread Laxman Dewangan
Fix the following build warning when building driver with CONFIG_PM_SLEEP not selected. tegra-kbc.c:360:13: warning: 'tegra_kbc_set_keypress_interrupt' defined but not used [-Wunused-function] Signed-off-by: Laxman Dewangan --- Changes form V1: - none drivers/input/keyboard/tegra-kbc.c | 24

[PATCH V2 0/4] input: keyboard: tegra: cleanups and DT supports

2013-01-04 Thread Laxman Dewangan
This patch series: - fix build warning, - use devm_* for allocation, - make column/rows configuration through DT and - remove the rarely used key mapping table. Changes from V1: - renames the rows and pins property array. - nit cleanups. Laxman Dewangan (4): input: keyboard: tegra: fix bu

Re: [PATCH 4/4] input: keyboard: tegra: remove default key mapping

2013-01-04 Thread Laxman Dewangan
On Saturday 05 January 2013 01:22 AM, Stephen Warren wrote: On 01/04/2013 04:02 AM, Laxman Dewangan wrote: Tegra KBC driver have the default key mapping for 16x8 configuration. The key mapping can be provided through platform data or through DT and the mapping varies from platform to platform, h

Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-01-04 Thread Joel A Fernandes
Hi Richard, On Fri, Jan 4, 2013 at 9:35 PM, Richard Cochran wrote: > On Fri, Jan 04, 2013 at 09:31:04PM +0200, Pantelis Antoniou wrote: >> The following patchset introduces Device Tree overlays, a method >> of dynamically altering the kernel's live Device Tree. > > It would be nice to know the mo

Re: [PATCH 0/6] Introducing Device Tree Overlays

2013-01-04 Thread Richard Cochran
On Fri, Jan 04, 2013 at 09:31:04PM +0200, Pantelis Antoniou wrote: > The following patchset introduces Device Tree overlays, a method > of dynamically altering the kernel's live Device Tree. It would be nice to know the motivation for this code. What is the use case? What problem or issue is bein

Re: fdtdump: properly handle multi-string properties

2013-01-04 Thread David Gibson
On Fri, Jan 04, 2013 at 09:12:46PM +0200, Pantelis Antoniou wrote: > Device tree can store multiple strings in a single property. > We didn't handle that case properly. > > Signed-off-by: Pantelis Antoniou Acked-by: David Gibson -- David Gibson| I'll have my music baroque,

Re: [PATCH 4/4] input: keyboard: tegra: remove default key mapping

2013-01-04 Thread Stephen Warren
On 01/04/2013 04:02 AM, Laxman Dewangan wrote: > Tegra KBC driver have the default key mapping for 16x8 configuration. > The key mapping can be provided through platform data or through DT > and the mapping varies from platform to platform, hence this default > mapping is not so useful. Remove the

Re: [PATCH 3/4] input: keyboard: tegra: add support for rows/cols configuration from dt

2013-01-04 Thread Stephen Warren
On 01/04/2013 04:02 AM, Laxman Dewangan wrote: > The NVIDIA's Tegra KBC has maximum 24 pins to make matrix keypad. > Any pin can be configured as row or column. The maximum column pin > can be 8 and maximum row pin can be 16. > > Remove the assumption that all first 16 pins will be used as row > a

[PATCH 6/6] OF: Introduce DT overlay support.

2013-01-04 Thread Pantelis Antoniou
Introduce DT overlay support. Using this functionality it is possible to dynamically overlay a part of the kernel's tree with another tree that's been dynamically loaded. It is also possible to remove node and properties. Signed-off-by: Pantelis Antoniou --- Documentation/devicetree/overlay-note

[PATCH 5/6] OF: Introduce Device Tree resolve support.

2013-01-04 Thread Pantelis Antoniou
Introduce support for dynamic device tree resolution. Using it, it is possible to prepare a device tree that's been loaded on runtime to be modified and inserted at the kernel live tree. Signed-off-by: Pantelis Antoniou --- .../devicetree/dynamic-resolution-notes.txt| 25 ++ drivers/of/

[PATCH 4/6] OF: Introduce utility helper functions

2013-01-04 Thread Pantelis Antoniou
Introduce helper functions for working with the live DT tree. __of_free_property() frees a dynamically created property __of_free_tree() recursively frees a device node tree __of_copy_property() copies a property dynamically __of_create_empty_node() creates an empty node __of_find_node_by_full_nam

[PATCH 3/6] OF: Export all DT proc update functions

2013-01-04 Thread Pantelis Antoniou
There are other users for the proc DT functions. Export them. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 108 - include/linux/of.h | 29 ++ 2 files changed, 87 insertions(+), 50 deletions(-) diff --git a/drivers/of/

[PATCH 2/6] OF: export of_property_notify

2013-01-04 Thread Pantelis Antoniou
of_property_notify can be utilized by other users too, export it. Signed-off-by: Pantelis Antoniou --- drivers/of/base.c | 8 +--- include/linux/of.h | 11 +++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 2390ddb..d5982

[PATCH 1/6] OF: Introduce device tree node flag helpers.

2013-01-04 Thread Pantelis Antoniou
Helper functions for working with device node flags. Signed-off-by: Pantelis Antoniou --- include/linux/of.h | 20 1 file changed, 20 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 5ebcc5c..2ff35b5 100644 --- a/include/linux/of.h +++ b/include/linu

[PATCH 0/6] Introducing Device Tree Overlays

2013-01-04 Thread Pantelis Antoniou
The following patchset introduces Device Tree overlays, a method of dynamically altering the kernel's live Device Tree. This patchset is against mainline as of Friday Jan 4 2013. (4956964 Merge tag 'driver-core-3.8-rc2' of \ git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core)

dtc: Dynamic symbols & fixup support

2013-01-04 Thread Pantelis Antoniou
Enable the generation of symbol & fixup information for usage with dynamic DT loading. Passing the -@ option generates a __symbols__ node at the root node of the resulting blob for any node labels used. When using the /plugin/ tag all unresolved label references be tracked in the __fixups__ node,

Fix test relying in wrong behavior of is_printable

2013-01-04 Thread Pantelis Antoniou
After fixing the is_printable bug the test suite fails. Fix it with this patch Signed-off-by: Pantelis Antoniou --- tests/run_tests.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index dd7f217..43279c9 100755 --- a/tests/run_te

[PATCH 3/4] Fix test relying in wrong behavior of is_printable

2013-01-04 Thread Pantelis Antoniou
After fixing the is_printable bug the test suite fails. Fix it with this patch Signed-off-by: Pantelis Antoniou --- tests/run_tests.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index dd7f217..43279c9 100755 --- a/tests/run_te

Fix util_is_printable_string

2013-01-04 Thread Pantelis Antoniou
The method used did not account for multi-part strings. Signed-off-by: Pantelis Antoniou --- util.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/util.c b/util.c index 2422c34..45f186b 100644 --- a/util.c +++ b/util.c @@ -72,7 +72,7 @@ char *join_path(

fdtdump: properly handle multi-string properties

2013-01-04 Thread Pantelis Antoniou
Device tree can store multiple strings in a single property. We didn't handle that case properly. Signed-off-by: Pantelis Antoniou --- fdtdump.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/fdtdump.c b/fdtdump.c index 207a46d..d4fa6d7 100644 --- a/fdtdump.c ++

[PATCH 1/2] ARM: sunxi: gpio: Add Allwinner SoCs GPIO drivers

2013-01-04 Thread Maxime Ripard
The IP responsible for the muxing on the Allwinner SoCs are also handling the GPIOs on the system. This patch adds the needed driver that relies on the pinctrl driver for most of its operations. The number of pins available for GPIOs operations are already declared in the pinctrl driver, we only n

Re: [PATCH V2 2/2] ASoC: Davinci: machine: Add device tree binding

2013-01-04 Thread Mark Brown
On Fri, Jan 04, 2013 at 03:24:37PM +0530, Hebbar Gururaja wrote: > + "MIC3L","Mic Bias 2V", > + "MIC3R","Mic Bias 2V", > + "Mic Bias 2V", "Mic Jack", The CODEC driver biases should be changed over to be supplies, this ma

Re: [PATCH V2 1/2] ASoC: davinci-mcasp: Add pinctrl support

2013-01-04 Thread Mark Brown
On Fri, Jan 04, 2013 at 03:24:36PM +0530, Hebbar Gururaja wrote: > From: "Hebbar, Gururaja" > > Signed-off-by: Hebbar, Gururaja Linus has a change for this in the core which currently looks like it'll get merged in v3.8 so there doesn't seem to be any pressing need for driver specific changes t

[PATCH 4/4] input: keyboard: tegra: remove default key mapping

2013-01-04 Thread Laxman Dewangan
Tegra KBC driver have the default key mapping for 16x8 configuration. The key mapping can be provided through platform data or through DT and the mapping varies from platform to platform, hence this default mapping is not so useful. Remove the default mapping to reduce the code lines of the driver.

[PATCH 3/4] input: keyboard: tegra: add support for rows/cols configuration from dt

2013-01-04 Thread Laxman Dewangan
The NVIDIA's Tegra KBC has maximum 24 pins to make matrix keypad. Any pin can be configured as row or column. The maximum column pin can be 8 and maximum row pin can be 16. Remove the assumption that all first 16 pins will be used as row and remaining as columns and Add the property for configurin

[PATCH 2/4] input: keyboard: tegra: use devm_* for resource allocation

2013-01-04 Thread Laxman Dewangan
Use devm_* for memory, clock, input device allocation. This reduces code for freeing these resources. Signed-off-by: Laxman Dewangan --- drivers/input/keyboard/tegra-kbc.c | 93 +++- 1 files changed, 28 insertions(+), 65 deletions(-) diff --git a/drivers/input/

[PATCH 1/4] input: keyboard: tegra: fix build warning

2013-01-04 Thread Laxman Dewangan
Fix the following build warning when building driver with CONFIG_PM_SLEEP not selected. tegra-kbc.c:360:13: warning: 'tegra_kbc_set_keypress_interrupt' defined but not used [-Wunused-function] Signed-off-by: Laxman Dewangan --- drivers/input/keyboard/tegra-kbc.c | 24

[PATCH 0/4] input: keyboard: tegra: cleanups and DT supports

2013-01-04 Thread Laxman Dewangan
This patch series: - fix build warning, - use devm_* for allocation, - make column/rows configuration through DT and - remove the rarely used key mapping table. Laxman Dewangan (4): input: keyboard: tegra: fix build warning input: keyboard: tegra: use devm_* for resource allocation inpu

Re: Early kernel hang with big DTB appended

2013-01-04 Thread Tomasz Figa
Hi Bryan, Thanks for your reply. On Thursday 03 of January 2013 13:40:43 Bryan Evenson wrote: > > -Original Message- > > From: linux-arm-kernel-boun...@lists.infradead.org [mailto:linux-arm- > > kernel-boun...@lists.infradead.org] On Behalf Of Tomasz Figa > > Sent: Thursday, January 03, 2

Re: Early kernel hang with big DTB appended

2013-01-04 Thread Tomasz Figa
Hi Nicolas, Thanks for your reply. On Thursday 03 of January 2013 21:48:05 Nicolas Pitre wrote: > On Thu, 3 Jan 2013, Tomasz Figa wrote: > > Hi, > > > > I'm observing strange behavior when booting 3.8-rc1 and -rc2 with > > appended DTB. The kernel hangs very early when the DTB is bigger than > >

[PATCH V2 2/2] ASoC: Davinci: machine: Add device tree binding

2013-01-04 Thread Hebbar Gururaja
From: "Hebbar, Gururaja" Device tree support for Davinci Machine driver When the board boots with device tree, the driver will receive card, codec, dai interface details (like the card name, DAPM routing map, phandle for the audio components described in the dts file, codec mclk speed). The card

[PATCH V2 0/2] ARM/ASoC: Davinci: Device Tree Update

2013-01-04 Thread Hebbar Gururaja
1. Add pinctrl for McASP Module 2. Add DT support for Davinci machine platform This patch-set is tested on Davinci platform (DA850 EVM). This series applies on top of tag next-20130103 git tree https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git These patches cannot be tested dire

[PATCH V2 1/2] ASoC: davinci-mcasp: Add pinctrl support

2013-01-04 Thread Hebbar Gururaja
From: "Hebbar, Gururaja" Signed-off-by: Hebbar, Gururaja --- Changes in V2 - no change :100644 100644 55e2bf6... 83d96eb... M sound/soc/davinci/davinci-mcasp.c sound/soc/davinci/davinci-mcasp.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/davinci/davinci-mca