[PATCHv11 38/49] ARM: dts: am43xx clock data

2013-12-19 Thread Tero Kristo
This patch creates a unique node for each clock in the AM43xx power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am4372.dtsi| 28 ++ arch/arm/boot/dts/am43xx-clocks.dtsi | 656 ++ 2 files changed, 684 insertions

[PATCHv11 44/49] ARM: OMAP2+: io: use new clock init API

2013-12-19 Thread Tero Kristo
clk_init is now separated to a common function which gets called for all SoC:s, which initializes the DT clocks and calls the SoC specific clock init. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/common.h |2 +- arch/arm/mach-omap2/io.c | 32

[PATCHv11 43/49] ARM: OMAP2+: PRM: add support for initializing PRCM clock modules from DT

2013-12-19 Thread Tero Kristo
This patch provides top level functionality for the DT clock initialization. Clock tree is initialized hierarchically starting from IP modules (CM/PRM/PRCM) going down towards individual clock nodes, and finally initializing clockdomains once all the clocks are ready. Signed-off-by: Tero Kristo

[PATCHv11 28/49] CLK: TI: add am43xx clock init file

2013-12-19 Thread Tero Kristo
clk-43xx.c now contains the clock init functionality for am43xx, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- drivers/clk/ti/Makefile |2 +- drivers/clk/ti/clk-43xx.c | 118

[PATCHv11 18/49] CLK: TI: add support for clockdomain binding

2013-12-19 Thread Tero Kristo
Some OMAP clocks require knowledge about their parent clockdomain for book keeping purposes. This patch creates a new DT binding for TI clockdomains, which act as a collection of device clocks. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/clockdomain.txt | 24

[PATCHv11 20/49] CLK: TI: add omap4 clock init file

2013-12-19 Thread Tero Kristo
clk-44xx.c now contains the clock init functionality for omap4, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/clock.h |1 - drivers/clk/ti/Makefile |1

[PATCHv11 14/49] clk: ti: add composite clock support

2013-12-19 Thread Tero Kristo
This is a multipurpose clock node, which contains support for multiple sub-clocks. Uses basic composite clock type to implement the actual functionality, and TI specific gate, mux and divider clocks. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/composite.txt | 54

[PATCHv11 33/49] ARM: dts: DRA7: Change apll_pcie_m2_ck to fixed factor clock

2013-12-19 Thread Tero Kristo
From: J Keerthy This patch changes apll_pcie_m2_ck to fixed factor clock as there are no configurable divider associated to m2. Signed-off-by: J Keerthy Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/boot/dts/dra7xx-clocks.dtsi |9 +++-- 1

[PATCHv11 12/49] CLK: TI: Add DPLL clock support

2013-12-19 Thread Tero Kristo
The OMAP clock driver now supports DPLL clock type. This patch also adds support for DT DPLL nodes. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/dpll.txt | 75 +++ arch/arm/mach-omap2/clock.h| 164 +- arch/arm/mach-omap2/clock3xxx.h

[PATCHv11 13/49] CLK: TI: add autoidle support

2013-12-19 Thread Tero Kristo
TI clk driver now routes some of the basic clocks through own registration routine to allow autoidle support. This routine just checks a couple of device node properties and adds autoidle support if required, and just passes the registration forward to basic clocks. Signed-off-by: Tero Kristo

[PATCHv11 19/49] clk: ti: add support for basic mux clock

2013-12-19 Thread Tero Kristo
ti,mux-clock provides now a binding for basic mux support. This is just using the basic clock type. Signed-off-by: Tero Kristo --- Documentation/devicetree/bindings/clock/ti/mux.txt | 76 +++ drivers/clk/ti/Makefile|2 +- drivers/clk/ti/mux.c

[PATCHv11 17/49] CLK: TI: add support for gate clock

2013-12-19 Thread Tero Kristo
-gate-clock: clockdomain level gate control - ti,dss-gate-clock: gate clock with DSS specific hardware handling - ti,am35xx-gate-clock: gate clock with AM35xx specific hardware handling - ti,hsdiv-gate-clock: gate clock with OMAP36xx hardware errata handling Signed-off-by: Tero Kristo

[PATCHv11 32/49] ARM: dts: clk: Add apll related clocks

2013-12-19 Thread Tero Kristo
From: J Keerthy The patch adds a mux node to choose the parent of apll_pcie_ck node. Signed-off-by: J Keerthy Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 14 +++--- 1 file changed, 11 insertions(+), 3

[PATCHv11 21/49] CLK: TI: add omap5 clock init file

2013-12-19 Thread Tero Kristo
clk-54xx.c now contains the clock init functionality for omap5, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/io.c |1 + drivers/clk/ti/Makefile |1 + drivers

[PATCHv11 27/49] CLK: TI: add omap3 clock init file

2013-12-19 Thread Tero Kristo
clk-3xxx.c now contains the clock init functionality for omap3, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/clock3xxx.h |1 - drivers/clk/ti/Makefile

[PATCHv11 15/49] CLK: ti: add support for ti divider-clock

2013-12-19 Thread Tero Kristo
This patch adds support for TI divider clock binding, which simply uses the basic clock divider to provide the features needed. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/divider.txt | 114 ++ drivers/clk/ti/Makefile|3

[PATCHv11 16/49] clk: ti: add support for TI fixed factor clock

2013-12-19 Thread Tero Kristo
This behaves exactly in similar manner to basic fixed-factor-clock, but adds a few properties on top for handling clock hardware autoidling. Signed-off-by: Tero Kristo --- .../bindings/clock/ti/fixed-factor-clock.txt | 43 + drivers/clk/ti/Makefile

[PATCHv11 25/49] CLK: TI: add am33xx clock init file

2013-12-19 Thread Tero Kristo
+1,161 @@ +/* + * AM33XX Clock init + * + * Copyright (C) 2013 Texas Instruments, Inc + * Tero Kristo (t-kri...@ti.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software

[PATCHv11 22/49] CLK: TI: omap5: Initialize USB_DPLL at boot

2013-12-19 Thread Tero Kristo
From: Roger Quadros USB_DPLL must be initialized and locked at boot so that USB modules can work. Signed-off-by: Roger Quadros Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- drivers/clk/ti/clk-54xx.c | 18 +- 1 file changed, 17 insertions

[PATCHv11 24/49] CLK: TI: add dra7 clock init file

2013-12-19 Thread Tero Kristo
clk-7xx.c now contains the clock init functionality for dra7, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- drivers/clk/ti/Makefile |1 + drivers/clk/ti/clk-7xx.c | 332

[PATCHv11 10/49] CLK: TI: add DT alias clock registration mechanism

2013-12-19 Thread Tero Kristo
cific clock names. Signed-off-by: Tero Kristo --- drivers/clk/Makefile|1 + drivers/clk/ti/Makefile |3 +++ drivers/clk/ti/clk.c| 55 +++ include/linux/clk/ti.h | 42 4 files changed, 101 inser

[PATCHv11 23/49] CLK: TI: DRA7: Add APLL support

2013-12-19 Thread Tero Kristo
Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/apll.txt | 31 +++ drivers/clk/ti/Makefile|2 +- drivers/clk/ti/apll.c | 219 3 files changed, 251 insertions(+), 1 deletion(-) create mode

[PATCHv11 26/49] CLK: TI: add interface clock support for OMAP3

2013-12-19 Thread Tero Kristo
OMAP3 has interface clocks in addition to functional clocks, which require special handling for the autoidle and idle status register offsets mainly. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/interface.txt | 54 + arch/arm/mach-omap2/clock.h

[PATCHv11 05/49] clk: gate: add support for registering gate clock from descriptor

2013-12-19 Thread Tero Kristo
New clk_register_desc() call can be used to register this clock type now. Signed-off-by: Tero Kristo --- drivers/clk/clk-gate.c | 31 +++ include/linux/clk-provider.h | 19 +++ 2 files changed, 50 insertions(+) diff --git a/drivers/clk/clk

[PATCHv11 04/49] clk: mux: add support for registering mux clock from descriptor

2013-12-19 Thread Tero Kristo
New clk_register_desc() call can be used to register this clock type now. Signed-off-by: Tero Kristo --- drivers/clk/clk-mux.c| 37 + include/linux/clk-provider.h | 21 + 2 files changed, 58 insertions(+) diff --git a/drivers

[PATCHv11 09/49] clk: mux: add support for low level ops

2013-12-19 Thread Tero Kristo
Multiplexer clock can now be registered to use low level register access ops. Preferred initialization method is via clock description. Signed-off-by: Tero Kristo --- drivers/clk/clk-mux.c| 11 --- include/linux/clk-provider.h |4 2 files changed, 12 insertions(+), 3

[PATCHv11 00/49] ARM: TI SoC clock DT conversion

2013-12-19 Thread Tero Kristo
Hi, So, once again new series. I guess I should have addressed all comments for v10 except the extern sharing of __clk_of_table. Based on discussion with Mike, this should be fine to fix later. Main changes compared to v10: - rebased on top of 3.13-rc4 - applied clk_desc support from Mike, did so

[PATCHv11 03/49] clk: divider: add support for registering divider clock from descriptor

2013-12-19 Thread Tero Kristo
New clk_register_desc() call can be used to register this clock type now. Signed-off-by: Tero Kristo --- drivers/clk/clk-divider.c| 34 ++ include/linux/clk-provider.h | 23 +++ 2 files changed, 57 insertions(+) diff --git a/drivers

[PATCHv11 06/49] clk: add support for low level register ops

2013-12-19 Thread Tero Kristo
Low level register ops are needed for providing SoC or IP block specific access routines to clock registers. Subsequent patches add support for the low level ops for the individual clock drivers. Signed-off-by: Tero Kristo --- drivers/clk/clk.c| 28

[PATCHv11 02/49] clk: fixed-rate: add support for registering fixed-rate clock from descriptor

2013-12-19 Thread Tero Kristo
From: Mike Turquette New clk_register_desc() call can be used to register this clock type now. Signed-off-by: Mike Turquette Signed-off-by: Tero Kristo --- drivers/clk/clk-fixed-rate.c | 24 include/linux/clk-provider.h | 15 +++ 2 files changed, 39

[PATCHv11 08/49] clk: gate: add support for low level ops

2013-12-19 Thread Tero Kristo
Gate clock can now be registered to use low level register access ops. Preferred initialization method is via clock description. Signed-off-by: Tero Kristo --- drivers/clk/clk-gate.c | 11 --- include/linux/clk-provider.h |4 2 files changed, 12 insertions(+), 3

[PATCHv11 01/49] clk: add support for registering clocks from description

2013-12-19 Thread Tero Kristo
From: Mike Turquette clk_register_desc is the primary interface for populating the clock tree with new clock nodes. In time, this will replace the various hardware-specific registration functions (e.g. clk_register_gate). Signed-off-by: Mike Turquette Signed-off-by: Tero Kristo --- drivers

[PATCHv11 07/49] clk: divider: add support for low level ops

2013-12-19 Thread Tero Kristo
Divider clock can now be registered to use low level register access ops. Preferred initialization method is via clock description. Signed-off-by: Tero Kristo --- drivers/clk/clk-divider.c| 11 --- include/linux/clk-provider.h |4 2 files changed, 12 insertions(+), 3

[PATCHv11 11/49] CLK: ti: add init support for clock IP blocks

2013-12-19 Thread Tero Kristo
append the master IP info to this. Signed-off-by: Tero Kristo --- drivers/clk/ti/clk.c | 108 include/linux/clk/ti.h | 20 + 2 files changed, 128 insertions(+) diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index ef1a7cd

Re: [PATCHv10 21/41] ARM: dts: omap4 clock data

2013-12-17 Thread Tero Kristo
On 12/17/2013 11:44 AM, Paul Walmsley wrote: On Tue, 26 Nov 2013, Tero Kristo wrote: This patch creates a unique node for each clock in the OMAP4 power, reset and clock manager (PRCM). OMAP443x and OMAP446x have slightly different clock tree which is taken into account in the data. Signed-off

Re: [PATCHv10 03/41] CLK: ti: add init support for clock IP blocks

2013-12-17 Thread Tero Kristo
On 12/17/2013 10:14 AM, Paul Walmsley wrote: On Tue, 26 Nov 2013, Tero Kristo wrote: ti_dt_clk_init_provider() can now be used to initialize the contents of a single clock IP block. This parses all the clocks under the IP block and calls the corresponding init function for them. This patch

Re: [PATCHv10 22/41] ARM: dts: omap5 clock data

2013-12-16 Thread Tero Kristo
On 12/16/2013 12:51 PM, Paul Walmsley wrote: On Tue, 26 Nov 2013, Tero Kristo wrote: This patch creates a unique node for each clock in the OMAP5 power, reset and clock manager (PRCM). ... +&cm_core_aon { + pad_clks_src_ck: pad_clks_src_ck { + #clock-cells

Re: [PATCHv10 00/41] ARM: TI SoC clock DT conversion

2013-12-16 Thread Tero Kristo
On 12/15/2013 06:35 AM, Mike Turquette wrote: Quoting Tero Kristo (2013-11-26 00:05:41) Hi, Hi Tero, Thanks for your long suffering patience on this series. The clock patches look very good to me with exception of a few small comments. Let me know how I can help with the hierarchal DT stuff

Re: [PATCHv10 10/41] CLK: TI: add support for clockdomain binding

2013-12-16 Thread Tero Kristo
On 12/15/2013 06:23 AM, Mike Turquette wrote: Quoting Tero Kristo (2013-11-26 00:05:51) Some OMAP clocks require knowledge about their parent clockdomain for book keeping purposes. This patch creates a new DT binding for TI clockdomains, which act as a collection of device clocks. Signed-off

Re: [PATCHv10 01/41] clk: add support for platform specific clock I/O wrapper functions

2013-12-16 Thread Tero Kristo
On 12/15/2013 02:48 AM, Mike Turquette wrote: Quoting Tero Kristo (2013-11-26 00:05:42) Current clock wrappers assume simple and direct mapped hardware register access. Improve this support by adding functionality for registering platform specific clock I/O wrappers, which can be used to

Re: [PATCHv10 15/41] CLK: TI: DRA7: Add APLL support

2013-11-29 Thread Tero Kristo
On 11/26/2013 10:51 AM, Alexander Aring wrote: Hi, On Tue, Nov 26, 2013 at 10:05:56AM +0200, Tero Kristo wrote: From: J Keerthy The patch adds support for DRA7 PCIe APLL. The APLL sources the optional functional clocks for PCIe module. APLL stands for Analog PLL. This is different when

Re: [PATCHv10 00/41] ARM: TI SoC clock DT conversion

2013-11-29 Thread Tero Kristo
On 11/29/2013 07:12 PM, Tony Lindgren wrote: * Paul Walmsley [131128 10:59]: On Wed, 27 Nov 2013, Nishanth Menon wrote: http://pastebin.mozilla.org/3681900 -> AM3517-evm (not sure yet how long this has been broken). Seems to work in v3.13-rc1: http://www.pwsan.com/omap/testlogs/test_v3.13-

Re: [PATCHv10 31/41] ARM: OMAP2+: clock: add support for regmap

2013-11-27 Thread Tero Kristo
On 11/26/2013 07:40 PM, Tony Lindgren wrote: * Tero Kristo [131126 00:10]: Using regmap is required for isolating the actual memory access from the clock code. Now, the driver providing the support for the clock IP block can provide a regmap for this purpose. Signed-off-by: Tero Kristo

Re: [PATCHv10 41/41] ARM: OMAP3: use DT clock init if DT data is available

2013-11-27 Thread Tero Kristo
On 11/26/2013 07:44 PM, Tony Lindgren wrote: * Tero Kristo [131126 00:10]: OMAP3 platforms support both DT and non-DT boot at the moment, make the clock init work according to the used setup. We're making omap3 to be DT only as well, so it might make sense to drop the omap3 clock da

[PATCHv10 35/41] ARM: OMAP2+: PRM: add support for initializing PRCM clock modules from DT

2013-11-26 Thread Tero Kristo
This patch provides top level functionality for the DT clock initialization. Clock tree is initialized hierarchically starting from IP modules (CM/PRM/PRCM) going down towards individual clock nodes, and finally initializing clockdomains once all the clocks are ready. Signed-off-by: Tero Kristo

[PATCHv10 32/41] ARM: OMAP2+: clock: use driver API instead of direct memory read/write

2013-11-26 Thread Tero Kristo
Clock nodes shall use the services provided by underlying drivers to access the hardware registers instead of direct memory read/write. Thus, change all the code to use the new omap2_clk_readl / omap2_clk_writel APIs for this. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clkt_clksel.c

[PATCHv10 29/41] ARM: dts: AM35xx: use DT clock data

2013-11-26 Thread Tero Kristo
AM35xx now uses the clock data from device tree. Most of the data is shared with OMAP3xxx, but as there is some delta, a new base .dtsi file is also created for the SoC. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am3517-evm.dts|2 +- arch/arm/boot/dts/am3517.dtsi

[PATCHv10 34/41] ARM: OMAP3: hwmod: initialize clkdm from clkdm_name

2013-11-26 Thread Tero Kristo
the return value for _init_clkdm to 0 for incorrect clkdm_name, as this a warning, not a fatal error. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/omap_hwmod.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch

[PATCHv10 38/41] ARM: OMAP: DRA7: Enable clock init

2013-11-26 Thread Tero Kristo
Initializes clock data from device tree. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 5854677..628a7f5 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c

[PATCHv10 31/41] ARM: OMAP2+: clock: add support for regmap

2013-11-26 Thread Tero Kristo
Using regmap is required for isolating the actual memory access from the clock code. Now, the driver providing the support for the clock IP block can provide a regmap for this purpose. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clock.c | 27 ++- arch/arm/mach

[PATCHv10 33/41] ARM: OMAP: hwmod: fix an incorrect clk type cast with _get_clkdm

2013-11-26 Thread Tero Kristo
If the main clock for a hwmod is of basic clock type, it is illegal to type cast this to clk_hw_omap and will result in bogus data. Fixed by checking the clock flags before attempting the type cast. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach

[PATCHv10 30/41] ARM: dts: am43xx clock data

2013-11-26 Thread Tero Kristo
This patch creates a unique node for each clock in the AM43xx power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am4372.dtsi| 16 + arch/arm/boot/dts/am43xx-clocks.dtsi | 656 ++ 2 files changed, 672 insertions

[PATCHv10 36/41] ARM: OMAP2+: io: use new clock init API

2013-11-26 Thread Tero Kristo
clk_init is now separated to a common function which gets called for all SoC:s, which initializes the DT clocks and calls the SoC specific clock init. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/common.h |2 +- arch/arm/mach-omap2/io.c | 32

[PATCHv10 21/41] ARM: dts: omap4 clock data

2013-11-26 Thread Tero Kristo
This patch creates a unique node for each clock in the OMAP4 power, reset and clock manager (PRCM). OMAP443x and OMAP446x have slightly different clock tree which is taken into account in the data. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap4.dtsi | 30 + arch/arm/boot/dts

[PATCHv10 41/41] ARM: OMAP3: use DT clock init if DT data is available

2013-11-26 Thread Tero Kristo
OMAP3 platforms support both DT and non-DT boot at the moment, make the clock init work according to the used setup. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/io.c | 13 - 1 file changed, 12 insertions(+), 1 deletion

[PATCHv10 40/41] ARM: AM33xx: remove old clock data and link in new clock init code

2013-11-26 Thread Tero Kristo
AM33xx clocks have now been moved to DT, thus remove the old data file and use the new init code under OMAP clock driver. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/Makefile |1 - arch/arm/mach-omap2/cclock33xx_data.c

[PATCHv10 39/41] ARM: AM43xx: Enable clock init

2013-11-26 Thread Tero Kristo
Initializes clock data from device tree. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index 628a7f5..2e0f0fe 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c

[PATCHv10 17/41] CLK: TI: add am33xx clock init file

2013-11-26 Thread Tero Kristo
+1,161 @@ +/* + * AM33XX Clock init + * + * Copyright (C) 2013 Texas Instruments, Inc + * Tero Kristo (t-kri...@ti.com) + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software

[PATCHv10 26/41] ARM: dts: DRA7: Add PCIe related clock nodes

2013-11-26 Thread Tero Kristo
From: J Keerthy This patch adds optfclk_pciephy_clk and optfclk_pciephy_div_clk which are used by PCIe phy. It also adds a mux clock to choose the source of optfclk_pciephy_div_clk clock. Signed-off-by: J Keerthy Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren

[PATCHv10 20/41] CLK: TI: add am43xx clock init file

2013-11-26 Thread Tero Kristo
clk-43xx.c now contains the clock init functionality for am43xx, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- drivers/clk/ti/Makefile |2 +- drivers/clk/ti/clk-43xx.c | 118

[PATCHv10 07/41] CLK: ti: add support for ti divider-clock

2013-11-26 Thread Tero Kristo
This patch adds support for TI divider clock binding, which simply uses the basic clock divider to provide the features needed. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/divider.txt | 114 ++ drivers/clk/ti/Makefile|3

[PATCHv10 23/41] ARM: dts: dra7 clock data

2013-11-26 Thread Tero Kristo
This patch creates a unique node for each clock in the DRA7 power, reset and clock manager (PRCM). TODO: apll_pcie clock node is still a dummy in this version, and proper support for the APLL should be added. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7.dtsi | 23 + arch

[PATCHv10 04/41] CLK: TI: Add DPLL clock support

2013-11-26 Thread Tero Kristo
The OMAP clock driver now supports DPLL clock type. This patch also adds support for DT DPLL nodes. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/dpll.txt | 75 +++ arch/arm/mach-omap2/clock.h| 163 +- arch/arm/mach-omap2/clock3xxx.h

[PATCHv10 22/41] ARM: dts: omap5 clock data

2013-11-26 Thread Tero Kristo
This patch creates a unique node for each clock in the OMAP5 power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap5.dtsi | 30 + arch/arm/boot/dts/omap54xx-clocks.dtsi | 1396 2 files changed, 1426 insertions

[PATCHv10 06/41] clk: ti: add composite clock support

2013-11-26 Thread Tero Kristo
This is a multipurpose clock node, which contains support for multiple sub-clocks. Uses basic composite clock type to implement the actual functionality, and TI specific gate, mux and divider clocks. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/composite.txt | 54

[PATCHv10 14/41] CLK: TI: omap5: Initialize USB_DPLL at boot

2013-11-26 Thread Tero Kristo
From: Roger Quadros USB_DPLL must be initialized and locked at boot so that USB modules can work. Signed-off-by: Roger Quadros Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- drivers/clk/ti/clk-54xx.c | 18 +- 1 file changed, 17 insertions

[PATCHv10 11/41] clk: ti: add support for basic mux clock

2013-11-26 Thread Tero Kristo
ti,mux-clock provides now a binding for basic mux support. This is just using the basic clock type. Signed-off-by: Tero Kristo --- Documentation/devicetree/bindings/clock/ti/mux.txt | 76 +++ drivers/clk/ti/Makefile|2 +- drivers/clk/ti/mux.c

[PATCHv10 08/41] clk: ti: add support for TI fixed factor clock

2013-11-26 Thread Tero Kristo
This behaves exactly in similar manner to basic fixed-factor-clock, but adds a few properties on top for handling clock hardware autoidling. Signed-off-by: Tero Kristo --- .../bindings/clock/ti/fixed-factor-clock.txt | 43 + drivers/clk/ti/Makefile

[PATCHv10 18/41] CLK: TI: add interface clock support for OMAP3

2013-11-26 Thread Tero Kristo
OMAP3 has interface clocks in addition to functional clocks, which require special handling for the autoidle and idle status register offsets mainly. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/interface.txt | 54 arch/arm/mach-omap2/clock.h

[PATCHv10 16/41] CLK: TI: add dra7 clock init file

2013-11-26 Thread Tero Kristo
clk-7xx.c now contains the clock init functionality for dra7, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- drivers/clk/ti/Makefile |1 + drivers/clk/ti/clk-7xx.c | 332

[PATCHv10 15/41] CLK: TI: DRA7: Add APLL support

2013-11-26 Thread Tero Kristo
Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/apll.txt | 31 +++ drivers/clk/ti/Makefile|2 +- drivers/clk/ti/apll.c | 239 3 files changed, 271 insertions(+), 1 deletion(-) create mode

[PATCHv10 10/41] CLK: TI: add support for clockdomain binding

2013-11-26 Thread Tero Kristo
Some OMAP clocks require knowledge about their parent clockdomain for book keeping purposes. This patch creates a new DT binding for TI clockdomains, which act as a collection of device clocks. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/clockdomain.txt | 21 ++ arch

[PATCHv10 13/41] CLK: TI: add omap5 clock init file

2013-11-26 Thread Tero Kristo
clk-54xx.c now contains the clock init functionality for omap5, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/io.c |1 + drivers/clk/ti/Makefile |1 + drivers

[PATCHv10 05/41] CLK: TI: add autoidle support

2013-11-26 Thread Tero Kristo
TI clk driver now routes some of the basic clocks through own registration routine to allow autoidle support. This routine just checks a couple of device node properties and adds autoidle support if required, and just passes the registration forward to basic clocks. Signed-off-by: Tero Kristo

[PATCHv10 24/41] ARM: dts: clk: Add apll related clocks

2013-11-26 Thread Tero Kristo
From: J Keerthy The patch adds a mux node to choose the parent of apll_pcie_ck node. Signed-off-by: J Keerthy Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 14 +++--- 1 file changed, 11 insertions(+), 3

[PATCHv10 19/41] CLK: TI: add omap3 clock init file

2013-11-26 Thread Tero Kristo
clk-3xxx.c now contains the clock init functionality for omap3, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/clock3xxx.h |1 - drivers/clk/ti/Makefile

[PATCHv10 27/41] ARM: dts: am33xx clock data

2013-11-26 Thread Tero Kristo
This patch creates a unique node for each clock in the AM33xx power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am33xx-clocks.dtsi | 662 ++ arch/arm/boot/dts/am33xx.dtsi| 16 + 2 files changed, 678 insertions

[PATCHv10 25/41] ARM: dts: DRA7: Change apll_pcie_m2_ck to fixed factor clock

2013-11-26 Thread Tero Kristo
From: J Keerthy This patch changes apll_pcie_m2_ck to fixed factor clock as there are no configurable divider associated to m2. Signed-off-by: J Keerthy Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/boot/dts/dra7xx-clocks.dtsi |9 +++-- 1

[PATCHv10 12/41] CLK: TI: add omap4 clock init file

2013-11-26 Thread Tero Kristo
clk-44xx.c now contains the clock init functionality for omap4, including DT clock registration and adding of static clkdev entries. Signed-off-by: Tero Kristo Tested-by: Nishanth Menon Acked-by: Tony Lindgren --- arch/arm/mach-omap2/clock.h |1 - drivers/clk/ti/Makefile |1

[PATCHv10 09/41] CLK: TI: add support for gate clock

2013-11-26 Thread Tero Kristo
-gate-clock: clockdomain level gate control - ti,dss-gate-clock: gate clock with DSS specific hardware handling - ti,am35xx-gate-clock: gate clock with AM35xx specific hardware handling - ti,hsdiv-gate-clock: gate clock with OMAP36xx hardware errata handling Signed-off-by: Tero Kristo

[PATCHv10 00/41] ARM: TI SoC clock DT conversion

2013-11-26 Thread Tero Kristo
Hi, Changes compared to v9: - rebased on top of 3.13-rc1 - modified the low level clk register API to provide SoC specific clk_readl and clk_writel support which can be registered during boot, TI SoC variant uses regmap on low level - dropped regmap parameter from clock init calls, instead a h

[PATCHv10 03/41] CLK: ti: add init support for clock IP blocks

2013-11-26 Thread Tero Kristo
append the master IP info to this. Signed-off-by: Tero Kristo --- drivers/clk/ti/clk.c | 98 include/linux/clk/ti.h | 14 +++ 2 files changed, 112 insertions(+) diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index ef1a7cd

[PATCHv10 01/41] clk: add support for platform specific clock I/O wrapper functions

2013-11-26 Thread Tero Kristo
I/O wrapper provided also which uses the existing direct I/O mapped behavior. Signed-off-by: Tero Kristo --- drivers/clk/clk.c| 68 ++ include/linux/clk-provider.h | 15 +- 2 files changed, 75 insertions(+), 8 deletions(-) diff

[PATCHv10 02/41] CLK: TI: add DT alias clock registration mechanism

2013-11-26 Thread Tero Kristo
cific clock names. Signed-off-by: Tero Kristo --- drivers/clk/Makefile|1 + drivers/clk/ti/Makefile |3 +++ drivers/clk/ti/clk.c| 55 +++ include/linux/clk/ti.h | 42 4 files changed, 101 inser

Re: [PATCHv9 01/43] clk: Add support for regmap register read/write

2013-11-06 Thread Tero Kristo
On 11/05/2013 11:43 PM, Gerhard Sittig wrote: On Thu, Oct 31, 2013 at 16:40 +0200, Tero Kristo wrote: On 10/31/2013 04:03 PM, Nishanth Menon wrote: On 10/25/2013 10:56 AM, Tero Kristo wrote: [...] diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 7e59253..63ff78c

Re: [PATCHv9 38/43] ARM: OMAP2+: PRM: add support for initializing PRCM clock modules from DT

2013-11-05 Thread Tero Kristo
On 11/01/2013 11:07 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: [...] diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index 228b850..6fa74c6 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c

Re: [PATCHv9 32/43] ARM: dts: AM35xx: use DT clock data

2013-11-05 Thread Tero Kristo
On 11/01/2013 11:18 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: [...] diff --git a/arch/arm/boot/dts/am3517.dtsi b/arch/arm/boot/dts/am3517.dtsi new file mode 100644 index 000..c555443 --- /dev/null +++ b/arch/arm/boot/dts/am3517.dtsi @@ -0,0 +1,31

Re: [PATCHv9 13/43] clk: ti: add support for basic mux clock

2013-11-05 Thread Tero Kristo
On 11/01/2013 11:01 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: [...] diff --git a/drivers/clk/ti/mux.c b/drivers/clk/ti/mux.c new file mode 100644 index 000..9c5259a --- /dev/null +++ b/drivers/clk/ti/mux.c [...] +/** + * of_mux_clk_setup() - Setup function for

Re: [PATCHv9 07/43] CLK: TI: add autoidle support

2013-11-05 Thread Tero Kristo
On 11/04/2013 04:59 PM, Nishanth Menon wrote: On 11/04/2013 04:00 AM, Tero Kristo wrote: On 11/01/2013 09:16 PM, Nishanth Menon wrote: On 11/01/2013 04:18 AM, Tero Kristo wrote: [...] one other thing I missed, will be nice to introduce a common bindings for autoidle which tends to be reused

Re: [PATCHv9 12/43] CLK: TI: add support for clockdomain binding

2013-11-04 Thread Tero Kristo
On 11/01/2013 10:22 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: [...] diff --git a/drivers/clk/ti/clockdomain.c b/drivers/clk/ti/clockdomain.c new file mode 100644 index 000..1b3099e --- /dev/null +++ b/drivers/clk/ti/clockdomain.c @@ -0,0 +1,58 @@ +/* + * OMAP

Re: [PATCHv9 33/43] ARM: dts: am43xx clock data

2013-11-04 Thread Tero Kristo
On 11/01/2013 11:16 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: [...] diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index 974d103..1fb3ac2 100644 --- a/arch/arm/boot/dts/am4372.dtsi +++ b/arch/arm/boot/dts/am4372.dtsi @@ -67,6 +67,8

Re: [PATCHv9 11/43] CLK: TI: add support for gate clock

2013-11-04 Thread Tero Kristo
On 11/01/2013 10:11 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: This patch adds support for TI specific gate clocks. These behave as basic gate-clock, but have different ops / hw-ops for controlling the actual gate, for example waiting until the clock is ready. Several

Re: [PATCHv9 09/43] CLK: ti: add support for ti divider-clock

2013-11-04 Thread Tero Kristo
On 11/01/2013 09:35 PM, Nishanth Menon wrote: On 11/01/2013 04:54 AM, Tero Kristo wrote: On 11/01/2013 11:48 AM, Tero Kristo wrote: On 10/31/2013 08:02 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: [...] diff --git a/drivers/clk/ti/divider.c b/drivers/clk/ti

Re: [PATCHv9 07/43] CLK: TI: add autoidle support

2013-11-04 Thread Tero Kristo
On 11/01/2013 09:16 PM, Nishanth Menon wrote: On 11/01/2013 04:18 AM, Tero Kristo wrote: On 10/31/2013 06:05 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: [...] diff --git a/drivers/clk/ti/autoidle.c b/drivers/clk/ti/autoidle.c new file mode 100644 index 000

Re: [PATCHv9 06/43] CLK: ti: add init support for clock IP blocks

2013-11-03 Thread Tero Kristo
On 11/01/2013 09:13 PM, Nishanth Menon wrote: On 11/01/2013 04:12 AM, Tero Kristo wrote: On 10/31/2013 05:42 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: ti_dt_clk_init_provider() can now be used to initialize the contents of a single clock IP block. This parses all

Re: [PATCHv9 00/43] ARM: TI SoC clock DT conversion

2013-11-03 Thread Tero Kristo
On 11/01/2013 11:25 PM, Nishanth Menon wrote: On 10/31/2013 08:55 AM, Nishanth Menon wrote: On 10/31/2013 04:10 AM, Tero Kristo wrote: On 10/30/2013 10:10 PM, Nishanth Menon wrote: On 10/30/2013 10:00 AM, Nishanth Menon wrote: On 10/30/2013 03:23 AM, Tero Kristo wrote: On 10/29/2013 06:19

Re: [PATCHv9 09/43] CLK: ti: add support for ti divider-clock

2013-11-01 Thread Tero Kristo
On 11/01/2013 11:48 AM, Tero Kristo wrote: On 10/31/2013 08:02 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: This patch adds support for TI divider clock binding, which simply uses the basic clock divider to provide the features needed. Signed-off-by: Tero Kristo

Re: [PATCHv9 10/43] clk: ti: add support for TI fixed factor clock

2013-11-01 Thread Tero Kristo
On 10/31/2013 08:12 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: This behaves exactly in similar manner to basic fixed-factor-clock, but adds a few properties on top for handling clock hardware autoidling. Signed-off-by: Tero Kristo --- .../bindings/clock/ti/fixed

Re: [PATCHv9 09/43] CLK: ti: add support for ti divider-clock

2013-11-01 Thread Tero Kristo
On 10/31/2013 08:02 PM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: This patch adds support for TI divider clock binding, which simply uses the basic clock divider to provide the features needed. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti

Re: [PATCHv9 08/43] clk: ti: add composite clock support

2013-11-01 Thread Tero Kristo
On 10/31/2013 06:32 PM, Nishanth Menon wrote: On 10/31/2013 11:27 AM, Nishanth Menon wrote: On 10/25/2013 10:57 AM, Tero Kristo wrote: This is a multipurpose clock node, which contains support for multiple sub-clocks. Uses basic composite clock type to implement the actual functionality, and

<    5   6   7   8   9   10   11   12   13   14   >