RE: [PATCH v5] Input: matrix-keypad - Add device tree support

2012-11-14 Thread AnilKumar, Chimata
On Sun, Nov 11, 2012 at 08:05:18, Rob Herring wrote: > On 11/10/2012 03:40 PM, AnilKumar Ch wrote: > > Add device tree support to matrix keypad driver and usage details > > are added to device tree documentation. Driver was tested on AM335x > > EVM. > > > > Signed-off-by: AnilKumar Ch > > Acked-

Re: [PATCH] backlight: Add of_find_backlight_by_node() function

2012-11-14 Thread Thierry Reding
On Thu, Nov 15, 2012 at 10:30:11AM +0900, Jingoo Han wrote: > On Friday, November 09, 2012 11:05 PM Thierry Reding wrote > > > > This function finds the struct backlight_device for a given device tree > > node. A dummy function is provided so that it safely compiles out if OF > > support is disabl

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-14 Thread David Gibson
On Tue, Nov 13, 2012 at 03:38:18PM +0200, Pantelis Antoniou wrote: > Hi Grant, > > On Nov 13, 2012, at 2:24 PM, Grant Likely wrote: > > On Tue, Nov 13, 2012 at 8:09 AM, Pantelis Antoniou [snip] > My intention wasn't never to make overlays overly portable. My intention > was to make them in a way

Re: [PATCH v3 3/4] dtc/libfdt: introduce fdt types for annotation by endian checkers

2012-11-14 Thread Kim Phillips
On Thu, 15 Nov 2012 15:43:40 +1100 David Gibson wrote: > On Wed, Nov 14, 2012 at 06:59:58PM -0600, Kim Phillips wrote: > > +#define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) > > +#define __SWAB16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) > > +#define __SWAB32(x) ((EXTR

Re: [PATCH v3 3/4] dtc/libfdt: introduce fdt types for annotation by endian checkers

2012-11-14 Thread David Gibson
On Wed, Nov 14, 2012 at 06:59:58PM -0600, Kim Phillips wrote: > Projects such as linux and u-boot run sparse on libfdt. libfdt > contains the notion of endianness via usage of endian conversion > functions such as fdt32_to_cpu. As such, in order to pass endian > checks, libfdt has to annotate its

Re: [PATCH 4/4] dtc/libfdt: sparse fixes

2012-11-14 Thread David Gibson
On Wed, Nov 14, 2012 at 06:46:30PM -0600, Kim Phillips wrote: > On Wed, 14 Nov 2012 21:23:03 +1100 > David Gibson wrote: > > > Hrm. The patch comment shows a lot of sparse warnings, but the patch > > looks like the basic conversion of the code from uint32_t to > > annontated fdt32_t types. > >

Re: [PATCH V5 0/7] ARM: AM33XX: net: Add DT support to CPSW and MDIO driver

2012-11-14 Thread David Miller
From: Mugunthan V N Date: Thu, 15 Nov 2012 00:37:53 +0530 > This patch-series adds support for, > > [1/7]: Typo mistake in CPSW driver while invoking runtime_pm api's > > [2/7]: Adds parent<->child relation between CPSW & MDIO module inside cpsw >driver, as in case of AM33XX, the resour

Re: [PATCH] backlight: Add of_find_backlight_by_node() function

2012-11-14 Thread Jingoo Han
On Friday, November 09, 2012 11:05 PM Thierry Reding wrote > > This function finds the struct backlight_device for a given device tree > node. A dummy function is provided so that it safely compiles out if OF > support is disabled. > > Signed-off-by: Thierry Reding CC'ed Andrew Morton Hi Thier

[PATCH v2 4/4] dtc/libfdt: uintXX_t to fdtXX_t conversion

2012-11-14 Thread Kim Phillips
Now that fdt types are defined and annotated, use them to make sparse happy. Signed-off-by: Kim Phillips --- v2: reworded commit text libfdt/fdt.c | 2 +- libfdt/fdt_ro.c | 2 +- libfdt/fdt_rw.c | 4 ++-- libfdt/fdt_sw.c | 4 ++-- libfdt/fdt_wip.c | 2 +- libfdt/libfdt.h | 32 +

[PATCH v2 1/4] dtc/tests: don't include fdt.h prior to libfdt.h

2012-11-14 Thread Kim Phillips
tests will need fdt type definitions provided in a subsequent patch to libfdt_env.h. Since libfdt.h includes libfdt_env.h in the right order anyway, just remove the fdt.h include. Signed-off-by: Kim Phillips Acked-by: David Gibson --- v2: added David's Acked-by. tests/add_subnode_with_nops.c

[PATCH v3 3/4] dtc/libfdt: introduce fdt types for annotation by endian checkers

2012-11-14 Thread Kim Phillips
Projects such as linux and u-boot run sparse on libfdt. libfdt contains the notion of endianness via usage of endian conversion functions such as fdt32_to_cpu. As such, in order to pass endian checks, libfdt has to annotate its fdt variables such that sparse can warn when mixing bitwise and regul

[PATCH v2 2/4] dtc/fdtdump: include libfdt_env.h prior to fdt.h

2012-11-14 Thread Kim Phillips
in order to get the upcoming fdt type definitions. Signed-off-by: Kim Phillips Acked-by: David Gibson --- v2: added David's Acked-by. fdtdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdtdump.c b/fdtdump.c index 207a46d..8a7ae72 100644 --- a/fdtdump.c +++ b/fdtdump.

Re: [PATCH 4/4] dtc/libfdt: sparse fixes

2012-11-14 Thread Kim Phillips
On Wed, 14 Nov 2012 21:23:03 +1100 David Gibson wrote: > Hrm. The patch comment shows a lot of sparse warnings, but the patch > looks like the basic conversion of the code from uint32_t to > annontated fdt32_t types. not sure what you're getting at: isn't this to be expected? Anyway, I'm going

Re: [PATCH v3 4/4] ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND

2012-11-14 Thread Daniel Mack
On 11.11.2012 02:56, Daniel Mack wrote: > On 07.11.2012 16:37, Philip, Avinash wrote: >> On Wed, Nov 07, 2012 at 15:18:37, Daniel Mack wrote: >>> On 05.11.2012 14:29, Philip, Avinash wrote: On Mon, Nov 05, 2012 at 18:28:22, Daniel Mack wrote: > On 05.11.2012 12:03, Philip, Avinash wrote: >

Re: [PATCH 3.7.0-rc4] of/net/mdio-gpio: Fix pdev->id issue when using devicetrees.

2012-11-14 Thread David Miller
From: Srinivas KANDAGATLA Date: Tue, 13 Nov 2012 14:26:13 + > From: Srinivas Kandagatla > > When the mdio-gpio driver is probed via device trees, the platform > device id is set as -1, However the id is re-used in the code while > creating an mdio bus. > So, setting up the id via aliases fr

Re: [PATCH v3 07/11] ARM: Exynos4: allow legacy board support to specify xxti and xusbxti clock speed

2012-11-14 Thread Tomasz Figa
On Thursday 15 of November 2012 03:37:29 Thomas Abraham wrote: > The clock speed of xxti and xusbxti clocks depends on the oscillator > used on the board to generate these clocks. For non-dt platforms, allow > the board support for those platforms to set the clock frequency of > xxti and xusbxti cl

Re: [PATCH v3 04/11] ARM: Exynos4: Migrate clock support to common clock framework

2012-11-14 Thread Tomasz Figa
On Thursday 15 of November 2012 03:37:26 Thomas Abraham wrote: > Remove Samsung specific clock support in Exynos4 and migrate to use > common clock framework. > > Cc: Kukjin Kim > Signed-off-by: Thomas Abraham > --- > arch/arm/mach-exynos/Kconfig |1 + > arch/arm/mach-exynos/M

Re: [PATCH v3 05/11] ARM: dts: add exynos4 clock controller nodes

2012-11-14 Thread Tomasz Figa
On Thursday 15 of November 2012 03:37:27 Thomas Abraham wrote: > Add clock controller nodes for Exynos4210 and Exynos4x12 SoC's. > > Cc: Kukjin Kim > Signed-off-by: Thomas Abraham > --- > arch/arm/boot/dts/exynos4210.dtsi |6 ++ > arch/arm/boot/dts/exynos4x12.dtsi |6 ++ > 2 fil

Re: [PATCH v3 03/11] clk: exynos4: register clocks using common clock framework

2012-11-14 Thread Tomasz Figa
Hi Thomas, Looks mostly good, but I have some minor comments inline. On Thursday 15 of November 2012 03:37:25 Thomas Abraham wrote: > The Exynos4 clocks are statically listed and registered using the > Samsung specific common clock helper functions. Both device tree based > clock lookup and clkde

Re: [PATCH v3 01/11] clk: samsung: add common clock framework helper functions for Samsung platforms

2012-11-14 Thread Tomasz Figa
Hi Thomas, Looks mostly good, but I have some minor comments inline. On Thursday 15 of November 2012 03:37:23 Thomas Abraham wrote: > All Samsung platforms include different types of clock including > fixed-rate, mux, divider and gate clock types. There are typically > hundreds of such clocks on

Re: [PATCH v3 2/2] Add documentation for tca6507 devicetree bindings.

2012-11-14 Thread Bryan Wu
On Wed, Nov 14, 2012 at 11:26 AM, Stephen Warren wrote: > On 11/13/2012 06:05 PM, Bryan Wu wrote: >> It looks fine to me, but I need a DT maintainer's ack. Stephen, could >> you help on this. I will merge this patch via my tree. > > I'm not actually a DT maintainer; I CC'd Grant and Rob. Sure, th

Re: [PATCH] drivers/of: Constify device_node->name and ->path_component_name

2012-11-14 Thread David Miller
From: Grant Likely Date: Wed, 14 Nov 2012 22:42:26 + > On Wed, Nov 14, 2012 at 10:33 PM, David Miller wrote: >> >> You're making other changes here, such as the kstrdup() stuff, >> seperate that into another patch. > > It's part of the same change. The original code was allocating a > buffe

Re: [PATCH] drivers/of: Constify device_node->name and ->path_component_name

2012-11-14 Thread Grant Likely
On Wed, Nov 14, 2012 at 10:46 PM, Julian Calaby wrote: > Hi Grant, > > On Thu, Nov 15, 2012 at 9:42 AM, Grant Likely > wrote: >> On Wed, Nov 14, 2012 at 10:33 PM, David Miller wrote: >>> >>> You're making other changes here, such as the kstrdup() stuff, >>> seperate that into another patch. >>

Re: [PATCH] drivers/of: Constify device_node->name and ->path_component_name

2012-11-14 Thread Julian Calaby
Hi Grant, On Thu, Nov 15, 2012 at 9:42 AM, Grant Likely wrote: > On Wed, Nov 14, 2012 at 10:33 PM, David Miller wrote: >> >> You're making other changes here, such as the kstrdup() stuff, >> seperate that into another patch. > > It's part of the same change. The original code was allocating a >

Re: [PATCH] drivers/of: Constify device_node->name and ->path_component_name

2012-11-14 Thread Grant Likely
On Wed, Nov 14, 2012 at 10:33 PM, David Miller wrote: > > You're making other changes here, such as the kstrdup() stuff, > seperate that into another patch. It's part of the same change. The original code was allocating a buffer, saving the pointer in the name field and then modifying it. Making

Re: [PATCH] drivers/of: Constify device_node->name and ->path_component_name

2012-11-14 Thread David Miller
You're making other changes here, such as the kstrdup() stuff, seperate that into another patch. ___ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss

[PATCH] drivers/of: Constify device_node->name and ->path_component_name

2012-11-14 Thread Grant Likely
Neither of these should ever be changed once set. Make them const Build tested with defconfigs on ARM, PowerPC, Sparc, MIPS, x86 among others. Signed-off-by: Grant Likely Cc: Benjamin Herrenschmidt Cc: "David S. Miller" --- arch/powerpc/platforms/powermac/pfunc_core.c |2 +- arch/powerpc/

Re: [PATCH V6 2/2] kbuild: run the pre-processor on *.dts files

2012-11-14 Thread Grant Likely
On Wed, 14 Nov 2012 13:18:24 -0700, Stephen Warren wrote: > On 11/14/2012 12:25 PM, Grant Likely wrote: > > On Mon, 12 Nov 2012 13:58:27 -0700, Stephen Warren > > wrote: > >> From: Stephen Warren > >> > >> Modify cmd_dtc to run the C pre-processor on the input .dts file before > >> passing it

Re: [RFC PATCH 3.7.0-rc2] dt: match id-table before creating platform device

2012-11-14 Thread Grant Likely
On Fri, 26 Oct 2012 08:12:38 +0100, Srinivas KANDAGATLA wrote: > On 23/10/12 14:15, Rob Herring wrote: > re-sending my reply again, as it did not appear in my inbox from dt > mailing list. > > Adding lkml. DT patches should go to both lists. > > > > On 10/23/2012 05:30 AM, Srinivas KANDAGATLA wro

[PATCH v3 11/11] ARM: Exynos: add support for mct clock setup

2012-11-14 Thread Thomas Abraham
Add support for mct clock lookup and setup to ensure that the mct clock is has been turned on. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/mct.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-exynos/mct.c b/arch/arm/mach-ex

[PATCH v3 10/11] ARM: Exynos: use fin_pll clock as the tick clock source for mct

2012-11-14 Thread Thomas Abraham
With the migration of Exynos4 clocks to use common clock framework, the old styled 'xtal' clock is not used anymore. Instead, the clock 'fin_pll' is used as the tick clock for mct controller. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/mct.c |8 +--- 1 files ch

[PATCH v3 09/11] ARM: Exynos4: remove auxdata table from machine file

2012-11-14 Thread Thomas Abraham
With support for device tree based clock lookup now available, remove the auxdata table from exynos4 dt-enabled machine file. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/mach-exynos4-dt.c | 68 +--- 1 files changed, 2 insertions(+), 66 del

[PATCH v3 08/11] ARM: dts: add clock provider information for all controllers in Exynos4 SoC

2012-11-14 Thread Thomas Abraham
For all supported peripheral controllers on Exynos4, add clock lookup information. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/boot/dts/exynos4.dtsi | 48 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/e

[PATCH v3 07/11] ARM: Exynos4: allow legacy board support to specify xxti and xusbxti clock speed

2012-11-14 Thread Thomas Abraham
The clock speed of xxti and xusbxti clocks depends on the oscillator used on the board to generate these clocks. For non-dt platforms, allow the board support for those platforms to set the clock frequency of xxti and xusbxti clocks. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/mac

[PATCH v3 06/11] ARM: dts: add xxti and xusbxti fixed rate clock nodes for exynos4 based platforms

2012-11-14 Thread Thomas Abraham
The clock frequency of xxti and xusbxti clocks is dependent on the frequency of the on-board oscillator that is used to generate these clocks. So allow the frequency of these clocks to be specfied from device tree. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/boot/dts/exynos4210-

[PATCH v3 05/11] ARM: dts: add exynos4 clock controller nodes

2012-11-14 Thread Thomas Abraham
Add clock controller nodes for Exynos4210 and Exynos4x12 SoC's. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/boot/dts/exynos4210.dtsi |6 ++ arch/arm/boot/dts/exynos4x12.dtsi |6 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ex

[PATCH v3 03/11] clk: exynos4: register clocks using common clock framework

2012-11-14 Thread Thomas Abraham
The Exynos4 clocks are statically listed and registered using the Samsung specific common clock helper functions. Both device tree based clock lookup and clkdev based clock lookups are supported. Cc: Mike Turquette Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- .../devicetree/bindings/clock/

[PATCH v3 02/11] clk: samsung: add pll clock registration helper functions

2012-11-14 Thread Thomas Abraham
There are several types of pll clocks used in Samsung SoC's and these pll clocks can be represented as Samsung specific pll clock types and registered with the common clock framework. Add support for pll35xx, pll36xx, pll45xx and pll46xx clock types and helper functions to register them. Cc: Mike

[PATCH v3 01/11] clk: samsung: add common clock framework helper functions for Samsung platforms

2012-11-14 Thread Thomas Abraham
All Samsung platforms include different types of clock including fixed-rate, mux, divider and gate clock types. There are typically hundreds of such clocks on each of the Samsung platforms. To enable Samsung platforms to register these clocks using the common clock framework, a bunch of utility fun

[PATCH v3 00/11] clk: exynos4: migrate to common clock framework

2012-11-14 Thread Thomas Abraham
This patch series migrates the Samsung Exynos4 SoC clock code to adopt the common clock framework. The use of Samsung specific clock structures has been removed and all board support code has been updated. imx-style of clock registration and lookup has been adopted for device tree based exynos4 pla

Re: [PATCH 01/17] of: add dma-mask binding

2012-11-14 Thread Russell King - ARM Linux
On Wed, Nov 14, 2012 at 02:56:14PM -0600, Rob Herring wrote: > On 11/14/2012 12:00 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > > On 21:55 Tue 13 Nov , Rob Herring wrote: > >> On 11/12/2012 02:52 AM, Wenyou Yang wrote: > >>> + > >>> + dev->dma_mask = &dev->coherent_dma_mask; > >> > >> I don't

Re: [PATCH 01/17] of: add dma-mask binding

2012-11-14 Thread Rob Herring
On 11/14/2012 12:00 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 21:55 Tue 13 Nov , Rob Herring wrote: >> On 11/12/2012 02:52 AM, Wenyou Yang wrote: >>> From: Jean-Christophe PLAGNIOL-VILLARD >>> >>> This will allow each device to specify its dma-mask for this we use the >>> coherent_dma_m

Re: [PATCH 1/3] OF: Add helper for matching against linux, stdout-path

2012-11-14 Thread Grant Likely
On Fri, Nov 2, 2012 at 9:48 AM, Sascha Hauer wrote: > devicetrees may have a linux,stdout-path property in the chosen > node describing the console device. This adds a helper function > to match a device against this property so a driver can call > add_preferred_console for a matching device. > >

Re: [PATCH 1/3] OF: Add helper for matching against linux, stdout-path

2012-11-14 Thread Greg Kroah-Hartman
On Fri, Nov 02, 2012 at 10:48:52AM +0100, Sascha Hauer wrote: > devicetrees may have a linux,stdout-path property in the chosen > node describing the console device. This adds a helper function > to match a device against this property so a driver can call > add_preferred_console for a matching dev

Re: [PATCH] arm/dts: Add basic support for gta04 (Openmoko next generation) board.

2012-11-14 Thread Belisko Marek
CC' Grant & Rob On Tue, Oct 30, 2012 at 10:42 PM, Marek Belisko wrote: > Signed-off-by: Marek Belisko > --- > arch/arm/boot/dts/omap3-gta04.dts | 65 > + > 1 file changed, 65 insertions(+) > create mode 100644 arch/arm/boot/dts/omap3-gta04.dts > > diff --

Re: [PATCH V6 2/2] kbuild: run the pre-processor on *.dts files

2012-11-14 Thread Stephen Warren
On 11/14/2012 12:25 PM, Grant Likely wrote: > On Mon, 12 Nov 2012 13:58:27 -0700, Stephen Warren > wrote: >> From: Stephen Warren >> >> Modify cmd_dtc to run the C pre-processor on the input .dts file before >> passing it to dtc for final compilation. This allows the use of #define >> and #inclu

Re: [PATCH v3 2/2] Add documentation for tca6507 devicetree bindings.

2012-11-14 Thread Stephen Warren
On 11/13/2012 06:05 PM, Bryan Wu wrote: > It looks fine to me, but I need a DT maintainer's ack. Stephen, could > you help on this. I will merge this patch via my tree. I'm not actually a DT maintainer; I CC'd Grant and Rob. Marek probably wants to repost the whole patch to them. Comments below.

Re: [PATCH V6 2/2] kbuild: run the pre-processor on *.dts files

2012-11-14 Thread Grant Likely
On Mon, 12 Nov 2012 13:58:27 -0700, Stephen Warren wrote: > From: Stephen Warren > > Modify cmd_dtc to run the C pre-processor on the input .dts file before > passing it to dtc for final compilation. This allows the use of #define > and #include within the .dts file. > > Signed-off-by: Stephen

Re: [PATCH V6 1/2] kbuild: centralize .dts->.dtb rule

2012-11-14 Thread Grant Likely
On Mon, 12 Nov 2012 13:58:26 -0700, Stephen Warren wrote: > From: Stephen Warren > > All architectures that use cmd_dtc do so in the same way. Move the build > rule to a central location to avoid duplication. > > Update Documentation/kbuild to remove the explicit call to cmd_dtc from > the exa

Re: [PATCH v5 4/4] misc: sram: add support for configurable allocation order

2012-11-14 Thread Grant Likely
On Thu, 18 Oct 2012 16:27:33 +0200, Philipp Zabel wrote: > From: Matt Porter > > Adds support for setting the genalloc pool's minimum allocation > order via DT or platform data. The allocation order is optional > for both the DT property and platform data case. If it is not > present then the o

[PATCH V5 3/7] cpsw: simplify the setup of the register pointers

2012-11-14 Thread Mugunthan V N
From: Richard Cochran Instead of having a host of different register offsets in the device tree, this patch simplifies the CPSW code by letting the driver set the proper register offsets automatically, based on the CPSW version. Signed-off-by: Richard Cochran Signed-off-by: Mugunthan V N ---

[PATCH V5 2/7] net: cpsw: Add parent<->child relation support between cpsw and mdio

2012-11-14 Thread Mugunthan V N
From: Vaibhav Hiremath CPGMAC SubSystem consist of various sub-modules, like, mdio, cpdma, cpsw, etc... These sub-modules are also used in some of Davinci family of devices. Now based on requirement, use-case and available technology nodes the integration of these sub-modules varies across device

[PATCH V5 5/7] ARM: OMAP3+: hwmod: Add AM33XX HWMOD data for davinci_mdio module

2012-11-14 Thread Mugunthan V N
This patch adds hwmod entry for davinci MDIO module, creating parent<->child relationship between CPSW and MDIO module. This Parent-child relation is required in order to use common resources like, clock, but still maintaining the logical separation between them. CPGMAC SubSystem consist of vario

[PATCH V5 7/7] arm/dts: am33xx: Add CPSW and MDIO module nodes for AM33XX

2012-11-14 Thread Mugunthan V N
Add CPSW and MDIO related device tree data for AM33XX. Also enable them into board/evm dts files by providing respective phy-id. Signed-off-by: Mugunthan V N Signed-off-by: Vaibhav Hiremath Cc: Benoit Cousson Acked-by: Peter Korsgaard Acked-by: Richard Cochran --- arch/arm/boot/dts/am335x-bo

[PATCH V5 1/7] net: davinci_mdio: Fix typo mistake in calling runtime-pm api

2012-11-14 Thread Mugunthan V N
From: Vaibhav Hiremath By mistake (most likely a copy-paste), instead of pm_runtime_get_sync() api, driver is calling pm_runtime_put_sync() api in resume callback function. The bug was introduced by commit id (ae2c07aaf74: davinci_mdio: runtime PM support). Now, the reason why it didn't impact f

[PATCH V5 0/7] ARM: AM33XX: net: Add DT support to CPSW and MDIO driver

2012-11-14 Thread Mugunthan V N
This patch-series adds support for, [1/7]: Typo mistake in CPSW driver while invoking runtime_pm api's [2/7]: Adds parent<->child relation between CPSW & MDIO module inside cpsw driver, as in case of AM33XX, the resources are shared and common register bit-field is provided to contr

[PATCH V5 6/7] ARM: OMAP2+: omap2plus_defconfig: Enable CPSW support

2012-11-14 Thread Mugunthan V N
Enable CPSW support in defconfig which is present in AM33xx SoC Signed-off-by: Mugunthan V N Acked-by: Richard Cochran --- arch/arm/configs/omap2plus_defconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/oma

[PATCH V5 4/7] net: cpsw: halt network stack before halting the device during suspend

2012-11-14 Thread Mugunthan V N
Move network stack halt APIs before halting the hardware to ensure no packets are queued to hardware during closing the device during suspend sequence. Signed-off-by: Mugunthan V N Acked-by: Richard Cochran --- drivers/net/ethernet/ti/cpsw.c |6 +++--- 1 files changed, 3 insertions(+), 3 de

[PATCH 0/3] can: Add D_CAN raminit support to am335x-evm

2012-11-14 Thread AnilKumar Ch
This patch series adds d_can raminit support to c_can/d_can driver, which is required to init/de-init D_CAN message RAM (holds message objects). Added corresponding DT changes to get resource of RAMINIT register and device instance. These patches were tested on AM335x-EVM along with pinctrl data a

[PATCH 1/3] can: c_can: Add d_can raminit support

2012-11-14 Thread AnilKumar Ch
Add D_CAN raminit support to C_CAN driver to enable D_CAN RAM, which holds all the message objects during transmission or receiving of data. This initialization/de-initialization should be done in synchronous with D_CAN clock. In case of AM335X-EVM (active user of D_CAN driver) message RAM is cont

[PATCH 3/3] ARM: dts: AM33XX: Add memory resource to d_can node

2012-11-14 Thread AnilKumar Ch
Add a new address space/memory resource to d_can device tree node. D_CAN RAM initialization is achieved through RAMINIT register which is part of AM33XX control module address space. D_CAN RAM init or de-init should be done by writing instance corresponding value to control module register. Till w

[PATCH 2/3] ARM: dts: AM33XX: Add d_can instances to aliases

2012-11-14 Thread AnilKumar Ch
Add d_can instances to aliases node to get the D_CAN instance number from the driver. To initialize D_CAN message RAM, corresponding instance number is required. To initialize instance 0 message RAM then 0x1 should be written and for instance 1 message RAM, 0x2 should be written to control module

Re: [PATCH] of/mdio: fix build errors when CONFIG_OF isn't set

2012-11-14 Thread Grant Likely
On Wed, Nov 14, 2012 at 5:10 PM, Rob Herring wrote: > On 11/14/2012 10:11 AM, Grant Likely wrote: >> On Wed, 10 Oct 2012 12:31:23 -0400, Sasha Levin >> wrote: >>> Commit f9dc9ac5 ("of/mdio: Add dummy functions in of_mdio.h.") has added >>> empty stubs into of_mdio.h which were not static, this c

Re: [PATCH] of/mdio: fix build errors when CONFIG_OF isn't set

2012-11-14 Thread Rob Herring
On 11/14/2012 10:11 AM, Grant Likely wrote: > On Wed, 10 Oct 2012 12:31:23 -0400, Sasha Levin > wrote: >> Commit f9dc9ac5 ("of/mdio: Add dummy functions in of_mdio.h.") has added >> empty stubs into of_mdio.h which were not static, this causes build errors >> when these symbols were defined acros

Re: [PATCH 9/9] usb: chipidea: udc: configure iso endpoints

2012-11-14 Thread Sergei Shtylyov
Hello. On 11/14/2012 07:19 PM, Michael Grzeschik wrote: > The implementation is derived from the fsl_udc_core code in > fsl_ep_enable and makes basic iso handling possible. > Signed-off-by: Michael Grzeschik > Signed-off-by: Marc Kleine-Budde > --- > drivers/usb/chipidea/udc.c | 12

Re: [PATCH] of_i2c: I2C child node 10-bit client addressing

2012-11-14 Thread Grant Likely
On Fri, 12 Oct 2012 09:12:48 +0530, Bharat Reddy wrote: > I2C clients which has 10 bit address, struct i2c_board_info, > member "flags = I2C_CLIENT_TEN" is needed. > > Signed-off-by: Bharat Kumar Reddy Gooty Also, the patch appears to have been corrupted because it wasn't posted as plain text.

Re: [PATCH] of_i2c: I2C child node 10-bit client addressing

2012-11-14 Thread Grant Likely
On Fri, 12 Oct 2012 09:12:48 +0530, Bharat Reddy wrote: > I2C clients which has 10 bit address, struct i2c_board_info, > member "flags = I2C_CLIENT_TEN" is needed. > > Signed-off-by: Bharat Kumar Reddy Gooty > --- > drivers/of/of_i2c.c |4 > 1 file changed, 4 insertions(+) > > diff --

[PATCH 4/9] usb: chipidea: ci13xxx-imx: add "dr_mode" property to device tree bindings

2012-11-14 Thread Michael Grzeschik
From: Marc Kleine-Budde Its necessary to limit a hostonly soc to its single role, since debugging has shown that reading on the "CAP_DCCPARAMS" register inside a host-only port, what ci_hdrc_gadget_init does, can lead to an instable behaviour of the IC. This patch allows the device tree to limit

[PATCH 6/9] usb: chipidea: add PTW and PTS handling

2012-11-14 Thread Michael Grzeschik
This patch makes it possible to configure the PTW and PTS bits inside the portsc register for host and device mode before the driver starts and the phy can be addressed as hardware implementation is designed. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/usb/chip

[PATCH 2/9] usb: chipidea: ci13xxx_imx: add 2nd and 3rd clock to support imx5x and newer

2012-11-14 Thread Michael Grzeschik
This patch adds support for a second and third clock to the chipidea driver. On modern freescale ARM cores like the imx51, imx53 and imx6q three clocks ("ahb", "ipg" and "per") must be enabled in order to access the USB core. In the original driver, the clock was requested without specifying the c

[PATCH 3/9] usb: chipidea: ci13xxx-imx: create dynamic platformdata

2012-11-14 Thread Michael Grzeschik
This patch removes the limitation of having only one instance of the ci13xxx-imx platformdata and makes different configurations possible. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipidea/ci13xxx_imx.c | 27 --- 1 file changed,

[PATCH 1/9] usb: chipidea: pci: mark platformdata as static and __devinitdata

2012-11-14 Thread Michael Grzeschik
From: Marc Kleine-Budde Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik --- drivers/usb/chipidea/ci13xxx_pci.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/ci13xxx_pci.c b/drivers/usb/chipidea/ci13xxx_pci.c index 918e149..

[PATCH 8/9] usb: chipidea: udc: remove unlocked ep_queue which can lead to an race

2012-11-14 Thread Michael Grzeschik
Its not nessecary to call ep_queue unlocked while in the own driver. So we move the function to an unlocked version and call it conditionaly. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipidea/udc.c | 115 +--- 1 f

[PATCH 9/9] usb: chipidea: udc: configure iso endpoints

2012-11-14 Thread Michael Grzeschik
The implementation is derived from the fsl_udc_core code in fsl_ep_enable and makes basic iso handling possible. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipidea/udc.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/d

[PATCH 7/9] usb: chipidea: udc: add force-full-speed option

2012-11-14 Thread Michael Grzeschik
This patch makes it possible to set the chipidea udc into full-speed only mode. It can be set by the oftree property "force-full-speed". Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipidea/bits.h |1 + drivers/usb/chipidea/core.c |5 + includ

[PATCH 0/9] chipidea fixes and features

2012-11-14 Thread Michael Grzeschik
Marc Kleine-Budde (2): usb: chipidea: pci: mark platformdata as static and __devinitdata usb: chipidea: ci13xxx-imx: add "dr_mode" property to device tree bindings Michael Grzeschik (7): usb: chipidea: ci13xxx_imx: add 2nd and 3rd clock to support imx5x and newer usb: chipidea: ci13xxx-imx

[PATCH 5/9] usb: add phy connection by phy-mode

2012-11-14 Thread Michael Grzeschik
This patch makes it possible to set the connection of the usbphy to the soc. It is derived from the oftree bindings for the ethernetphy and adds similar helperfunctions. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/of/Kconfig|4 drivers/of/Makef

Re: [PATCH] of/mdio: fix build errors when CONFIG_OF isn't set

2012-11-14 Thread Grant Likely
On Wed, 10 Oct 2012 12:31:23 -0400, Sasha Levin wrote: > Commit f9dc9ac5 ("of/mdio: Add dummy functions in of_mdio.h.") has added > empty stubs into of_mdio.h which were not static, this causes build errors > when these symbols were defined across several objects. > > Fix it by marking those stub

Re: [PATCH] spi: omap2-mcspi: remove duplicated include from spi-omap2-mcspi.c

2012-11-14 Thread Grant Likely
On Sun, 7 Oct 2012 21:29:21 +0800, Wei Yongjun wrote: > From: Wei Yongjun > > Remove duplicated include. Applied, thanks. > dpatch engine is used to auto generate this patch. > (https://github.com/weiyj/dpatch) Since I have to manually remove the above cruft from commit logs, can you please o

Re: [PATCH 2/6] usb: chipidea: usbmisc: rename file, struct and functions to usbmisc_imx

2012-11-14 Thread Michael Grzeschik
On Wed, Nov 14, 2012 at 09:57:50AM -0200, Fabio Estevam wrote: > Hi Michael, > > On Wed, Nov 14, 2012 at 9:55 AM, Michael Grzeschik > wrote: > > This driver will be used for every Freescale SoC which has this misc > > memory layout to control the basic usb handling. So better name this > > driver

Re: [PATCH 4/6] usb: chipidea: usbmisc: add support for ahb, ipg and per clock

2012-11-14 Thread Michael Grzeschik
On Wed, Nov 14, 2012 at 03:39:11PM +0200, Alexander Shishkin wrote: > Michael Grzeschik writes: > > > From: Marc Kleine-Budde > > > > This patch adds support for ahb, ipg and per clock, which is needed to > > support > > imx53. > > I would also suggest using a more elaborate wording here, some

Re: [PATCH 4/6] usb: chipidea: usbmisc: add support for ahb, ipg and per clock

2012-11-14 Thread Alexander Shishkin
Michael Grzeschik writes: > From: Marc Kleine-Budde > > This patch adds support for ahb, ipg and per clock, which is needed to support > imx53. I would also suggest using a more elaborate wording here, some people might also be interested what are the different clocks for (like, interface, peri

Re: [PATCH 2/6] usb: chipidea: usbmisc: rename file, struct and functions to usbmisc_imx

2012-11-14 Thread Alexander Shishkin
Michael Grzeschik writes: > On Wed, Nov 14, 2012 at 03:25:30PM +0200, Alexander Shishkin wrote: >> Michael Grzeschik writes: >> >> > This driver will be used for every Freescale SoC which has this misc >> > memory layout to control the basic usb handling. So better name this >> > driver, functi

Re: [PATCH 2/6] usb: chipidea: usbmisc: rename file, struct and functions to usbmisc_imx

2012-11-14 Thread Michael Grzeschik
On Wed, Nov 14, 2012 at 03:25:30PM +0200, Alexander Shishkin wrote: > Michael Grzeschik writes: > > > This driver will be used for every Freescale SoC which has this misc > > memory layout to control the basic usb handling. So better name this > > driver, function and struct names in a more gener

Re: [PATCH 2/6] usb: chipidea: usbmisc: rename file, struct and functions to usbmisc_imx

2012-11-14 Thread Alexander Shishkin
Michael Grzeschik writes: > This driver will be used for every Freescale SoC which has this misc > memory layout to control the basic usb handling. So better name this > driver, function and struct names in a more generic way. > > Reported-by: Fabio Estevam > Signed-off-by: Michael Grzeschik >

Re: [PATCH 1/6] usb: chipidea: usbmisc: unset global varibale usbmisc on driver remove

2012-11-14 Thread Alexander Shishkin
Michael Grzeschik writes: > From: Marc Kleine-Budde > > While there fix a potential race condition, first set usbmisc, then call > usbmisc_set_ops(). This should be really two separate patches, both of which could use more elaborate commit messages. That is, if you unset variable, what kind of

[RFC PATCH] ASoC: Samsung: Register the audio platform device

2012-11-14 Thread Padmavathi Venna
Audio platform device is not a hardware peripherial. So this device can't be added in the dt devices list. So expanded the module_platform_driver and registered this device using "platform_device_register_simple". Also added the soc-core pm ops structure in the audio platform driver. Signed-off-b

[RFC PATCH] ASoC: Samsung: Register the audio dma platform device

2012-11-14 Thread Padmavathi Venna
Audio dma device is not a hardware peripherial. So this device can't be added in the dt devices list. So expanded the module_platform_driver and registered this device using "platform_device_register_simple". Signed-off-by: Padmavathi Venna --- sound/soc/samsung/dma.c | 30

[PATCH 6/6] usb: chipidea: usbmisc: add post handling and errata fix for mx25

2012-11-14 Thread Michael Grzeschik
This adds a post handling routine which is called after ci13xxx_add_device was called. The first user is the mx25, which has to disable the external-vbus-divider after the ude has started. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- .../devicetree/bindings/usb/ci13xxx-

[PATCH 1/6] usb: chipidea: usbmisc: unset global varibale usbmisc on driver remove

2012-11-14 Thread Michael Grzeschik
From: Marc Kleine-Budde While there fix a potential race condition, first set usbmisc, then call usbmisc_set_ops(). Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik --- drivers/usb/chipidea/usbmisc_imx6q.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --

[PATCH 4/6] usb: chipidea: usbmisc: add support for ahb, ipg and per clock

2012-11-14 Thread Michael Grzeschik
From: Marc Kleine-Budde This patch adds support for ahb, ipg and per clock, which is needed to support imx53. Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik --- drivers/usb/chipidea/usbmisc_imx.c | 60 +++- 1 file changed, 45 insertions(+),

[PATCH 0/6] support other fsl SoCs with usbmisc + small fixes

2012-11-14 Thread Michael Grzeschik
Nearly every SoC from Freescale has this non-core usb registers. This series adds support for more users of this driver. Marc Kleine-Budde (3): usb: chipidea: usbmisc: unset global varibale usbmisc on driver remove usb: chipidea: usbmisc: prepare driver to handle more than one soc usb: c

[PATCH 3/6] usb: chipidea: usbmisc: prepare driver to handle more than one soc

2012-11-14 Thread Michael Grzeschik
From: Marc Kleine-Budde This attaches the usbmisc_ops to the of_device_id data and makes it possible to define special functions per soc. Signed-off-by: Marc Kleine-Budde Signed-off-by: Michael Grzeschik --- drivers/usb/chipidea/usbmisc_imx.c | 11 --- 1 file changed, 8 insertions(+

[PATCH 5/6] usb: chipidea: usbmisc: add mx53 support

2012-11-14 Thread Michael Grzeschik
This adds mx53 as the next user of the usbmisc driver and makes it possible to disable the overcurrent-detection of the internal phy. Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- drivers/usb/chipidea/usbmisc_imx.c | 28 1 file changed, 28

[PATCH 2/6] usb: chipidea: usbmisc: rename file, struct and functions to usbmisc_imx

2012-11-14 Thread Michael Grzeschik
This driver will be used for every Freescale SoC which has this misc memory layout to control the basic usb handling. So better name this driver, function and struct names in a more generic way. Reported-by: Fabio Estevam Signed-off-by: Michael Grzeschik Signed-off-by: Marc Kleine-Budde --- dr

Re: [PATCH V2 2/5] arm: mvebu: Added initial support for power managmement service unit

2012-11-14 Thread Will Deacon
On Wed, Nov 14, 2012 at 12:07:36AM +, Russell King - ARM Linux wrote: > On Mon, Nov 05, 2012 at 02:05:58PM +, Will Deacon wrote: > > On Mon, Oct 29, 2012 at 09:11:45PM +, Gregory CLEMENT wrote: > > > + /* Make sure value hits memory before reset */ > > > + dsb(); > > > > writel has bar

Re: [PATCH] dt: platform: Extract device name from device tree blob

2012-11-14 Thread Lee Jones
On Mon, 12 Nov 2012, Per Forlin wrote: > Add support to extract device name from device tree blob. > If the property "dev-name" is set in the DTS this name will > be used when creating the device. > The auxdata_lookup has precedence and will override > the "dev-name" property. > > Adding support

Re: [PATCH v2] i2c: i2c-gpio: fix name issue when i2c gpio node GT 1

2012-11-14 Thread Wolfram Sang
On Mon, Oct 15, 2012 at 03:51:17PM +0800, Bo Shen wrote: > When i2c-gpio node number is greater than 1, the name for each is same > So add the patch to fix it. > > The adap->name printing information is add by myself > > without this patch the log information is as following > ---<8--- > adap->na

[PATCH 11/11] ARM: dts: add the watchdog nodes for atmel SoC

2012-11-14 Thread Wenyou Yang
Signed-off-by: Wenyou Yang Cc: grant.lik...@secretlab.ca Cc: rob.herr...@calxeda.com Cc: r...@landley.net Cc: li...@arm.linux.org.uk Cc: devicetree-discuss@lists.ozlabs.org Cc: linux-...@vger.kernel.org --- .../devicetree/bindings/watchdog/atmel-wdt.txt | 14 ++ arch/arm/boot/dt

Re: [PATCH V2 4/5] arm: mm: Added support for PJ4B cpu and init routines

2012-11-14 Thread Russell King - ARM Linux
On Mon, Oct 29, 2012 at 10:11:47PM +0100, Gregory CLEMENT wrote: > + /* Auxiliary Debug Modes Control 2 Register */ > + mrc p15, 1, r0, c15, c1, 2 > + bic r0, r0, #(1 << 23) @ Enable fast LDR. > + orr r0, r0, #(1 << 25) @ Dont interleave write and snoop data. > +

  1   2   3   >