[PATCH] ARM: dts: OMAP2+: Simplify NAND support

2013-04-30 Thread Jon Hunter
t) to list the property "gpmc,device-nand" as a required property and also updated the example. However, this property is redundant and not needed because the GPMC child device node for NAND is called "nand". Therefore, remove this property. Signed-off-by: Jon Hunter --- Doc

[GIT PULL] ARM: OMAP2+: GPMC fixes for v3.10

2013-04-30 Thread Jon Hunter
.10/gpmc branch. Javier Martinez Canillas (3): Documentation: dt: update TI GPMC ethernet binding properties ARM: OMAP2+: only search for GPMC DT child nodes on probe ARM: OMAP2+: only WARN if a GPMC child probe function fail Jon Hunter (1): Documentation: dt: update p

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-26 Thread Jon Hunter
On 04/26/2013 02:31 AM, Linus Walleij wrote: > On Wed, Apr 17, 2013 at 2:41 AM, Javier Martinez Canillas > wrote: > > So: > >> +static int omap_gpio_irq_domain_xlate(struct irq_domain *d, >> + struct device_node *ctrlr, >> +

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-26 Thread Jon Hunter
On 04/26/2013 02:27 AM, Linus Walleij wrote: > On Wed, Apr 17, 2013 at 5:41 PM, Stephen Warren wrote: >> On 04/16/2013 05:14 PM, Jon Hunter wrote: > >>>> c) I have the feeling that hooking the of_xlate function for this is a >>>> bit of an abuse of the fun

Re: Regarding dtc+cpp support

2013-04-18 Thread Jon Hunter
On 04/18/2013 11:21 AM, Padma Venkat wrote: > Hi, > > On Thu, Apr 18, 2013 at 8:19 PM, Jon Hunter wrote: >> >> On 04/18/2013 04:12 AM, Padma Venkat wrote: >>> Hi Stephen, >>> >>> I am trying to add a header file for samsung audio subsystem clk >

Re: Regarding dtc+cpp support

2013-04-18 Thread Jon Hunter
On 04/18/2013 04:12 AM, Padma Venkat wrote: > Hi Stephen, > > I am trying to add a header file for samsung audio subsystem clk > definitions, which can be used in kernel and dt files. > I applied following patches posted by you in my working tree. > > > [1/7] kbuild: create an "include chroot"

Re: [PATCH 1/2] ARM: dts: OMAP5: add PWM capability to timer nodes missing it

2013-04-17 Thread Jon Hunter
@@ > reg = <0x48086000 0x80>; > interrupts = <0 46 0x4>; > ti,hwmods = "timer10"; > + ti,timer-pwm; > }; > > timer11: timer@48088000 { Make

Re: [PATCH v2 1/2] ARM: OMAP2+: only search for GPMC DT child nodes on probe

2013-04-17 Thread Jon Hunter
On 04/17/2013 05:10 PM, Javier Martinez Canillas wrote: > On 04/17/2013 11:27 PM, Jon Hunter wrote: >> >> On 04/17/2013 03:34 PM, Javier Martinez Canillas wrote: >>> The GPMC DT probe function use for_each_node_by_name() to search >>> child device nodes of the G

Re: [PATCH v2 1/2] ARM: OMAP2+: only search for GPMC DT child nodes on probe

2013-04-17 Thread Jon Hunter
device node as the search root so the > search will be restricted to its children. > > Reported-by: Lars Poeschel > Signed-off-by: Javier Martinez Canillas > --- > > Changes since v1 (suggested by Jon Hunter): > - Split the search for GPMC child nodes and only w

Re: [PATCH] ARM: dts: omap4-panda: Add LED support into the panda DTS files

2013-04-17 Thread Jon Hunter
On 04/17/2013 02:09 PM, Dan Murphy wrote: > The GPIO for LED D1 on the omap4-panda a1-a3 rev and the omap4-panda-es > are different. > > Abstract away the pinmux and the LED definitions for the two boards. Just a heads-up but you should base this upon Benoit's for_3.10 branch [1] as there is now

Re: [PATCH] ARM: OMAP2+: only search for GPMC DT child nodes on probe

2013-04-17 Thread Jon Hunter
On 04/17/2013 11:37 AM, Javier Martinez Canillas wrote: > The GPMC DT probe function use for_each_node_by_name() to search > child device nodes of the GPMC controller. But this function does > not use the GPMC device node as the root of the search and instead > search across the complete Device Tr

Re: [PATCH v3 3/3] ARM: OMAP2+: Add GPMC DT support for Ethernet child nodes

2013-04-17 Thread Jon Hunter
On 04/17/2013 09:07 AM, Javier Martinez Canillas wrote: > On 04/17/2013 03:48 PM, Jon Hunter wrote: >> >> On 04/17/2013 07:05 AM, Javier Martinez Canillas wrote: >> >> ... >> >>> Yes, in fact I just realized that for_each_node_by_name() expand to: >

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-17 Thread Jon Hunter
On 04/17/2013 08:42 AM, Javier Martinez Canillas wrote: > On Wed, Apr 17, 2013 at 3:25 PM, Jon Hunter wrote: >> >> On 04/17/2013 02:55 AM, Javier Martinez Canillas wrote: >> >> ... >> >>> There are so many patches flying around in this thread tha

Re: [PATCH v3 3/3] ARM: OMAP2+: Add GPMC DT support for Ethernet child nodes

2013-04-17 Thread Jon Hunter
On 04/17/2013 07:05 AM, Javier Martinez Canillas wrote: ... > Yes, in fact I just realized that for_each_node_by_name() expand to: > > #define for_each_node_by_name(dn, name) \ > for (dn = of_find_node_by_name(NULL, name); dn; \ > dn = of_find_node_by_name(dn, name)) > > w

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-17 Thread Jon Hunter
On 04/17/2013 02:55 AM, Javier Martinez Canillas wrote: ... > There are so many patches flying around in this thread that I missed it :-) > > Sorry about that... No problem. >> I was trying to see if we could find a common solution that everyone >> could use as it seems that ideally we should

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-16 Thread Jon Hunter
On 04/16/2013 07:41 PM, Javier Martinez Canillas wrote: > On Wed, Apr 17, 2013 at 1:14 AM, Jon Hunter wrote: >> >> On 04/16/2013 05:11 PM, Stephen Warren wrote: >>> On 04/16/2013 01:27 PM, Jon Hunter wrote: >>>> >>>> On 04/16/2013 01:40 PM, Stephen

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-16 Thread Jon Hunter
On 04/16/2013 05:11 PM, Stephen Warren wrote: > On 04/16/2013 01:27 PM, Jon Hunter wrote: >> >> On 04/16/2013 01:40 PM, Stephen Warren wrote: >>> On 04/15/2013 05:04 PM, Jon Hunter wrote: > ... >>>> If some driver is calling gpio_request() directly, th

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-16 Thread Jon Hunter
On 04/16/2013 02:27 PM, Jon Hunter wrote: ... > Right. In the DT case though, if someone does provide the IRQ and GPIO > IDs then at least they would use a different xlate function. Another > option to consider would be defining the #interrupt-cells = <3> where we > would hav

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-16 Thread Jon Hunter
On 04/16/2013 01:40 PM, Stephen Warren wrote: > On 04/15/2013 05:04 PM, Jon Hunter wrote: >> >> On 04/15/2013 05:16 PM, Stephen Warren wrote: >>> On 04/15/2013 03:40 PM, Jon Hunter wrote: > ... >>>> mmc { >>>>label =

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-15 Thread Jon Hunter
On 04/15/2013 05:16 PM, Stephen Warren wrote: > On 04/15/2013 03:40 PM, Jon Hunter wrote: >> >> On 04/15/2013 11:58 AM, Stephen Warren wrote: >>> On 04/14/2013 02:53 PM, Linus Walleij wrote: >>>> On Sun, Apr 14, 2013 at 3:35 AM, Javier Martinez Canillas >

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-15 Thread Jon Hunter
On 04/15/2013 04:40 PM, Jon Hunter wrote: > > On 04/15/2013 11:58 AM, Stephen Warren wrote: >> On 04/14/2013 02:53 PM, Linus Walleij wrote: >>> On Sun, Apr 14, 2013 at 3:35 AM, Javier Martinez Canillas >>> wrote: >>> >>>> Is the following

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-15 Thread Jon Hunter
On 04/15/2013 11:58 AM, Stephen Warren wrote: > On 04/14/2013 02:53 PM, Linus Walleij wrote: >> On Sun, Apr 14, 2013 at 3:35 AM, Javier Martinez Canillas >> wrote: >> >>> Is the following inlined patch [1] what you were thinking that would >>> be the right approach? >> >> This looks sort of OK, b

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-04-15 Thread Jon Hunter
On 04/15/2013 11:53 AM, Stephen Warren wrote: > On 04/13/2013 07:35 PM, Javier Martinez Canillas wrote: > ... >> Is the following inlined patch [1] what you were thinking that would >> be the right approach? > ... >> diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c > ... >> +static

Re: [PATCH V4 10/18] ARM: OMAP2+: Add function to read GPMC settings from device-tree

2013-04-15 Thread Jon Hunter
On 04/15/2013 08:27 AM, Grant Likely wrote: > On Tue, 19 Mar 2013 11:35:48 -0500, Jon Hunter wrote: >> Adds a function to read the various GPMC chip-select settings from >> device-tree and store them in the gpmc_settings structure. >> >> Update the GPMC device-tr

Re: [PATCH 4/5] gpio/omap: force restore if context loss is not detectable

2013-04-10 Thread Jon Hunter
On 04/10/2013 02:44 PM, Linus Walleij wrote: > On Wed, Apr 10, 2013 at 9:41 PM, Jon Hunter wrote: >> On 04/10/2013 02:39 PM, Linus Walleij wrote: >>> On Thu, Apr 4, 2013 at 10:16 PM, Jon Hunter wrote: >>> >>>> When booting with device-tree the function poi

Re: [PATCH 1/5] gpio/omap: free irq domain in probe() failure paths

2013-04-10 Thread Jon Hunter
On 04/10/2013 02:33 PM, Linus Walleij wrote: > On Thu, Apr 4, 2013 at 10:16 PM, Jon Hunter wrote: > >> Currently the IRQ domain is not freed once allocated, in the case where >> omap_gpio_probe() fails. Therefore, ensure we free the domain if the >> probe does fail

Re: [PATCH 4/5] gpio/omap: force restore if context loss is not detectable

2013-04-10 Thread Jon Hunter
On 04/10/2013 02:39 PM, Linus Walleij wrote: > On Thu, Apr 4, 2013 at 10:16 PM, Jon Hunter wrote: > >> When booting with device-tree the function pointer for detecting context >> loss is not populated. Ideally, the pm_runtime framework should be >> enhanced to all

[PATCH] Documentation: dt: update properties in TI GPMC NAND example

2013-04-09 Thread Jon Hunter
The GPMC timing properties for device-tree have been updated by adding a "-ns" or "-ps" suffix to indicate the units of time the property represents. Therefore, update the timing property names for TI GPMC NAND example. Signed-off-by: Jon Hunter --- .../devicetree/bindin

Re: [PATCH 3/3] ARM: dts: Add OMAP3430 SDP NOR flash memory binding

2013-04-07 Thread Jon Hunter
On 04/07/2013 08:17 PM, Jon Hunter wrote: > Add device-tree node for the 128MB NOR on the OMAP3423-SDP board. Bugger ... it seems I have invented and new board. OMAP3423 SDP does not exist. Fixed below. Jon >From 4f486b5dddc5d960d786504b4e3e97a28b63c1c0 Mon Sep 17 00:00:00 2001 Fro

[PATCH 1/3] ARM: dts: Update OMAP3430 SDP NAND and ONENAND properties

2013-04-07 Thread Jon Hunter
The GPMC timing properties for device-tree have been updated by adding a "-ns" or "-ps" suffix to indicate the units of time the property represents (as suggested by Rob Herring). Therefore, update the timing property names for the OMAP3430 SDP NAND and ONENAND devices. Signe

[PATCH 2/3] ARM: dts: Add NOR flash bindings for OMAP2420 H4

2013-04-07 Thread Jon Hunter
Add device-tree node for the 64MB NOR on the OMAP2420-H4 board. Signed-off-by: Jon Hunter --- arch/arm/boot/dts/omap2420-h4.dts | 46 + 1 file changed, 46 insertions(+) diff --git a/arch/arm/boot/dts/omap2420-h4.dts b/arch/arm/boot/dts/omap2420-h4.dts

[PATCH 3/3] ARM: dts: Add OMAP3430 SDP NOR flash memory binding

2013-04-07 Thread Jon Hunter
Add device-tree node for the 128MB NOR on the OMAP3423-SDP board. Signed-off-by: Jon Hunter --- arch/arm/boot/dts/omap3430-sdp.dts | 51 +++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/omap3430-sdp.dts b/arch/arm/boot/dts

Re: [PATCH 0/5] gpio/omap: 2nd batch of updates for v3.10

2013-04-05 Thread Jon Hunter
On 04/05/2013 01:35 AM, Santosh Shilimkar wrote: > On Friday 05 April 2013 01:46 AM, Jon Hunter wrote: >> Main change is ensuring that the state of a gpio bank is restored when >> booting with device-tree. The rest of the patches are clean-ups and one >> optimisation. >

Re: [PATCH 5/5] ARM: dts: OMAP2+: Identify GPIO banks that are always powered

2013-04-04 Thread Jon Hunter
On 04/04/2013 03:35 PM, Tony Lindgren wrote: > * Jon Hunter [130404 13:21]: >> Add the "ti,gpio-always-on" property to the appropriate GPIO banks to >> indicate which banks are always powered and will never lose logic state. > > This patch should be queued by B

[PATCH 5/5] ARM: dts: OMAP2+: Identify GPIO banks that are always powered

2013-04-04 Thread Jon Hunter
Add the "ti,gpio-always-on" property to the appropriate GPIO banks to indicate which banks are always powered and will never lose logic state. Cc: Benoit Cousson Signed-off-by: Jon Hunter --- arch/arm/boot/dts/omap2420.dtsi |4 arch/arm/boot/dts/omap2430.dtsi |4

[PATCH 3/5] gpio/omap: optimise interrupt service routine

2013-04-04 Thread Jon Hunter
of the first set bit, to find all the set bits. This optimisation was suggested-by and developed in collaboration with Felipe Balbi. Cc: Felipe Balbi Signed-off-by: Jon Hunter --- drivers/gpio/gpio-omap.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a

[PATCH 4/5] gpio/omap: force restore if context loss is not detectable

2013-04-04 Thread Jon Hunter
state. Signed-off-by: Jon Hunter --- .../devicetree/bindings/gpio/gpio-omap.txt |7 -- drivers/gpio/gpio-omap.c | 25 +--- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-omap.txt

[PATCH 2/5] gpio/omap: remove extra context restores in *_runtime_resume()

2013-04-04 Thread Jon Hunter
-triggered since only edge-triggered gpios can generate wakeup events. Therefore, the old context restores of the same registers present later in the code is not needed any more. Remove them. Signed-off-by: Tarun Kanti DebBarma Signed-off-by: Jon Hunter --- drivers/gpio/gpio-omap.c |4

[PATCH 1/5] gpio/omap: free irq domain in probe() failure paths

2013-04-04 Thread Jon Hunter
Currently the IRQ domain is not freed once allocated, in the case where omap_gpio_probe() fails. Therefore, ensure we free the domain if the probe does fail. Furthermore, the local variable "ret" is not needed and so remove this. Signed-off-by: Jon Hunter --- drivers/gpio/gpio-oma

[PATCH 0/5] gpio/omap: 2nd batch of updates for v3.10

2013-04-04 Thread Jon Hunter
rking correctly as these boards use a GPIO with the ethernet chips. Also checked /proc/interrupts to ensure GPIO interrupt counts are incrementing as expected. [1] http://git.kernel.org/cgit/linux/kernel/git/bcousson/linux-omap-dt.git Jon Hunter (4): gpio/omap: free irq domain in probe() failure

[PATCH] ARM: dts: OMAP4+: Correct L3 interrupts

2013-04-04 Thread Jon Hunter
substracting 32. Cc: Santosh Shilimkar Signed-off-by: Jon Hunter --- Please note that this problem is observed in Benoit's for_3.10/dts branch [1]. [1] http://git.kernel.org/cgit/linux/kernel/git/bcousson/linux-omap-dt.git arch/arm/boot/dts/omap4.dtsi |4 ++-- arch/arm/boot/dts/omap5.dtsi |

Re: [RFC][BUG] arm/dts: OMAP3: set #interrupt-cells to two

2013-04-02 Thread Jon Hunter
On 04/02/2013 10:55 AM, Christoph Fritz wrote: > On Mon, 2013-04-01 at 22:05 +0200, Javier Martinez Canillas wrote: > >>> As a quick-fix (hack) I wrote directly to the registers in gpio_probe() >>> to enable GPIO banks. I now geht this: >>> > [0.214630] omap_gpio_probe, 1133, CM_CLKSEL_PE

Re: [PATCH V3 2/2] dmaengine: OMAP: Register SDMA controller with Device Tree DMA driver

2013-04-01 Thread Jon Hunter
Vinod, On 03/20/2013 11:36 AM, Tony Lindgren wrote: > * Jon Hunter [130319 09:08]: >> Vinod, Tony, Benoit, >> >> On 02/26/2013 12:27 PM, Jon Hunter wrote: >>> If the device-tree blob is present during boot, then register the SDMA >>> controller with the de

Re: [PATCH 3/5] gpio/omap: Add DT support to GPIO driver

2013-03-22 Thread Jon Hunter
On 03/22/2013 10:33 AM, Stephen Warren wrote: > On 03/22/2013 02:10 AM, Linus Walleij wrote: >> On Fri, Mar 15, 2013 at 12:21 PM, Javier Martinez Canillas >> wrote: >> >>> diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c >>> index 159f5c5..f5feb43 100644 >>> --- a/drivers/gpio/gpi

[PATCH 4/5] ARM: dts: OMAP2+: Update DMTIMER compatibility property

2013-03-19 Thread Jon Hunter
example, errata flags can be populated for the timer versions that are impacted. Signed-off-by: Jon Hunter --- .../devicetree/bindings/arm/omap/timer.txt | 17 -- arch/arm/boot/dts/am33xx.dtsi | 14 ++-- arch/arm/boot/dts/omap2.dtsi

[PATCH 3/5] ARM: OMAP: Add function to request timer by node

2013-03-19 Thread Jon Hunter
capability or by node) consolidate the code for all these functions into a single helper function that can be used by these request functions. Signed-off-by: Jon Hunter --- arch/arm/plat-omap/dmtimer.c | 167 - arch/arm/plat-omap/include/plat/dmtimer.h |1 + 2

[PATCH 5/5] ARM: OMAP2+: Populate DMTIMER errata when using device-tree

2013-03-19 Thread Jon Hunter
Currently the DMTIMER errata flags are not being populated when using device-tree. Add static platform data to populate errata flags when using device-tree. Please note that DMTIMER erratum i767 is applicable to OMAP3-5 devices as well as AM335x devices. Signed-off-by: Jon Hunter --- arch/arm

[PATCH 1/5] ARM: OMAP: Simplify dmtimer context-loss handling

2013-03-19 Thread Jon Hunter
ned-off-by: NeilBrown [jon-hun...@ti.com: minor update to subject and changed variable name] Signed-off-by: Jon Hunter --- arch/arm/plat-omap/dmtimer.c | 32 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap

[PATCH 2/5] ARM: OMAP: Force dmtimer restore if context loss is not detectable

2013-03-19 Thread Jon Hunter
-device specific solution is in place, force a restore of the dmtimer when enabling the timer. Signed-off-by: Jon Hunter --- arch/arm/plat-omap/dmtimer.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index 5cae1dd..725d972

[PATCH 0/5] ARM: OMAP: DMTIMER updates for v3.10

2013-03-19 Thread Jon Hunter
includes ... 1. Booting kernel on above boards 2. Testing of various DMTIMER request APIs 3. Testing the timer overflow and match interrupts. 4. Using different clock sources to operate the timer with. Jon Hunter (4): ARM: OMAP: Force dmtimer restore if context loss is not detectable ARM: OMAP

[PATCH V4 11/18] ARM: OMAP2+: Add additional GPMC timing parameters

2013-03-19 Thread Jon Hunter
, and store directly in the gpmc_timings structure. Therefore, simplify the code by removing these checks. The comment in the gpmc_read_timings_dt() function, "only for OMAP3430" is also incorrect as it is applicable to all OMAP3+ devices. So correct this too. Signed-off-by: Jon Hunt

[PATCH V4 16/18] ARM: OMAP2+: Remove unnecesssary GPMC definitions and variable

2013-03-19 Thread Jon Hunter
With commit 21cc2bd (ARM: OMAP2+: Remove apollon board support) the variable "boot_rom_space" is now not needed and the code surrounding this variable can be cleaned up and simplified. Remove unnecessary definitions and clean-up the comment as well. Signed-off-by: Jon Hunter Tested-by

[PATCH V4 18/18] ARM: OMAP2+: return -ENODEV if GPMC child device creation fails

2013-03-19 Thread Jon Hunter
gpmc_cs_program_settings() that had to succeed or otherwise gpmc_probe_nor_child() would have returned before. This means that if of_platform_device_create() fails, 0 will be returned to the caller instead of an appropriate error code. Signed-off-by: Javier Martinez Canillas Signed-off-by: Jon Hunter Tested-by

[PATCH V4 12/18] ARM: OMAP2+: Add device-tree support for NOR flash

2013-03-19 Thread Jon Hunter
NOR flash is not currently supported when booting with device-tree on OMAP2+ devices. Add support to detect and configure NOR devices when booting with device-tree. Add documentation for the TI GPMC NOR binding. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- Documentation/devicetree

[PATCH V4 17/18] ARM: OMAP2+: Allow GPMC probe to complete even if CS mapping fails

2013-03-19 Thread Jon Hunter
before they can use the GPMC and on requesting a chip-select, if memory has not already been reserved for the chip-select then it will be. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm/mach-omap2/gpmc.c | 24 +++- 1 file changed, 7 insertions(+), 17

[PATCH V4 15/18] ARM: OMAP2+: Detect incorrectly aligned GPMC base address

2013-03-19 Thread Jon Hunter
enabling a GPMC chip-select, ensure that the base address is aligned to the appropriate boundary. Reported-by: Mark Jackson Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm/mach-omap2/gpmc.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git

[PATCH V4 14/18] ARM: OMAP2+: Convert ONENAND to retrieve GPMC settings from DT

2013-03-19 Thread Jon Hunter
legacy code that only enables read wait monitoring for non-OMAP3 devices. There are no known OMAP3 device issues that prevent this feature being enabled and so when booting with device-tree use the wait-monitoring settings described in the device-tree blob. Signed-off-by: Jon Hunter Tested-by

[PATCH V4 13/18] ARM: OMAP2+: Convert NAND to retrieve GPMC settings from DT

2013-03-19 Thread Jon Hunter
When booting with device-tree, retrieve GPMC settings for NAND from the device-tree blob. This will allow us to remove all static settings stored in the gpmc-nand.c in the future once the migration to device-tree is complete. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm

[PATCH V4 07/18] ARM: OMAP2+: Convert SMC91x to use gpmc_cs_program_settings()

2013-03-19 Thread Jon Hunter
dynamically at runtime. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm/mach-omap2/gpmc-smc91x.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc-smc91x.c b/arch/arm/mach-omap2/gpmc-smc91x.c index

[PATCH V4 10/18] ARM: OMAP2+: Add function to read GPMC settings from device-tree

2013-03-19 Thread Jon Hunter
Adds a function to read the various GPMC chip-select settings from device-tree and store them in the gpmc_settings structure. Update the GPMC device-tree binding documentation to describe these options. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- Documentation/devicetree/bindings

[PATCH V4 09/18] ARM: OMAP2+: Don't configure of chip-select options in gpmc_cs_configure()

2013-03-19 Thread Jon Hunter
With the addition of the gpmc_cs_program_settings(), we no longer need or use gpmc_cs_configure() to configure some of the GPMC chip-select options. So rename the function to gpmc_configure() and remove code that modifies options in the CONFIG1 register. Signed-off-by: Jon Hunter Tested-by

[PATCH V4 08/18] ARM: OMAP2+: Convert TUSB to use gpmc_cs_program_settings()

2013-03-19 Thread Jon Hunter
Convert the OMAP2+ TUSB code to use the gpmc_cs_program_settings() function for configuring the various GPMC options instead of directly programming the CONFIG1 register. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm/mach-omap2/usb-tusb6010.c | 43

[PATCH V4 06/18] ARM: OMAP2+: Convert NAND to use gpmc_cs_program_settings()

2013-03-19 Thread Jon Hunter
set once regardless of whether the gpmc timing is changing dynamically at runtime. The programming of where the wait-pin is also moved slightly, but this will not have any impact to existing devices as no boards are currently setting the dev_ready variable. Signed-off-by: Jon Hunter Tested-by

[PATCH V4 05/18] ARM: OMAP2+: Convert ONENAND to use gpmc_cs_program_settings()

2013-03-19 Thread Jon Hunter
Convert the OMAP2+ ONENAND code to use the gpmc_cs_program_settings() function for configuring the various GPMC options instead of directly programming the CONFIG1 register. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm/mach-omap2/gpmc-onenand.c | 61

[PATCH V4 03/18] ARM: OMAP2+: Add structure for storing GPMC settings

2013-03-19 Thread Jon Hunter
timing structure and some are directly programmed into the GPMC configuration register. Add a new structure to store these options and convert code to use this structure. Adding this structure will allow us to create a common function for configuring these options. Signed-off-by: Jon Hunter

[PATCH V4 04/18] ARM: OMAP2+: Add function for configuring GPMC settings

2013-03-19 Thread Jon Hunter
support the address-address-data multiplexing mode. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm/mach-omap2/gpmc.c | 100 arch/arm/mach-omap2/gpmc.h |6 +++ 2 files changed, 106 insertions(+) diff --git a/arch/arm/mach-omap2

[PATCH V4 02/18] ARM: OMAP2+: Add variable to store number of GPMC waitpins

2013-03-19 Thread Jon Hunter
not using device-tree is fine. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm/mach-omap2/gpmc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 586dba7..8833c34 100644 --- a/arch/arm/mach-omap2

[PATCH V4 00/18] ARM: OMAP2+: GPMC clean-up and DT update

2013-03-19 Thread Jon Hunter
omap/94765 [2] http://comments.gmane.org/gmane.linux.ports.arm.omap/93784 [3] https://github.com/jonhunter/linux/tree/omap-gpmc-for-v3.10 [4] https://github.com/jonhunter/linux/tree/omap-dt-for-v3.10 Javier Martinez Canillas (1): ARM: OMAP2+: return -ENODEV if GPMC child device creation fails Jon Hunter (17): ARM: O

[PATCH V4 01/18] ARM: OMAP2+: Simplify code configuring ONENAND devices

2013-03-19 Thread Jon Hunter
ngs(), but only the flags member of the structure is used. Simplify the code by only passing the flags member and not the entire structure. Signed-off-by: Jon Hunter Tested-by: Ezequiel Garcia --- arch/arm/mach-omap2/gpmc-onenand.c | 26 ++ 1 file changed, 10 inserti

Re: [PATCH V3 2/2] dmaengine: OMAP: Register SDMA controller with Device Tree DMA driver

2013-03-19 Thread Jon Hunter
Vinod, Tony, Benoit, On 02/26/2013 12:27 PM, Jon Hunter wrote: > If the device-tree blob is present during boot, then register the SDMA > controller with the device-tree DMA driver so that we can use device-tree > to look-up DMA client information. > > Signed-off-by: Jon Hunter

Re: [PATCH V3 12/18] ARM: OMAP2+: Add additional GPMC timing parameters

2013-03-18 Thread Jon Hunter
On 03/18/2013 09:32 AM, Jon Hunter wrote: > > On 03/18/2013 09:07 AM, Rob Herring wrote: >> On 03/15/2013 10:21 AM, Jon Hunter wrote: >>> Some of the GPMC timings parameters are currently missing from the GPMC >>> device-tree binding. Add these parameters to the bin

Re: [PATCH V3 12/18] ARM: OMAP2+: Add additional GPMC timing parameters

2013-03-18 Thread Jon Hunter
On 03/18/2013 09:07 AM, Rob Herring wrote: > On 03/15/2013 10:21 AM, Jon Hunter wrote: >> Some of the GPMC timings parameters are currently missing from the GPMC >> device-tree binding. Add these parameters to the binding documentation >> as well as code to read them. >&

Re: [PATCH V3 02/18] ARM: OMAP2+: Add variable to store number of GPMC waitpins

2013-03-18 Thread Jon Hunter
On 03/16/2013 03:59 PM, Ezequiel Garcia wrote: > Hi Jon, > > On Fri, Mar 15, 2013 at 10:21:00AM -0500, Jon Hunter wrote: >> The GPMC has wait-pin signals that can be assigned to a chip-select >> to monitor the ready signal of an external device. Add a variable to >> i

Re: [PATCH V3 10/18] ARM: OMAP2+: Add function to read GPMC settings from device-tree

2013-03-18 Thread Jon Hunter
On 03/17/2013 12:24 AM, Ezequiel Garcia wrote: > Hi Jon, > > I have some tiny nitpicks... > > On Fri, Mar 15, 2013 at 10:21:08AM -0500, Jon Hunter wrote: >> Adds a function to read the various GPMC chip-select settings from >> device-tree and store them in

Re: [PATCH v3 3/3] ARM: OMAP2+: Add GPMC DT support for Ethernet child nodes

2013-03-15 Thread Jon Hunter
Rob, Grant, On 03/15/2013 10:24 AM, Jon Hunter wrote: > > On 03/14/2013 04:54 PM, Javier Martinez Canillas wrote: >> Besides being used to interface with external memory devices, >> the General-Purpose Memory Controller can be used to connect >> Pseudo-SRAM devices such

Re: [PATCH v3 3/3] ARM: OMAP2+: Add GPMC DT support for Ethernet child nodes

2013-03-15 Thread Jon Hunter
s a data bus. > > This patch allows an ethernet chip to be defined as an GPMC > child device node. > > Signed-off-by: Javier Martinez Canillas > --- > > Changes since v2: > - remove optional #address-cells and #size-cells since are not relevant for > ethernet chips; s

[PATCH V3 18/18] ARM: OMAP2+: return -ENODEV if GPMC child device creation fails

2013-03-15 Thread Jon Hunter
gpmc_cs_program_settings() that had to succeed or otherwise gpmc_probe_nor_child() would have returned before. This means that if of_platform_device_create() fails, 0 will be returned to the caller instead of an appropriate error code. Signed-off-by: Javier Martinez Canillas Signed-off-by: Jon Hunter --- arch

[PATCH V3 17/18] ARM: OMAP2+: Allow GPMC probe to complete even if CS mapping fails

2013-03-15 Thread Jon Hunter
before they can use the GPMC and on requesting a chip-select, if memory has not already been reserved for the chip-select then it will be. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/gpmc.c | 24 +++- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/arch

[PATCH V3 16/18] ARM: OMAP2+: Remove unnecesssary GPMC definitions and variable

2013-03-15 Thread Jon Hunter
With commit 21cc2bd (ARM: OMAP2+: Remove apollon board support) the variable "boot_rom_space" is now not needed and the code surrounding this variable can be cleaned up and simplified. Remove unnecessary definitions and clean-up the comment as well. Signed-off-by: Jon Hunter --- arc

[PATCH V3 15/18] ARM: OMAP2+: Detect incorrectly aligned GPMC base address

2013-03-15 Thread Jon Hunter
enabling a GPMC chip-select, ensure that the base address is aligned to the appropriate boundary. Reported-by: Mark Jackson Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/gpmc.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH V3 13/18] ARM: OMAP2+: Convert NAND to retrieve GPMC settings from DT

2013-03-15 Thread Jon Hunter
When booting with device-tree, retrieve GPMC settings for NAND from the device-tree blob. This will allow us to remove all static settings stored in the gpmc-nand.c in the future once the migration to device-tree is complete. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/gpmc-nand.c | 16

[PATCH V3 14/18] ARM: OMAP2+: Convert ONENAND to retrieve GPMC settings from DT

2013-03-15 Thread Jon Hunter
legacy code that only enables read wait monitoring for non-OMAP3 devices. There are no known OMAP3 device issues that prevent this feature being enabled and so when booting with device-tree use the wait-monitoring settings described in the device-tree blob. Signed-off-by: Jon Hunter

[PATCH V3 11/18] ARM: OMAP2+: Add device-tree support for NOR flash

2013-03-15 Thread Jon Hunter
NOR flash is not currently supported when booting with device-tree on OMAP2+ devices. Add support to detect and configure NOR devices when booting with device-tree. Add documentation for the TI GPMC NOR binding. Signed-off-by: Jon Hunter --- Documentation/devicetree/bindings/mtd/gpmc-nor.txt

[PATCH V3 12/18] ARM: OMAP2+: Add additional GPMC timing parameters

2013-03-15 Thread Jon Hunter
() function, "only for OMAP3430" is also incorrect as it is applicable to all OMAP3+ devices. So correct this too. Signed-off-by: Jon Hunter --- Documentation/devicetree/bindings/bus/ti-gpmc.txt | 25 +- arch/arm/mach-omap2/gpmc.c| 93 ++--- 2 fil

[PATCH V3 10/18] ARM: OMAP2+: Add function to read GPMC settings from device-tree

2013-03-15 Thread Jon Hunter
Adds a function to read the various GPMC chip-select settings from device-tree and store them in the gpmc_settings structure. Update the GPMC device-tree binding documentation to describe these options. Signed-off-by: Jon Hunter --- Documentation/devicetree/bindings/bus/ti-gpmc.txt | 23

[PATCH V3 09/18] ARM: OMAP2+: Don't configure of chip-select options in gpmc_cs_configure()

2013-03-15 Thread Jon Hunter
With the addition of the gpmc_cs_program_settings(), we no longer need or use gpmc_cs_configure() to configure some of the GPMC chip-select options. So rename the function to gpmc_configure() and remove code that modifies options in the CONFIG1 register. Signed-off-by: Jon Hunter --- arch/arm

[PATCH V3 08/18] ARM: OMAP2+: Convert TUSB to use gpmc_cs_program_settings()

2013-03-15 Thread Jon Hunter
Convert the OMAP2+ TUSB code to use the gpmc_cs_program_settings() function for configuring the various GPMC options instead of directly programming the CONFIG1 register. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/usb-tusb6010.c | 43 1 file changed

[PATCH V3 07/18] ARM: OMAP2+: Convert SMC91x to use gpmc_cs_program_settings()

2013-03-15 Thread Jon Hunter
dynamically at runtime. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/gpmc-smc91x.c | 30 +- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc-smc91x.c b/arch/arm/mach-omap2/gpmc-smc91x.c index 4b78338..61a0635 100644

[PATCH V3 06/18] ARM: OMAP2+: Convert NAND to use gpmc_cs_program_settings()

2013-03-15 Thread Jon Hunter
set once regardless of whether the gpmc timing is changing dynamically at runtime. The programming of where the wait-pin is also moved slightly, but this will not have any impact to existing devices as no boards are currently setting the dev_ready variable. Signed-off-by: Jon Hunter --- arch/arm

[PATCH V3 05/18] ARM: OMAP2+: Convert ONENAND to use gpmc_cs_program_settings()

2013-03-15 Thread Jon Hunter
Convert the OMAP2+ ONENAND code to use the gpmc_cs_program_settings() function for configuring the various GPMC options instead of directly programming the CONFIG1 register. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/gpmc-onenand.c | 61 +++- 1 file

[PATCH V3 03/18] ARM: OMAP2+: Add structure for storing GPMC settings

2013-03-15 Thread Jon Hunter
timing structure and some are directly programmed into the GPMC configuration register. Add a new structure to store these options and convert code to use this structure. Adding this structure will allow us to create a common function for configuring these options. Signed-off-by: Jon Hunter

[PATCH V3 04/18] ARM: OMAP2+: Add function for configuring GPMC settings

2013-03-15 Thread Jon Hunter
support the address-address-data multiplexing mode. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/gpmc.c | 100 arch/arm/mach-omap2/gpmc.h |6 +++ 2 files changed, 106 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2

[PATCH V3 02/18] ARM: OMAP2+: Add variable to store number of GPMC waitpins

2013-03-15 Thread Jon Hunter
not using device-tree is fine. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/gpmc.c | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index ef655d9..88a261c 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach

[PATCH V3 01/18] ARM: OMAP2+: Simplify code configuring ONENAND devices

2013-03-15 Thread Jon Hunter
ngs(), but only the flags member of the structure is used. Simplify the code by only passing the flags member and not the entire structure. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/gpmc-onenand.c | 26 ++ 1 file changed, 10 insertions(+), 16 deletions(-) diff --

[PATCH V3 00/18] ARM: OMAP2+: GPMC clean-up and DT update

2013-03-15 Thread Jon Hunter
github.com/jonhunter/linux/tree/omap-gpmc-for-v3.10 [4] https://github.com/jonhunter/linux/tree/omap-dt-for-v3.10 Javier Martinez Canillas (1): ARM: OMAP2+: return -ENODEV if GPMC child device creation fails Jon Hunter (17): ARM: OMAP2+: Simplify code configuring ONENAND devices ARM: OMA

Re: [PATCH 2/8] ARM: dts: OMAP36xx: move CPU OPP tables to device tree

2013-03-15 Thread Jon Hunter
On 03/15/2013 09:38 AM, Nishanth Menon wrote: > On 09:26-20130315, Jon Hunter wrote: >> >> On 03/15/2013 08:56 AM, Nishanth Menon wrote: >>> On 16:44-20130314, Jon Hunter wrote: >>>> >>>> On 03/14/2013 03:58 PM, Nishanth Menon wrote: >>>

Re: [PATCH 0/8] ARM: OMAP3+: Switch to use DT based cpu0-cpufreq driver

2013-03-15 Thread Jon Hunter
On 03/15/2013 09:21 AM, Nishanth Menon wrote: > On 10:48-20130315, Santosh Shilimkar wrote: >> On Friday 15 March 2013 02:28 AM, Nishanth Menon wrote: >>> The following series arose from trying to use BeagleBoard-XM (OMAP3 variant) >>> for doing CPU DVFS using cpufreq-cpu0. This series will eventu

Re: [PATCH 2/8] ARM: dts: OMAP36xx: move CPU OPP tables to device tree

2013-03-15 Thread Jon Hunter
On 03/15/2013 08:56 AM, Nishanth Menon wrote: > On 16:44-20130314, Jon Hunter wrote: >> >> On 03/14/2013 03:58 PM, Nishanth Menon wrote: >>> Add DT OPP table for OMAP36xx family of devices. This data is >>> decoded by OF with of_init_opp_table() helper functio

[PATCH V2 8/8] ARM: dts: OMAP3: Add support for OMAP3430 SDP board

2013-03-15 Thread Jon Hunter
Adds basic device-tree support for OMAP3430 SDP board which has 256MB of RAM, 128MB ONENAND flash, 256MB NAND flash and uses the TWL4030 power management IC. Signed-off-by: Jon Hunter --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/omap3430-sdp.dts | 141

[PATCH V2 3/8] ARM: dts: OMAP2+: Add SDMA controller bindings and nodes

2013-03-15 Thread Jon Hunter
Add SDMA controller binding for OMAP2+ devices and populate DMA client information for SPI and MMC peripheral on OMAP3+ devices. Please note that OMAP24xx devices do not have SPI and MMC bindings available yet and so DMA client information is not populated. Signed-off-by: Jon Hunter Reviewed-by

  1   2   3   4   >