Re: [PATCHv5 02/31] CLK: TI: Add DPLL clock support

2013-08-19 Thread Tero Kristo
On 08/13/2013 01:50 PM, Mark Rutland wrote: Hi, On Fri, Aug 02, 2013 at 05:25:21PM +0100, Tero Kristo wrote: 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

Re: [PATCHv5 05/31] CLK: TI: add support for OMAP gate clock

2013-08-19 Thread Tero Kristo
On 08/13/2013 02:04 PM, Mark Rutland wrote: On Fri, Aug 02, 2013 at 05:25:24PM +0100, Tero Kristo wrote: This node adds support for a clock node which allows control to the clockdomain enable / disable. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/gate.txt | 41

Re: [PATCHv5 06/31] ARM: dts: omap4 clock data

2013-08-19 Thread Tero Kristo
On 08/03/2013 05:16 PM, Tomasz Figa wrote: On Friday 02 of August 2013 19:25:25 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

Re: [PATCHv5 07/31] CLK: TI: add omap4 clock init file

2013-08-19 Thread Tero Kristo
On 08/05/2013 10:27 AM, Tony Lindgren wrote: * Tero Kristo [130802 09:33]: clk-44xx.c now contains the clock init functionality for omap4, including DT clock registration and adding of static clkdev entries. Few comments below from "boot new hardware with old kernels" point of

Re: [PATCHv5 16/31] CLK: TI: DRA7: Add APLL support

2013-08-19 Thread Tero Kristo
On 08/13/2013 02:14 PM, Mark Rutland wrote: On Fri, Aug 02, 2013 at 05:25:35PM +0100, Tero Kristo wrote: From: 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 comapred with

Re: [PATCHv5 22/31] CLK: TI: add interface clock support for OMAP3

2013-08-19 Thread Tero Kristo
On 08/13/2013 02:30 PM, Mark Rutland wrote: On Fri, Aug 02, 2013 at 05:25:41PM +0100, Tero Kristo wrote: 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

Re: [PATCHv5 05/31] CLK: TI: add support for OMAP gate clock

2013-08-19 Thread Tero Kristo
On 08/19/2013 05:29 PM, Mark Rutland wrote: On Mon, Aug 19, 2013 at 02:42:05PM +0100, Tero Kristo wrote: On 08/13/2013 02:04 PM, Mark Rutland wrote: On Fri, Aug 02, 2013 at 05:25:24PM +0100, Tero Kristo wrote: This node adds support for a clock node which allows control to the clockdomain

Re: [PATCHv5 02/31] CLK: TI: Add DPLL clock support

2013-08-19 Thread Tero Kristo
On 08/19/2013 05:18 PM, Mark Rutland wrote: On Mon, Aug 19, 2013 at 02:34:45PM +0100, Tero Kristo wrote: On 08/13/2013 01:50 PM, Mark Rutland wrote: Hi, On Fri, Aug 02, 2013 at 05:25:21PM +0100, Tero Kristo wrote: The OMAP clock driver now supports DPLL clock type. This patch also adds

Re: [PATCHv5 05/31] CLK: TI: add support for OMAP gate clock

2013-08-19 Thread Tero Kristo
On 08/19/2013 06:58 PM, Mark Rutland wrote: On Mon, Aug 19, 2013 at 03:43:15PM +0100, Tero Kristo wrote: On 08/19/2013 05:29 PM, Mark Rutland wrote: On Mon, Aug 19, 2013 at 02:42:05PM +0100, Tero Kristo wrote: On 08/13/2013 02:04 PM, Mark Rutland wrote: On Fri, Aug 02, 2013 at 05:25:24PM

Re: [PATCHv5 02/31] CLK: TI: Add DPLL clock support

2013-08-19 Thread Tero Kristo
On 08/19/2013 07:24 PM, Mark Rutland wrote: On Mon, Aug 19, 2013 at 04:09:37PM +0100, Tero Kristo wrote: On 08/19/2013 05:18 PM, Mark Rutland wrote: On Mon, Aug 19, 2013 at 02:34:45PM +0100, Tero Kristo wrote: On 08/13/2013 01:50 PM, Mark Rutland wrote: Hi, On Fri, Aug 02, 2013 at 05:25

Re: [PATCHv5 02/31] CLK: TI: Add DPLL clock support

2013-08-21 Thread Tero Kristo
On 08/20/2013 01:00 AM, Mike Turquette wrote: Quoting Tero Kristo (2013-08-19 10:06:39) On 08/19/2013 07:24 PM, Mark Rutland wrote: On Mon, Aug 19, 2013 at 04:09:37PM +0100, Tero Kristo wrote: On 08/19/2013 05:18 PM, Mark Rutland wrote: On Mon, Aug 19, 2013 at 02:34:45PM +0100, Tero Kristo

Re: [PATCHv5 01/31] CLK: clkdev: add support for looking up clocks from DT

2013-08-26 Thread Tero Kristo
On 08/03/2013 09:31 PM, Russell King - ARM Linux wrote: On Fri, Aug 02, 2013 at 07:25:20PM +0300, Tero Kristo wrote: + + if (cl) + return cl; + + /* If clock was not found, attempt to look-up from DT */ + node = of_find_node_by_name(NULL, con_id); This is

Re: [PATCHv5 01/31] CLK: clkdev: add support for looking up clocks from DT

2013-08-26 Thread Tero Kristo
On 08/26/2013 08:03 PM, Russell King - ARM Linux wrote: On Mon, Aug 26, 2013 at 05:36:15PM +0300, Tero Kristo wrote: On 08/03/2013 09:31 PM, Russell King - ARM Linux wrote: On Fri, Aug 02, 2013 at 07:25:20PM +0300, Tero Kristo wrote: + + if (cl) + return cl

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-08-28 Thread Tero Kristo
On 08/28/2013 12:22 PM, Tomi Valkeinen wrote: Hi, I'm seeing odd clock behavior with Beagle, booting with DT. I'm using v3.11-rc7 + DSS DT patches. I guess you are not using the clock DT patches? Just making sure I didn't break anything. :) It looks to me that when setting the rate of a cl

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-08-28 Thread Tero Kristo
On 08/28/2013 01:14 PM, Tomi Valkeinen wrote: On 28/08/13 12:48, Tero Kristo wrote: On 08/28/2013 12:22 PM, Tomi Valkeinen wrote: Hi, I'm seeing odd clock behavior with Beagle, booting with DT. I'm using v3.11-rc7 + DSS DT patches. I guess you are not using the clock DT patches? J

[PATCHv6 04/45] CLK: TI: add support for OMAP gate clock

2013-08-29 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

[PATCHv6 11/45] CLK: TI: omap5: Initialize USB_DPLL at boot

2013-08-29 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 --- drivers/clk/ti/clk-54xx.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/clk/ti/clk

[PATCHv6 05/45] CLK: TI: add support for clockdomain binding

2013-08-29 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 | 19

[PATCHv6 01/45] CLK: TI: Add DPLL clock support

2013-08-29 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 | 68 +++ arch/arm/mach-omap2/clock.h| 144 +- arch/arm/mach-omap2/clock3xxx.h

[PATCHv6 00/45] OMAP CCF DT conversion

2013-08-29 Thread Tero Kristo
Hi, Rather large diff from previous version, main changes: - Rebased on top of v3.11-rc5 (+ DRA7 data + Mike's clock bindings v4) - Clkdev code hacks replaced with a static array of clkdev entries which get initialized during boot based on SoC type. These arrays can be eventually removed once

[PATCHv6 03/45] CLK: TI: add autoidle support

2013-08-29 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

[PATCHv6 02/45] CLK: TI: add DT alias clock registration mechanism

2013-08-29 Thread Tero Kristo
cific clock names. Signed-off-by: Tero Kristo --- drivers/clk/ti/Makefile |2 +- drivers/clk/ti/clk.c| 52 +++ include/linux/clk/ti.h | 23 + 3 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 drivers/c

[PATCHv6 14/45] ARM: dts: DRA7: Change apll_pcie_m2_ck to fixed factor clock

2013-08-29 Thread Tero Kristo
From: Keerthy This patch changes apll_pcie_m2_ck to fixed factor clock as there are no configurable divider associated to m2. Signed-off-by: Keerthy Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7xx-clocks.dtsi |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff

[PATCHv6 36/45] ARM: dts: omap3: Add main and optional clock data into DT

2013-08-29 Thread Tero Kristo
: Tero Kristo --- arch/arm/boot/dts/omap3.dtsi | 82 ++ 1 file changed, 82 insertions(+) diff --git a/arch/arm/boot/dts/omap3.dtsi b/arch/arm/boot/dts/omap3.dtsi index 939cc20..b7b5522 100644 --- a/arch/arm/boot/dts/omap3.dtsi +++ b/arch/arm/boot/dts/omap3

[PATCHv6 21/45] ARM: AM33xx: remove old clock data and link in new clock init code

2013-08-29 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 --- arch/arm/mach-omap2/Makefile |1 - arch/arm/mach-omap2/cclock33xx_data.c | 1059 - drivers/clk/ti

[PATCHv6 42/45] ARM: dts: am335x: Add main and optional clock data into DT

2013-08-29 Thread Tero Kristo
With support to parse clock data from DT, move all main and optional clock information from hwmod to DT. We still retain clocks in hwmod for devices which do not have a DT node. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am33xx.dtsi | 88 arch

[PATCHv6 19/45] ARM: dts: am33xx clock data

2013-08-29 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 | 653 ++ arch/arm/boot/dts/am33xx.dtsi|7 + 2 files changed, 660 insertions

[PATCHv6 18/45] CLK: DT: add support for set-rate-parent flag

2013-08-29 Thread Tero Kristo
Adding set-rate-parent to clock node now allows a node to forward clk_set_rate request to its parent clock. Signed-off-by: Tero Kristo --- drivers/clk/clk-divider.c |6 +- drivers/clk/clk-fixed-factor.c |6 +- drivers/clk/clk-gate.c |8 ++-- drivers/clk/clk

[PATCHv6 06/45] ARM: dts: omap4 clock data

2013-08-29 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/omap443x-clocks.dtsi | 17 + arch/arm/boot/dts

[PATCHv6 40/45] ARM: OMAP2+: omap_device: use dt aware clk_get to lookup clk

2013-08-29 Thread Tero Kristo
. Signed-off-by: Nishanth Menon Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_device.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c index 7c796e2..9946900 100644 --- a/arch/arm/mach

[PATCHv6 31/45] ARM: OMAP2+: Add support to parse 'main_clk' info from DT

2013-08-29 Thread Tero Kristo
From: Rajendra Nayak With clocks for OMAP moving to DT, its now possible to pass the 'main_clk' data for each device from DT instead of having it in hwmod. Signed-off-by: Rajendra Nayak Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_hwmo

[PATCHv6 33/45] ARM: OMAP2+: hwmod: fix opt_clk handling with DT

2013-08-29 Thread Tero Kristo
Rajendra's patch had a bug which caused opt clocks to fail initialize completely, causing boot warnings with devices that depend on them. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_hwmod.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm

[PATCHv6 13/45] ARM: dts: clk: Add apll related clocks

2013-08-29 Thread Tero Kristo
From: Keerthy The patch adds a mux node to choose the parent of apll_pcie_ck node. Signed-off-by: Keerthy Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/dra7xx

[PATCHv6 17/45] CLK: TI: add dra7 clock init file

2013-08-29 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 --- drivers/clk/ti/Makefile |2 +- drivers/clk/ti/clk-7xx.c | 308 ++ 2 files changed

[PATCHv6 09/45] ARM: dts: omap5 clock data

2013-08-29 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 | 14 + arch/arm/boot/dts/omap54xx-clocks.dtsi | 1400 2 files changed, 1414 insertions

[PATCHv6 44/45] ARM: OMAP: DRA7: Enable clock init

2013-08-29 Thread Tero Kristo
Initializes clock data from device tree. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c |1 + include/linux/clk/ti.h |1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index fd4bb71..315a148 100644 --- a/arch/arm/mach

[PATCHv6 38/45] ARM: OMAP2+: omap_device: use dev pointer to optimize code

2013-08-29 Thread Tero Kristo
From: Nishanth Menon _add_clkdev uses &od->pdev->dev for all reference of device struct. Simplify the usage with a variable. Signed-off-by: Nishanth Menon Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_device.c | 16 +++- 1 file changed, 7 insertions(+), 9

[PATCHv6 37/45] ARM: OMAP3: hwmod_data: remove main and optional clock info from hwmod

2013-08-29 Thread Tero Kristo
With support to parse clock data from DT, remove the main and optional clock information from hwmod. We still retain clocks in hwmod for devices which do not have a DT node. NOTE: This patch should only be merged once non-DT boot support for OMAP3 is no longer needed. Signed-off-by: Tero Kristo

[PATCHv6 16/45] CLK: TI: DRA7: Add APLL support

2013-08-29 Thread Tero Kristo
Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/apll.txt | 33 +++ drivers/clk/ti/Makefile|2 +- drivers/clk/ti/apll.c | 212 3 files changed, 246 insertions(+), 1 deletion(-) create mode

[PATCHv6 41/45] ARM: dts: omap5: Add main and optional clock data into DT

2013-08-29 Thread Tero Kristo
With support to parse clock data from DT, move all main and optional clock information from hwmod to DT. We still retain clocks in hwmod for devices which do not have a DT node. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap5.dtsi | 102 arch/arm

[PATCHv6 43/45] ARM: dts: DRA7: link in clock DT data

2013-08-29 Thread Tero Kristo
Clock tree DT data is now included from base dra7.dtsi file. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index c01ef76..c98997b 100644 --- a/arch/arm

[PATCHv6 24/45] ARM: OMAP3: hwmod: initialize clkdm from clkdm_name

2013-08-29 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 --- arch/arm/mach-omap2/omap_hwmod.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2

[PATCHv6 20/45] CLK: TI: add am33xx clock init file

2013-08-29 Thread Tero Kristo
clk-33xx.c now contains the clock init functionality for am33xx, including DT clock registration and adding of static clkdev entries. This patch also moves the omap2_clk_enable_init_clocks declaration to the driver include, as this is needed by the am33xx clock init code. Signed-off-by: Tero

[PATCHv6 35/45] ARM: OMAP4: dts: Add main and optional clock data into DT

2013-08-29 Thread Tero Kristo
-off-by: Tero Kristo --- arch/arm/boot/dts/omap4.dtsi | 100 + arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 109 2 files changed, 100 insertions(+), 109 deletions(-) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts

[PATCHv6 32/45] ARM: OMAP2+: Add support to parse optional clk info from DT

2013-08-29 Thread Tero Kristo
From: Rajendra Nayak With clocks for OMAP moving to DT, its now possible to pass all optional clock data for each device from DT instead of having it in hwmod. Signed-off-by: Rajendra Nayak Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_hwmod.c | 66

[PATCHv6 15/45] ARM: dts: DRA7: Add PCIe related clock nodes

2013-08-29 Thread Tero Kristo
From: 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: Keerthy Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 24

[PATCHv6 28/45] ARM: dts: AM35xx: use DT clock data

2013-08-29 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

[PATCHv6 10/45] CLK: TI: add omap5 clock init file

2013-08-29 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 --- arch/arm/mach-omap2/io.c |1 + drivers/clk/ti/Makefile |3 +- drivers/clk/ti/clk-54xx.c | 215

[PATCHv6 26/45] CLK: TI: add omap3 clock init file

2013-08-29 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 --- arch/arm/mach-omap2/clock3xxx.h |1 - drivers/clk/ti/Makefile |2 +- drivers/clk/ti/clk-3xxx.c | 388

[PATCHv6 23/45] ARM: OMAP: hwmod: fix an incorrect clk type cast with _get_clkdm

2013-08-29 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 --- arch/arm/mach-omap2/omap_hwmod.c |2 ++ 1 file changed, 2

[PATCHv6 34/45] ARM: OMAP2+: timer: fix boot crash with DT only boot and DT clocks

2013-08-29 Thread Tero Kristo
Timer failed to init properly with DT clock data, as it still tried to use clock info from hwmod. Changed init order slightly so that timer hwmod is initialized earlier, which also makes sure the timer clock is initialized and can be referenced from the driver. Signed-off-by: Tero Kristo

[PATCHv6 29/45] ARM: OMAP3: use DT clock init if DT data is available

2013-08-29 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 --- arch/arm/mach-omap2/clock3xxx.h |4 arch/arm/mach-omap2/io.c| 13 - 2 files changed, 16 insertions(+), 1 deletion

[PATCHv6 07/45] CLK: TI: add omap4 clock init file

2013-08-29 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 --- arch/arm/mach-omap2/clock.h |1 - drivers/clk/ti/clk-44xx.c | 303 +++ include/linux

[PATCHv6 27/45] ARM: dts: AM35xx clock data

2013-08-29 Thread Tero Kristo
This patch creates a unique node for each AM35xx specific clock in the AM35xx power, reset and clock manager (PRCM). Most of the AM35xx clock data is shared with OMAP3xxx, this patch only creates the delta. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am35xx-clocks.dtsi | 101

[PATCHv6 39/45] ARM: OMAP2+: omap_device: no need to add a clock dev for aliases

2013-08-29 Thread Tero Kristo
From: Nishanth Menon When we create aliases, we have an handy clk_add_alias which can be used instead of creating new nodes in the clock tree. Signed-off-by: Nishanth Menon Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_device.c | 19 +-- 1 file changed, 5

[PATCHv6 12/45] ARM: dts: dra7 clock data

2013-08-29 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/dra7xx-clocks.dtsi | 2058

[PATCHv6 45/45] ARM: dts: dra7: Add main and optional clock data into DT

2013-08-29 Thread Tero Kristo
With support to parse clock data from DT, move all main and optional clock information from hwmod to DT. We still retain clocks in hwmod for devices which do not have a DT node. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7.dtsi | 82 +++ arch/arm

[PATCHv6 22/45] CLK: TI: add interface clock support for OMAP3

2013-08-29 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 | 53 + arch/arm/mach-omap2/clock.h

[PATCHv6 30/45] ARM: dts: am43xx clock data

2013-08-29 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/am43xx-clocks.dtsi | 681 ++ 1 file changed, 681 insertions(+) create mode 100644 arch/arm/boot/dts/am43xx

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-09-10 Thread Tero Kristo
On 09/10/2013 02:33 PM, Stefan Roese wrote: On 28.08.2013 13:40, Tero Kristo wrote: On 08/28/2013 01:14 PM, Tomi Valkeinen wrote: On 28/08/13 12:48, Tero Kristo wrote: On 08/28/2013 12:22 PM, Tomi Valkeinen wrote: Hi, I'm seeing odd clock behavior with Beagle, booting with DT. I&#x

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-09-10 Thread Tero Kristo
On 09/10/2013 03:19 PM, Tomi Valkeinen wrote: On 10/09/13 15:12, Tero Kristo wrote: If it claims it is not locked, it means the DPLL itself is disabled. You could try clk_enable for the clock before doing clk_set_rate. Hmm, so is it required to enable the clock before setting the rate? If so

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-09-10 Thread Tero Kristo
On 09/10/2013 03:40 PM, Tomi Valkeinen wrote: On 10/09/13 15:24, Tero Kristo wrote: On 09/10/2013 03:19 PM, Tomi Valkeinen wrote: On 10/09/13 15:12, Tero Kristo wrote: If it claims it is not locked, it means the DPLL itself is disabled. You could try clk_enable for the clock before doing

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-09-13 Thread Tero Kristo
On 09/13/2013 10:51 AM, Stefan Roese wrote: On 11.09.2013 09:21, Tomi Valkeinen wrote: On 10/09/13 16:17, Tero Kristo wrote: In theory, DPLLs can also be used in their bypass mode to feed customer nodes clocks. I just think the check in the clkoutx2_recalc is wrong, and should be enhanced to

[PATCHv7 00/36] ARM: OMAP: clock data conversion to DT

2013-09-25 Thread Tero Kristo
Hi all, Version 7 contains following high level changes: - Dropped support for basic bindings from Mike Turquette, instead using vendor specific bindings for all clocks - Mux clock + divider clock vendor specific bindings get rid of use of the bit-masks, instead these are generated runtime bas

[PATCHv7 02/36] CLK: TI: add DT alias clock registration mechanism

2013-09-25 Thread Tero Kristo
cific clock names. Signed-off-by: Tero Kristo --- drivers/clk/ti/Makefile |2 +- drivers/clk/ti/clk.c| 52 +++ include/linux/clk/ti.h | 23 + 3 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 drivers/c

[PATCHv7 07/36] CLK: TI: add support for clockdomain binding

2013-09-25 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 | 19

[PATCHv7 01/36] CLK: TI: Add DPLL clock support

2013-09-25 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 | 80 +++ arch/arm/mach-omap2/clock.h| 144 + arch/arm/mach-omap2/clock3xxx.h

[PATCHv7 10/36] clk: ti: add support for basic mux clock

2013-09-25 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 | 65 +++ drivers/clk/ti/Makefile|2 +- drivers/clk/ti/mux.c

[PATCHv7 05/36] clk: ti: add support for TI fixed factor clock

2013-09-25 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 | 27 + drivers/clk/ti/Makefile

[PATCHv7 04/36] CLK: ti: add support for ti divider-clock

2013-09-25 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 | 85 ++ drivers/clk/ti/Makefile|2

[PATCHv7 06/36] CLK: TI: add support for OMAP gate clock

2013-09-25 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

[PATCHv7 03/36] CLK: TI: add autoidle support

2013-09-25 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

[PATCHv7 11/36] CLK: TI: add omap4 clock init file

2013-09-25 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 --- arch/arm/mach-omap2/clock.h |1 - drivers/clk/ti/clk-44xx.c | 330 +++ include/linux

[PATCHv7 15/36] CLK: TI: omap5: Initialize USB_DPLL at boot

2013-09-25 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 --- drivers/clk/ti/clk-54xx.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/clk/ti/clk

[PATCHv7 09/36] clk: ti: add mux-gate clock support

2013-09-25 Thread Tero Kristo
This is a multipurpose clock node, which contains support for multiple sub-clocks. Uses composite clock type to implement the actual functionality. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/mux-gate.txt | 98 + drivers/clk/ti/Makefile

[PATCHv7 18/36] ARM: dts: DRA7: Change apll_pcie_m2_ck to fixed factor clock

2013-09-25 Thread Tero Kristo
From: Keerthy This patch changes apll_pcie_m2_ck to fixed factor clock as there are no configurable divider associated to m2. Signed-off-by: Keerthy Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7xx-clocks.dtsi |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff

[PATCHv7 08/36] ARM: dts: omap4 clock data

2013-09-25 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/omap443x-clocks.dtsi | 17 + arch/arm/boot/dts

[PATCHv7 22/36] ARM: OMAP: DRA7: Enable clock init

2013-09-25 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 205bb1d..1f23182 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c

[PATCHv7 26/36] ARM: AM33xx: remove old clock data and link in new clock init code

2013-09-25 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 --- arch/arm/mach-omap2/Makefile |1 - arch/arm/mach-omap2/cclock33xx_data.c | 1064 - drivers/clk/ti

[PATCHv7 19/36] ARM: dts: DRA7: Add PCIe related clock nodes

2013-09-25 Thread Tero Kristo
From: 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: Keerthy Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 27

[PATCHv7 20/36] CLK: TI: DRA7: Add APLL support

2013-09-25 Thread Tero Kristo
Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/apll.txt | 29 +++ drivers/clk/ti/Makefile|2 +- drivers/clk/ti/apll.c | 207 3 files changed, 237 insertions(+), 1 deletion(-) create mode

[PATCHv7 14/36] CLK: TI: add omap5 clock init file

2013-09-25 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 --- arch/arm/mach-omap2/io.c |1 + drivers/clk/ti/Makefile |1 + drivers/clk/ti/clk-54xx.c | 241

[PATCHv7 17/36] ARM: dts: clk: Add apll related clocks

2013-09-25 Thread Tero Kristo
From: Keerthy The patch adds a mux node to choose the parent of apll_pcie_ck node. Signed-off-by: Keerthy Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/dra7xx

[PATCHv7 13/36] ARM: dts: omap5 clock data

2013-09-25 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 | 14 + arch/arm/boot/dts/omap54xx-clocks.dtsi | 1327 2 files changed, 1341 insertions

[PATCHv7 28/36] ARM: OMAP: hwmod: fix an incorrect clk type cast with _get_clkdm

2013-09-25 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 --- arch/arm/mach-omap2/omap_hwmod.c |2 ++ 1 file changed, 2

[PATCHv7 23/36] ARM: dts: DRA7: link in clock DT data

2013-09-25 Thread Tero Kristo
Clock tree DT data is now included from base dra7.dtsi file. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/dra7.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi index c01ef76..c98997b 100644 --- a/arch/arm

[PATCHv7 35/36] ARM: dts: AM43xx: link in clock DT data

2013-09-25 Thread Tero Kristo
Clock tree data is now included from base am4372.dtsi file. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/am4372.dtsi |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index 0fe393a..218c1bd 100644 --- a/arch/arm/boot

[PATCHv7 25/36] CLK: TI: add am33xx clock init file

2013-09-25 Thread Tero Kristo
clk-33xx.c now contains the clock init functionality for am33xx, including DT clock registration and adding of static clkdev entries. This patch also moves the omap2_clk_enable_init_clocks declaration to the driver include, as this is needed by the am33xx clock init code. Signed-off-by: Tero

[PATCHv7 31/36] CLK: TI: add omap3 clock init file

2013-09-25 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 --- arch/arm/mach-omap2/clock3xxx.h |1 - drivers/clk/ti/Makefile |2 +- drivers/clk/ti/clk-3xxx.c | 402

[PATCHv7 32/36] ARM: dts: AM35xx: use DT clock data

2013-09-25 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

[PATCHv7 29/36] ARM: OMAP3: hwmod: initialize clkdm from clkdm_name

2013-09-25 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 --- arch/arm/mach-omap2/omap_hwmod.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2

[PATCHv7 27/36] CLK: TI: add interface clock support for OMAP3

2013-09-25 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 | 52 arch/arm/mach-omap2/clock.h

[PATCHv7 21/36] CLK: TI: add dra7 clock init file

2013-09-25 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 --- drivers/clk/ti/Makefile |1 + drivers/clk/ti/clk-7xx.c | 334 ++ include/linux/clk

[PATCHv7 24/36] ARM: dts: am33xx clock data

2013-09-25 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 | 640 ++ arch/arm/boot/dts/am33xx.dtsi| 16 +- 2 files changed, 655 insertions

[PATCHv7 34/36] ARM: dts: am43xx clock data

2013-09-25 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/am43xx-clocks.dtsi | 656 ++ 1 file changed, 656 insertions(+) create mode 100644 arch/arm/boot/dts/am43xx

[PATCHv7 16/36] ARM: dts: dra7 clock data

2013-09-25 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/dra7xx-clocks.dtsi | 1975

[PATCHv7 36/36] CLK: TI: add am43xx clock init file

2013-09-25 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 --- drivers/clk/ti/Makefile |2 +- drivers/clk/ti/clk-43xx.c | 120 + include/linux

[PATCHv7 33/36] ARM: OMAP3: use DT clock init if DT data is available

2013-09-25 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 --- arch/arm/mach-omap2/clock3xxx.h |4 arch/arm/mach-omap2/io.c| 13 - 2 files changed, 16 insertions(+), 1 deletion

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-09-27 Thread Tero Kristo
On 09/27/2013 11:41 AM, Tomi Valkeinen wrote: On 13/09/13 14:34, Kristo, Tero wrote: On 09/13/2013 10:51 AM, Stefan Roese wrote: On 11.09.2013 09:21, Tomi Valkeinen wrote: On 10/09/13 16:17, Tero Kristo wrote: In theory, DPLLs can also be used in their bypass mode to feed customer nodes

Re: [PATCHv7 00/36] ARM: OMAP: clock data conversion to DT

2013-10-04 Thread Tero Kristo
Hi, Just a gentle reminder, anybody have any comments on this series or should we start queuing stuff? -Tero On 09/25/2013 11:48 AM, Tero Kristo wrote: Hi all, Version 7 contains following high level changes: - Dropped support for basic bindings from Mike Turquette, instead using vendor

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