Re: [PATCH 05/14] fdt: Export fdtdec_find_alias_node() function

2012-10-25 Thread David Gibson
On Thu, Oct 25, 2012 at 07:31:02PM -0700, Simon Glass wrote: > This function is useful outside fdtdec, so export it. Hrm. fdt_path_offset() in libfdt itself will already look up aliases if given a path that doesn't start with '/'. So it's not clear why you need this function at all. -- David G

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-25 Thread Felipe Balbi
Hi, On Thu, Oct 25, 2012 at 09:59:01PM +0100, Mark Brown wrote: > On Wed, Oct 24, 2012 at 09:58:19PM +0300, Felipe Balbi wrote: > > > need a way to tell drivers/base "hey, don't touch pinctrl at all because > > I know what I'm doing" and that has to happen before probe() too, > > otherwise it's a

Re: [PATCH] arm: l2cc: doc: fix device tree example typo

2012-10-25 Thread Rob Herring
On 10/23/2012 07:53 PM, Josh Cartwright wrote: > The list of attributes above details the use of the 'filter-ranges' > property, but the example improperly used 'filter-latency'. Make these > consistent by fixing up the example. > > Signed-off-by: Josh Cartwright Applied for 3.8 (unless I get m

Re: [PATCH] ARM: bcm2835: implement machine restart hook

2012-10-25 Thread Stephen Warren
On 09/27/2012 10:08 PM, Stephen Warren wrote: > Implement the machine restart hook using the SoC's watchdog timer module. > To support this, define a DT binding for the watchdog module, and add it > to the device tree. > > The downstream rpi-split branch contains a full watchdog timer driver > imp

Re: [PATCH 2/2] ARM: bcm2835: enable GPIO/pinctrl

2012-10-25 Thread Stephen Warren
On 09/27/2012 10:10 PM, Stephen Warren wrote: > Enable GPIO and pinctrl in Kconfig. > > Add required for gpiolib. > > Instantiate the BCM2835 GPIO module in bcm2835.dtsi. > > Add a pinctrl definition to bcm2835-rpi-b.dts that sets up all of the > board's required pinmux configuration. GPIO aren

[PATCH 09/14] fdt: Add polarity-aware gpio functions to fdtdec

2012-10-25 Thread Simon Glass
From: Sean Paul Add get and set gpio functions to fdtdec that take into account the polarity field in fdtdec_gpio_state.flags. Signed-off-by: Sean Paul Signed-off-by: Simon Glass --- include/fdtdec.h | 16 lib/fdtdec.c | 20 2 files changed, 36 in

[PATCH 03/14] fdt: Add fdtdec_decode_region() to decode memory region

2012-10-25 Thread Simon Glass
A memory region has a start and a size and is often specified in a node by a 'reg' property. Add a function to decode this information from the fdt. Signed-off-by: Simon Glass --- include/fdtdec.h | 19 +++ lib/fdtdec.c | 17 + 2 files changed, 36 insertio

[PATCH 04/14] fdt: Add function for decoding multiple gpios globally available

2012-10-25 Thread Simon Glass
From: Abhilash Kesavan Samsung's SDHCI bindings require multiple gpios to be parsed and configured at a time. Export the already available fdtdec_decode_gpios for this purpose. Signed-off-by: Abhilash Kesavan Commit-Ready: Che-Liang Chiou Signed-off-by: Simon Glass --- include/fdtdec.h | 1

[PATCH 13/14] fdt: Add option to default to most compatible conf in a fit image

2012-10-25 Thread Simon Glass
From: Gabe Black When booting a fit image with multiple configurations, the user either has to specify which configuration to use explicitly, or there has to be a default defined which is chosen automatically. This change adds an option to change that behavior so that a configuration can be selec

[PATCH 14/14] fdt: Set kernaddr if fdt indicates a kernel is present

2012-10-25 Thread Simon Glass
If kernel-offset is specified in the fdt, set an environment variable so that scripts can access the attached kernel. This can be used by a packaging program to tell U-Boot about a kernel that has been downloaded alongside U-Boot. The value in the fdt is the offset of the kernel from the start of

[PATCH 12/14] fdt: Allow device tree to specify secure booting

2012-10-25 Thread Simon Glass
From: Doug Anderson When secure booting is chosen: * The u-boot shell is never invoked during boot--we just do a simple table lookup to find the command. This means we could even remove the shell parsing from u-boot and still be able to boot. * The boot command can't be interruped. * Failure

[PATCH 01/14] fdt: Add function to get config int from device tree

2012-10-25 Thread Simon Glass
From: Abhilash Kesavan Add a function to look up a configuration item such as machine id and return its value. Note: The code has been taken as is from the Chromium u-boot development tree and needs Simon Glass' sign-off. Signed-off-by: Abhilash Kesavan Signed-off-by: Simon Glass --- include

[PATCH 05/14] fdt: Export fdtdec_find_alias_node() function

2012-10-25 Thread Simon Glass
This function is useful outside fdtdec, so export it. Signed-off-by: Simon Glass --- include/fdtdec.h |9 + lib/fdtdec.c |6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index e70714b..e566e47 100644 --- a/include/

[PATCH 06/14] fdt: Export fdtdec_lookup() and fix the name

2012-10-25 Thread Simon Glass
The name of this function is not consistent, so fix it, and export the function for external use. Signed-off-by: Simon Glass --- include/fdtdec.h | 13 + lib/fdtdec.c |2 +- 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h

[PATCH 11/14] fdt: Tell the FDT library where the device tree is

2012-10-25 Thread Simon Glass
From: Gabe Black This change adds a call to set_working_fdt_addr near the end of u-boot initialization which tells the fdt command/library where the device tree is. This makes it possible to use the fdt command to look at the active device tree since otherwise there would be no way to know what a

[PATCH 10/14] fdt: Load boot command from device tree

2012-10-25 Thread Simon Glass
From: Che-Liang Chiou Load boot command from /config/bootcmd of device tree if present. Signed-off-by: Tom Wai-Hong Tam Signed-off-by: Che-Liang Chiou Signed-off-by: Simon Glass --- common/main.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/common/

[PATCH 07/14] fdt: Add function to read boolean property

2012-10-25 Thread Simon Glass
From: Gabe Black Signed-off-by: Vincent Palatin Commit-Ready: Vincent Palatin Commit-Ready: Gabe Black Signed-off-by: Simon Glass --- include/fdtdec.h | 10 ++ lib/fdtdec.c | 14 ++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/include/fdtdec.h

[PATCH 02/14] fdt: Add function to get a config string from device tree

2012-10-25 Thread Simon Glass
Add a function to look up a configuration string such as board name and returns its value. We look in the "/config" node for this. Signed-off-by: Simon Glass --- include/fdtdec.h | 10 ++ lib/fdtdec.c | 28 ++-- 2 files changed, 28 insertions(+), 10 deleti

[PATCH 08/14] fdt: Add fdtdec_get_uint64 to decode a 64-bit value from a property

2012-10-25 Thread Simon Glass
From: Che-Liang Chiou It decodes a 64-bit value from a property that is at least 8 bytes long. Signed-off-by: Che-Liang Chiou Signed-off-by: Simon Glass --- include/fdtdec.h | 15 +++ lib/fdtdec.c | 13 + 2 files changed, 28 insertions(+), 0 deletions(-) diff

[PATCH 0/14] fdt: Add various device tree utilities and features

2012-10-25 Thread Simon Glass
This series contains a number of features related to CONFIG_OF_CONTROL, such as: - reading fdt values - reading configuration from the fdt - allowing the fdt to specify a boot command Abhilash Kesavan (2): fdt: Add function to get config int from device tree fdt: Add function for decoding mu

Re: [PATCH 08/10] pinctrl: single: support pinconf generic

2012-10-25 Thread Haojian Zhuang
On Fri, Oct 26, 2012 at 7:43 AM, Tony Lindgren wrote: > * Tony Lindgren [121022 10:11]: >> * Haojian Zhuang [121022 03:11]: >> > On Sat, Oct 20, 2012 at 3:13 AM, Tony Lindgren wrote: >> > > * Haojian Zhuang [121018 02:08]: >> > >> Add pinconf generic support with POWER SOURCE, BIAS PULL. >> >

Re: [PATCH 08/10] pinctrl: single: support pinconf generic

2012-10-25 Thread Tony Lindgren
* Tony Lindgren [121022 10:11]: > * Haojian Zhuang [121022 03:11]: > > On Sat, Oct 20, 2012 at 3:13 AM, Tony Lindgren wrote: > > > * Haojian Zhuang [121018 02:08]: > > >> Add pinconf generic support with POWER SOURCE, BIAS PULL. > > > ... > > > > > >> + case PIN_CONFIG_POWER_SOURCE: > > >>

Re: [PATCHv2] Input: omap4-keypad: Add pinctrl support

2012-10-25 Thread Mark Brown
On Wed, Oct 24, 2012 at 09:58:19PM +0300, Felipe Balbi wrote: > need a way to tell drivers/base "hey, don't touch pinctrl at all because > I know what I'm doing" and that has to happen before probe() too, > otherwise it's already too late and, according to what you suggest, > drivers/base will alr

[PATCH V3 2/2] ARM: OMAP2+: Add device-tree support for 32kHz counter

2012-10-25 Thread Jon Hunter
For OMAP devices, the 32kHz counter is the default clock-source for the kernel. However, this is not the only possible clock-source the kernel can use for OMAP devices. When booting with device-tree, if the 32kHz counter is the desired clock-source for the kernel, then parse the device-tree blob t

[PATCH V3 0/2] ARM: OMAP2+: Add device-tree support for 32kHz counter

2012-10-25 Thread Jon Hunter
This series adds device-tree support for the 32kHz counter on OMAP2+ devices, which is used as the default kernel clock-source for OMAP devices. Boot tested on OMAP2420 H4, OMAP3430 Beagle Board and OMAP4430 Panda Board with and without device-tree present. Based and dependent upon OMAP2+ series

[PATCH V3 1/2] ARM: dts: OMAP: Add counter-32k nodes

2012-10-25 Thread Jon Hunter
Adds the counter-32k timers nodes present in OMAP2/3/4 devices and device-tree binding documentation for OMAP counter-32k. Signed-off-by: Jon Hunter --- .../devicetree/bindings/arm/omap/counter.txt | 15 +++ arch/arm/boot/dts/omap2420.dtsi|6 ++ ar

Re: [PATCH V4 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Jon Hunter
Hi Benoit, On 10/24/2012 10:41 AM, Benoit Cousson wrote: > Hi Jon, > > On 10/19/2012 04:59 PM, Jon Hunter wrote: >> Add the 12 GP timers nodes present in OMAP2. >> Add the 12 GP timers nodes present in OMAP3. >> Add the 11 GP timers nodes present in OMAP4. >> Add the 7 GP timers nodes present in

Re: [PATCH v5 1/4] genalloc: add a global pool list, allow to find pools by phys address

2012-10-25 Thread Greg Kroah-Hartman
On Thu, Oct 18, 2012 at 04:27:30PM +0200, Philipp Zabel wrote: > This patch keeps all created pools in a global list and adds two > functions that allow to retrieve the gen_pool pointer from a known > physical address and from a device tree node. > > Signed-off-by: Philipp Zabel > Reviewed-by: Sh

Re: [PATCH V3 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Jon Hunter
On 10/25/2012 10:27 AM, Hiremath, Vaibhav wrote: ... > Can you merge it to your test module? I am thinking of pushing application > to github for others to use. I believe you are ok with this. I am planning > to push all the application there. > > https://github.com/hvaibhav/sample-applicatio

Re: Question about move atmel audio part to DT support

2012-10-25 Thread Mark Brown
On Fri, Oct 19, 2012 at 04:18:16PM +0800, Bo Shen wrote: > Cc: >linux-arm-kernel mailing list >devicetree-discuss mailing list >alsa-devel mailing list >linux-sound mailing list Better to resend for things like this rather than double quote. > > > Atmel audio part has three pl

Re: [PATCH v2 2/2] USB: doc: Binding document for ehci-platform driver

2012-10-25 Thread Stephen Warren
On 10/25/2012 04:23 AM, Sebastian Andrzej Siewior wrote: > On Wed, Oct 24, 2012 at 08:55:27AM -1000, Mitch Bradley wrote: So by listing "usb-ehci" in its device ID table, a driver would essentially be saying that it can handle _all_ USB EHCI controllers. >> >> >> Actually, it means that

RE: [PATCH V3 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Hiremath, Vaibhav
On Thu, Oct 25, 2012 at 18:03:37, Hunter, Jon wrote: > > On 10/25/2012 07:18 AM, Jon Hunter wrote: > > ... > > >> @@ -113,6 +114,9 @@ static int omap_timer_interrupt_test(struct > >> omap_dm_timer *gptimer) > >> > >> irq_data.gptimer = gptimer; > >> init_completion(&irq_data.com

RE: [PATCH V3 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Hiremath, Vaibhav
On Thu, Oct 25, 2012 at 17:48:47, Hunter, Jon wrote: > > On 10/25/2012 07:12 AM, Hiremath, Vaibhav wrote: > > On Thu, Oct 25, 2012 at 04:30:37, Hunter, Jon wrote: > >> > >> On 10/24/2012 01:17 PM, Hiremath, Vaibhav wrote: > >>> On Wed, Oct 17, 2012 at 23:31:09, Hunter, Jon wrote: > Add the 12

Re: [PATCH v4 6/7] usb: dwc3-omap: Minor fixes to get dt working

2012-10-25 Thread kishon
Hi Benoit, On Thursday 25 October 2012 07:11 PM, Benoit Cousson wrote: Hi Kishon, On 10/15/2012 03:27 PM, Kishon Vijay Abraham I wrote: Includes few minor fixes in dwc3-omap like populating the compatible string in a correct way, extracting the utmi-mode property properly and changing the inde

Re: [PATCH v2 2/2] USB: doc: Binding document for ehci-platform driver

2012-10-25 Thread Alan Stern
On Thu, 25 Oct 2012, Sebastian Andrzej Siewior wrote: > On Wed, Oct 24, 2012 at 08:55:27AM -1000, Mitch Bradley wrote: > > >> So by listing "usb-ehci" in its device ID table, a driver would > > >> essentially be saying that it can handle _all_ USB EHCI controllers. > > > > > > Actually, it mea

Re: [PATCH v4 2/7] usb: dwc3-omap: use of_platform API to create dwc3 core pdev

2012-10-25 Thread Felipe Balbi
On Thu, Oct 25, 2012 at 04:04:44PM +0200, Benoit Cousson wrote: > On 10/15/2012 03:27 PM, Kishon Vijay Abraham I wrote: > > Used of_platform_populate() to populate dwc3 core platform_device > > from device tree data. Since now the allocation of unique device id is > > handled by of_*, removed the c

Re: [PATCH v4 2/7] usb: dwc3-omap: use of_platform API to create dwc3 core pdev

2012-10-25 Thread Benoit Cousson
On 10/15/2012 03:27 PM, Kishon Vijay Abraham I wrote: > Used of_platform_populate() to populate dwc3 core platform_device > from device tree data. Since now the allocation of unique device id is > handled by of_*, removed the call to dwc3_get_device_id. Just for my understanding: How are these dev

Re: [PATCH v4 6/7] usb: dwc3-omap: Minor fixes to get dt working

2012-10-25 Thread Benoit Cousson
Hi Kishon, On 10/15/2012 03:27 PM, Kishon Vijay Abraham I wrote: > Includes few minor fixes in dwc3-omap like populating the compatible > string in a correct way, extracting the utmi-mode property properly and > changing the index of get_irq since irq of core is removed from hwmod > entry. > Also

Re: [PATCH] dt: add helper function to read u8 & u16 variables & arrays

2012-10-25 Thread Rob Herring
On 10/25/2012 02:03 AM, Viresh Kumar wrote: > On 12 October 2012 23:31, Viresh Kumar wrote: >> This adds following helper routines: >> - of_property_read_u8_array() >> - of_property_read_u16_array() >> - of_property_read_u8() >> - of_property_read_u16() >> >> First two actually share most of the c

Re: [PATCH V3 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Jon Hunter
On 10/25/2012 07:18 AM, Jon Hunter wrote: ... >> @@ -113,6 +114,9 @@ static int omap_timer_interrupt_test(struct >> omap_dm_timer *gptimer) >> >> irq_data.gptimer = gptimer; >> init_completion(&irq_data.complete); >> + >> + omap_dm_timer_enable(gptimer); >> + >> om

Re: [PATCH V3 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Jon Hunter
On 10/25/2012 07:12 AM, Hiremath, Vaibhav wrote: > On Thu, Oct 25, 2012 at 04:30:37, Hunter, Jon wrote: >> >> On 10/24/2012 01:17 PM, Hiremath, Vaibhav wrote: >>> On Wed, Oct 17, 2012 at 23:31:09, Hunter, Jon wrote: Add the 12 GP timers nodes present in OMAP2. Add the 12 GP timers nodes

RE: [PATCH V3 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Hiremath, Vaibhav
On Thu, Oct 25, 2012 at 04:30:37, Hunter, Jon wrote: > > On 10/24/2012 01:17 PM, Hiremath, Vaibhav wrote: > > On Wed, Oct 17, 2012 at 23:31:09, Hunter, Jon wrote: > >> Add the 12 GP timers nodes present in OMAP2. > >> Add the 12 GP timers nodes present in OMAP3. > >> Add the 11 GP timers nodes pre

Re: [PATCH V4 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Benoit Cousson
Hi Vaibhav, On 10/25/2012 02:05 PM, Hiremath, Vaibhav wrote: > On Wed, Oct 24, 2012 at 21:11:13, Cousson, Benoit wrote: >> Hi Jon, >> >> On 10/19/2012 04:59 PM, Jon Hunter wrote: >>> Add the 12 GP timers nodes present in OMAP2. >>> Add the 12 GP timers nodes present in OMAP3. >>> Add the 11 GP tim

RE: [PATCH V4 1/5] ARM: dts: OMAP: Add timer nodes

2012-10-25 Thread Hiremath, Vaibhav
On Wed, Oct 24, 2012 at 21:11:13, Cousson, Benoit wrote: > Hi Jon, > > On 10/19/2012 04:59 PM, Jon Hunter wrote: > > Add the 12 GP timers nodes present in OMAP2. > > Add the 12 GP timers nodes present in OMAP3. > > Add the 11 GP timers nodes present in OMAP4. > > Add the 7 GP timers nodes present