[PATCH 02/55] ARM: OMAP2+: PRCM: cleanup some header includes

2014-03-31 Thread Tero Kristo
Some of the includes are totally unnecessary, remove some others in preparation to make the PRCM its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clockdomain.h |3 ++- arch/arm/mach-omap2/cm33xx.h |3 --- arch/arm/mach-omap2

[PATCH 11/55] CLK: TI: clockdomain: add support for retrying init

2014-03-31 Thread Tero Kristo
Retry init is needed if clockdomains are registered before the corresponding clocks are ready. In this case, the clockdomain info is added to a list which will be processed once the clockdomains for next PRCM module are processed. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm_common.c

[PATCH 14/55] ARM: OMAP2: CM: remove references to cm-regbits-24xx.h from CM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make CM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/cm2xxx.c b/arch/arm/mach-omap2/cm2xxx.c index 4c29f63..e74484a 100644

[PATCH 18/55] ARM: OMAP4: PRM: remove references to prm-regbits-44xx.h from PRM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make PRM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm44xx.c | 33 - arch/arm/mach-omap2/prminst44xx.c |3 ++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 07/55] ARM: OMAP3+: PRM: add cpu-type as parameter to prm_init calls

2014-03-31 Thread Tero Kristo
This helps to get rid of cpu_is_X checks from within the PRM driver. Done in preparation to make PRM a separate driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c | 17 + arch/arm/mach-omap2/prm.h | 11 +++ arch/arm/mach-omap2

[PATCH 09/55] ARM: OMAP4+: PRM: add prm_dev_inst offset as a global parameter

2014-03-31 Thread Tero Kristo
This is different for OMAP4, OMAP5 and DRA7, and is currently checked runtime with a cpu_is_X check. Replace this with an init time setting. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm.h |1 + arch/arm/mach-omap2/prm44xx.c | 20 +--- arch/arm/mach

[PATCH 13/55] ARM: OMAP4: PRCM: remove references to cm-regbits-44xx.h from PRCM core files

2014-03-31 Thread Tero Kristo
Done in preparation to make PRCM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm44xx.c |1 - arch/arm/mach-omap2/cminst44xx.c |8 +++- arch/arm/mach-omap2/powerdomain-common.c |1 - 3 files changed, 7 insertions(+), 3 deletions

[PATCH 15/55] ARM: AM33xx: CM: remove references to cm-regbits-33xx.h from CM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make CM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm33xx.c |9 - arch/arm/mach-omap2/cm33xx.h |1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/cm33xx.c b/arch/arm/mach-omap2/cm33xx.c

[PATCH 06/55] ARM: OMAP3/4: PRM: add support of late_init call to prm_ll_ops

2014-03-31 Thread Tero Kristo
SoC specific late_init call is now registered during PRM init, and will be called automatically by PRM core. This helps to get rid of some redundant initcalls and cpu_is_X checks from the PRM code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm.h|2 ++ arch/arm/mach-omap2

[PATCH 01/55] ARM: OMAP4: CM: use cm_base* in register address calculations

2014-03-31 Thread Tero Kristo
OMAP44XX_CM*_REGADDR macros should be avoided, instead use the cm_base* iomaps. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm44xx.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/cm44xx.c b/arch/arm/mach-omap2/cm44xx.c index 535d66e

[PATCH 00/55]: ARM: OMAP2+: PRCM move to drivers

2014-03-31 Thread Tero Kristo
Hi, This set is continuation for the work started earlier to cleanup the CM/PRM and attempt to make it a separate driver. This set depends on these two sets: CM/PRM cleanup set: http://marc.info/?l=linux-omap&m=139395000918201&w=2 OMAP2 clock DT set: http://comments.gmane.org/gmane.linux.ports.a

Re: [PATCH 12/18] ARM: OMAP3: PM: remove access to PRM_VOLTCTRL register

2014-03-26 Thread Tero Kristo
On 03/26/2014 12:36 AM, Tony Lindgren wrote: * Tero Kristo [140304 08:23]: There is a solitary write to this register every wakeup from off-mode, which isn't doing anything, so remove it. Argh, this chunk of code is for sure the the thing that's blocking all the voltage scalin

Re: [PATCH 0/4] clk: dt: add support for default rate/parent

2014-03-21 Thread Tero Kristo
On 03/20/2014 11:23 PM, Mike Turquette wrote: Quoting Tero Kristo (2014-03-05 05:10:17) Ping. Mike, any feedback on this? Hi Tero, Have you seen Sylwester's approach[1]? I prefer it since it is more device-oriented and less "centralized". The clock consumer enumerates the de

Re: pandaboard boot crash with linux-next

2014-03-18 Thread Tero Kristo
On 03/18/2014 10:32 AM, Peter Ujfalusi wrote: On 03/17/2014 04:09 PM, Tomi Valkeinen wrote: Hi, I noticed that my omap4 panda does not boot with today's linux-next (8808b950581f71e3ee4cf8e6cae479f4c7106405). I didn't have much time to study it, but I didn't find any posts about the issue with a

Re: [RFC 2/5] ARM: dts: am33xx: Set parent clock for timer through DT

2014-03-14 Thread Tero Kristo
On 03/13/2014 10:35 PM, Joel Fernandes wrote: Signed-off-by: Joel Fernandes --- arch/arm/boot/dts/am33xx.dtsi |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 4e6c959..51b7008 100644 --- a/arch/arm/boot/dts/am33xx.dts

Re: [RFC 3/5] ARM: OMAP2+: timer: Add clocksource initialization and powerup support

2014-03-14 Thread Tero Kristo
On 03/14/2014 01:36 AM, Joel Fernandes wrote: On 03/13/2014 04:52 PM, Rob Herring wrote: On Thu, Mar 13, 2014 at 3:35 PM, Joel Fernandes wrote: Introduce a generic omap timer initialization function that can be used by all SoCs for which support is available in the clocksource driver introduce

Re: [PATCH v2 1/8] ARM: dts: dra7: Initialize USB_DPLL

2014-03-10 Thread Tero Kristo
On 03/10/2014 02:49 PM, Roger Quadros wrote: USB_DPLL must be initialized and locked at boot so that USB modules can work. Program USB_DLL_M2 output to half rate as well. Patch depends on https://www.mail-archive.com/linux-omap@vger.kernel.org/msg101300.html CC: Mike Turquette CC: Tero

Re: [PATCH 2/8] ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate

2014-03-07 Thread Tero Kristo
usb_otg_ss1_refclk960m and usb_otg_ss2_refclk960m. CC: Tero Kristo Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/dra7xx-clocks.dtsi index

Re: [PATCH 1/8] CLK: ti: dra7: Initialize USB_DPLL

2014-03-07 Thread Tero Kristo
On 03/07/2014 03:09 PM, Roger Quadros wrote: USB_DPLL must be initialized and locked at boot so that USB modules can work. Also program USB_DLL_M2 output to half rate. CC: Mike Turquette CC: Tero Kristo Signed-off-by: Roger Quadros --- drivers/clk/ti/clk-7xx.c | 11 +++ 1 file

Re: [PATCHv2 13/14] ARM: OMAP24xx: clock: remove legacy clock data

2014-03-06 Thread Tero Kristo
On 03/05/2014 08:10 PM, Tony Lindgren wrote: * Tony Lindgren [140305 09:12]: * Tero Kristo [140305 00:17]: On 03/04/2014 11:28 PM, Tony Lindgren wrote: * Tero Kristo [140304 10:58]: On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo [140304 01:22]: This is no longer needed as

Re: [PATCH 0/4] clk: dt: add support for default rate/parent

2014-03-05 Thread Tero Kristo
Ping. Mike, any feedback on this? -Tero On 02/13/2014 11:00 AM, Tero Kristo wrote: Hi, This set is a mix-match of new DT properties for generic and TI specific clock drivers. Basically provided for commenting purposes. The patches provide a way to configure clock parents / rates during boot

Re: [PATCH v4 4/4] ARM: OMAP2+: Add pdata quirk for sys_clkout2 for omap3 DBB056

2014-03-05 Thread Tero Kristo
On 03/01/2014 12:37 AM, Tony Lindgren wrote: * Christoph Fritz [140214 06:24]: Full device tree support for clock control, especially to set frequencies, is not yet accomplished. Until then, configure the 24Mhz of sys_clkout2 to feed an USB-Hub here. Hmm would like to see Tero's comments on t

Re: [PATCH 0/8] OMAP: OMAP3 DSS related clock patches

2014-03-05 Thread Tero Kristo
On 03/05/2014 10:35 AM, Tomi Valkeinen wrote: Hi Tero, What about the dts fixes in this series? DSS DT depends on those fixes. I'd like the dts fixes to be either merged for v3.14, or I can add them to my DSS DT series (with acks). Well, I am not a maintainer of any sort, so you are asking wro

Re: [PATCHv2 13/14] ARM: OMAP24xx: clock: remove legacy clock data

2014-03-05 Thread Tero Kristo
On 03/04/2014 11:28 PM, Tony Lindgren wrote: * Tero Kristo [140304 10:58]: On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo [140304 01:22]: This is no longer needed as clock data is provided through DT. Looks like there's a new error even before applying this patch in the s

Re: [PATCHv2 14/14] ARM: OMAP3: clock: remove legacy clock data

2014-03-04 Thread Tero Kristo
On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo [140304 01:22]: This is no longer needed as clock data is provided through DT. And this one we cannot apply yet until omap3 is booting in device tree only mode. What is missing to achieve this? Some boards are not booting in DT

Re: [PATCHv2 13/14] ARM: OMAP24xx: clock: remove legacy clock data

2014-03-04 Thread Tero Kristo
On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo [140304 01:22]: This is no longer needed as clock data is provided through DT. Looks like there's a new error even before applying this patch in the series as I'm now getting the following oops on n8x0. So cannot test this

[PATCH 18/18] ARM: OMAP3: control: isolate control module init to its own function

2014-03-04 Thread Tero Kristo
Control module related PM initializations are now moved within control module driver. Done in preparation to isolate the code to its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/control.c | 19 +-- arch/arm/mach-omap2/control.h |3 +-- arch/arm/mach-omap2

[PATCH 16/18] ARM: OMAP3: control: add API for setting up the modem pads

2014-03-04 Thread Tero Kristo
This patch moves the functionality from PM core to control driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/control.c | 26 ++ arch/arm/mach-omap2/control.h |1 + arch/arm/mach-omap2/pm34xx.c | 15 +-- 3 files changed, 28 insertions(+), 14

[PATCH 13/18] ARM: OMAP3: PRM: move PRM init code from PM core to the driver

2014-03-04 Thread Tero Kristo
Helps to isolate the PRM driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 71 +--- arch/arm/mach-omap2/prm3xxx.c | 90 + arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 92 insertions(+), 70

[PATCH 01/18] ARM: OMAP3: CM: remove a few OMAP34XX_CM_REGADDR defines

2014-03-04 Thread Tero Kristo
Remove a few OMAP34XX_CM_REGADDR defines and replace these with offset based register accesses instead. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm3xxx.c | 12 arch/arm/mach-omap2/cm3xxx.h |6 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a

[PATCH 11/18] ARM: OMAP24xx: PRM: move PRM init code within PRM driver from PM core

2014-03-04 Thread Tero Kristo
Done to isolate the PRM as its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm24xx.c | 34 + arch/arm/mach-omap2/prm2xxx.c | 42 + arch/arm/mach-omap2/prm2xxx.h |1 + 3 files changed, 44

[PATCH 00/18] ARM: OMAP2+: CM/PRM cleanup set

2014-03-04 Thread Tero Kristo
Hi, This set cleans up the CM/PRM codebase a bit, removing the need for direct CM/PRM register access macros outside CM/PRM drivers. This is done in preparation to isolate these drivers into its own driver directory. Currently my plan is to create a single PRCM driver, which will contain both, and

[PATCH 02/18] ARM: OMAP2+: prcm: add omap_test_timeout to prcm-common.h

2014-03-04 Thread Tero Kristo
Done in preparation to move cm/prm to drivers. These will still use omap_test_timeout, but will not have access to common.h header under mach-omap2 anymore. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prcm-common.h | 20 1 file changed, 20 insertions(+) diff --git

[PATCH 15/18] ARM: OMAP4+: PRM: make prm register access internal to PRM driver only

2014-03-04 Thread Tero Kristo
Removed exported prototypes from the public header file for the direct register access. Also made a new driver API for clearing mpuss previous logic powerstate so that the register APIs are no longer needed. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-mpuss-lowpower.c | 15

[PATCH 17/18] ARM: OMAP3: PRM: move modem reset and iva2 idle to PRM driver

2014-03-04 Thread Tero Kristo
Done in preparation to move PRM into its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 15 --- arch/arm/mach-omap2/prm3xxx.c |7 +++ 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach

[PATCH 08/18] ARM: OMAP3: PRM: add API for checking and clearing cold reset status

2014-03-04 Thread Tero Kristo
This isolates the PRM register access within the PRM driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/control.c |6 +- arch/arm/mach-omap2/prm3xxx.c | 20 arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 22 insertions(+), 5 deletions(-) diff

[PATCH 10/18] ARM: OMAP24xx: PRM: add API for clearing wakeup status bits

2014-03-04 Thread Tero Kristo
This helps to isolate the PRM into its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm24xx.c | 31 +-- arch/arm/mach-omap2/prm2xxx.c | 18 ++ arch/arm/mach-omap2/prm2xxx.h |1 + 3 files changed, 32 insertions(+), 18

[PATCH 03/18] ARM: OMAP2/3: CM: remove some external dependencies

2014-03-04 Thread Tero Kristo
Done in preparation to move the CM driver to its own driver folder. These drivers will not have access to functionality under mach-omap2 anymore. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c | 15 ++- arch/arm/mach-omap2/cm3xxx.c | 13 + 2 files

[PATCH 06/18] ARM: OMAP3: PRM: move modem reset to PRM driver

2014-03-04 Thread Tero Kristo
This is a more proper isolation of the code. Done in preparation of making PRM an individual driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c |5 + arch/arm/mach-omap2/prm3xxx.c | 15 +++ arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 17

[PATCH 07/18] ARM: OMAP2/3: CM: remove direct register access macros from common header

2014-03-04 Thread Tero Kristo
Done in preparation to move CM to be a driver of its own. This patch causes currently a build breakage which will be addressed in next patches. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c |1 + arch/arm/mach-omap2/cm2xxx_3xxx.h | 48

[PATCH 04/18] ARM: OMAP3: PRM: move prcm wakeup helper to prm driver

2014-03-04 Thread Tero Kristo
Done in preparation to make the prm an individual driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 60 + arch/arm/mach-omap2/prm3xxx.c | 53 arch/arm/mach-omap2/prm3xxx.h |1 + 3 files

[PATCH 12/18] ARM: OMAP3: PM: remove access to PRM_VOLTCTRL register

2014-03-04 Thread Tero Kristo
There is a solitary write to this register every wakeup from off-mode, which isn't doing anything, so remove it. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c |4 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm3

[PATCH 14/18] ARM: OMAP2/3: PRM: split PRM header file to common and internal versions

2014-03-04 Thread Tero Kristo
Internal version contains the direct register access macros and should only be used by PRCM drivers. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm2xxx.c |2 +- arch/arm/mach-omap2/prm2xxx_3xxx.c |2 +- arch/arm/mach-omap2/prm2xxx_3xxx.h | 47

[PATCH 09/18] ARM: OMAP3: PRM: add API for saving PRM scratchpad contents

2014-03-04 Thread Tero Kristo
This isolates the PRM register access within the PRM driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/control.c | 11 ++- arch/arm/mach-omap2/prm3xxx.c |9 + arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a

[PATCH 05/18] ARM: OMAP3: PRM: move iva reset to PRM driver

2014-03-04 Thread Tero Kristo
This is a more proper isolation of the code. Done in preparation of making PRM an individual driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 49 + arch/arm/mach-omap2/prm3xxx.c | 45 + arch

[PATCHv2 10/14] ARM: dts: omap2 clock data

2014-03-04 Thread Tero Kristo
This patch creates a unique node for each clock in the OMAP2 power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap2420-clocks.dtsi | 270 +++ arch/arm/boot/dts/omap2420.dtsi| 29 + arch/arm/boot/dts/omap2430-clocks.dtsi | 344

[PATCHv2 11/14] ARM: OMAP2: clock: add DT boot support for cpufreq_ck

2014-03-04 Thread Tero Kristo
The clock and clkdev for this are added manually. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 53 ++ drivers/clk/ti/clk-2xxx.c|2 + include/linux/clk/ti.h |1 + 3 files changed, 56

[PATCHv2 08/14] CLK: TI: OMAP2: add clock init support

2014-03-04 Thread Tero Kristo
Adds support for registering the alias clocks, boot time clock-enable list and disabling autoidle of clocks. Signed-off-by: Tero Kristo --- drivers/clk/ti/Makefile |1 + drivers/clk/ti/clk-2xxx.c | 254 + include/linux/clk/ti.h|2 + 3

[PATCHv2 06/14] CLK: TI: gate: fixed DT binding documentation bugs

2014-03-04 Thread Tero Kristo
ti,composite-gate-clock documentation was missing, also the register offset examples were wrong. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/gate.txt | 29 +--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree

[PATCHv2 12/14] ARM: OMAP2: clock: use DT clock boot if available

2014-03-04 Thread Tero Kristo
Otherwise legacy boot clock data is used. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index af432b1..e57088d 100644 --- a/arch/arm/mach-omap2

[PATCHv2 09/14] ARM: OMAP2: PRM: add support for OMAP2 specific clock providers

2014-03-04 Thread Tero Kristo
This patch adds support for initializing also omap2-prcm and omap2-scrm through DT. Signed-off-by: Tero Kristo --- .../devicetree/bindings/arm/omap/prcm.txt | 65 arch/arm/mach-omap2/prm_common.c |2 + 2 files changed, 67 insertions

[PATCHv2 05/14] CLK: TI: APLL: add support for omap2 aplls

2014-03-04 Thread Tero Kristo
This patch adds support for omap2 type aplls, which have gating and autoidle functionality. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/apll.txt | 24 ++- arch/arm/mach-omap2/clock.h| 11 -- drivers/clk/ti/apll.c

[PATCHv2 01/14] ARM: OMAP2: convert sys_ck and osc_ck to standard clock types

2014-03-04 Thread Tero Kristo
osc_ck can be simply defined as a multiplexer clock, and the sys_ck can be a simple divider. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/Makefile |3 +- arch/arm/mach-omap2/cclock2420_data.c | 52 + arch/arm/mach-omap2/cclock2430_data.c | 60

[PATCHv2 00/14]: ARM: OMAP2: clock DT conversion

2014-03-04 Thread Tero Kristo
Hi, Changes compared to v1: - fixed OMAP2 only build issues - fixed OMAP2420 boot issues - added patch #13 and #14 to remove legacy clock data for OMAP2/OMAP3 - fixed smatch + DT bindings documentation problems reported by Nishanth This set is un-tested on OMAP2 hardware as I don't have access to

[PATCHv2 07/14] CLK: TI: interface: add support for omap2430 specific interface clock

2014-03-04 Thread Tero Kristo
OMAP2430 I2CHS modules require specific hardware ops to be used, so added a new compatible string for this. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/interface.txt |2 ++ arch/arm/mach-omap2/clock.h|1 - drivers/clk/ti/interface.c

[PATCHv2 04/14] CLK: TI: DPLL: add support for omap2 core dpll

2014-03-04 Thread Tero Kristo
OMAP2 has slightly different DPLL compared to later OMAP generations. This patch adds support for the ti,omap2-dpll-core-clock and also adds the bindings documentation. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/dpll.txt |9 +++ arch/arm/mach-omap2/clock.h

[PATCHv2 02/14] ARM: OMAP2420: clock: get rid of fixed-div property use

2014-03-04 Thread Tero Kristo
Cleans up the code a bit and is useful for clock data DT conversion. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cclock2420_data.c | 15 --- arch/arm/mach-omap2/clock.c | 21 - arch/arm/mach-omap2/clock.h |3 --- 3 files changed

[PATCHv2 03/14] CLK: TI: DPLL: simplify autoidle register detection logic

2014-03-04 Thread Tero Kristo
d-off-by: Tero Kristo --- drivers/clk/ti/dpll.c | 39 +++ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/drivers/clk/ti/dpll.c b/drivers/clk/ti/dpll.c index 7e498a4..dda262d 100644 --- a/drivers/clk/ti/dpll.c +++ b/drivers/clk/ti/dpll.c @@

Re: [PATCH 00/12] ARM: OMAP2 DT clock conversion

2014-03-03 Thread Tero Kristo
On 03/03/2014 08:46 PM, Tony Lindgren wrote: * Tero Kristo [140303 00:20]: On 02/28/2014 08:33 PM, Tony Lindgren wrote: * Tero Kristo [140228 10:21]: Hmm, some clock node is broken, might be missing a name or parent name for some reason. Can you try to boot with DEBUG enabled so you get

Re: [PATCH 00/12] ARM: OMAP2 DT clock conversion

2014-03-03 Thread Tero Kristo
On 02/28/2014 08:33 PM, Tony Lindgren wrote: * Tero Kristo [140228 10:21]: Hmm, some clock node is broken, might be missing a name or parent name for some reason. Can you try to boot with DEBUG enabled so you get pr_debug:s out and see which clock is being initialized during the crash

Re: [RFC PATCH v1 1/2] ARM: dts: AM43xx-clocks: Entries added for ti-usim

2014-03-02 Thread Tero Kristo
On 01/06/2014 02:12 PM, Satish Patel wrote: Clock entries support for TI's USIM - Smart card controller of AM43xx platform USIM controller has multiple sources for debounce and functional clock.Entry for each source has been added. This patch is using unsupported/old version of DT data layout

Re: [RFC PATCH v1 0/2] clock and HWMOD changes for USIM module

2014-03-02 Thread Tero Kristo
On 03/03/2014 08:09 AM, Satish Patel wrote: On 3/1/2014 3:29 AM, Tony Lindgren wrote: * Satish Patel [140109 00:13]: On 1/6/2014 5:42 PM, Satish Patel wrote: Patch set includes clock and HWMOD entries for AM43x's USIM modoule. Note: I am in process of mainlining usim driver. Satish Pate

Re: [PATCH v3 1/2] CLK: TI: OMAP4/5/DRA7: Remove gpmc_fck from dummy clocks

2014-02-28 Thread Tero Kristo
ks good to me also. Acked-by: Tero Kristo Regards, Tony --- drivers/clk/ti/clk-44xx.c | 1 - drivers/clk/ti/clk-54xx.c | 1 - drivers/clk/ti/clk-7xx.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/clk/ti/clk-44xx.c b/drivers/clk/ti/clk-44xx.c index ae00218..02517a8 10

Re: [PATCH 00/12] ARM: OMAP2 DT clock conversion

2014-02-28 Thread Tero Kristo
On 02/28/2014 08:01 PM, Tony Lindgren wrote: * Nishanth Menon [140228 08:02]: On 02/28/2014 03:22 AM, Tero Kristo wrote: Hi, This set concludes the omap2+ clock DT conversion work by creating the DT clock data for omap2 SoC also. I am also currently doing related work to cleanup CM/PRM

[PATCH 04/12] CLK: TI: DPLL: add support for omap2 core dpll

2014-02-28 Thread Tero Kristo
OMAP2 has slightly different DPLL compared to later OMAP generations. This patch adds support for the ti,omap2-dpll-core-clock and also adds the bindings documentation. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/dpll.txt |9 arch/arm/mach-omap2/clock.h

[PATCH 12/12] ARM: OMAP2: clock: use DT clock boot if available

2014-02-28 Thread Tero Kristo
Otherwise legacy boot clock data is used. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index af432b1..e57088d 100644 --- a/arch/arm/mach-omap2

[PATCH 03/12] CLK: TI: DPLL: simplify autoidle register detection logic

2014-02-28 Thread Tero Kristo
d-off-by: Tero Kristo --- drivers/clk/ti/dpll.c | 39 +++ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/drivers/clk/ti/dpll.c b/drivers/clk/ti/dpll.c index 7e498a4..dda262d 100644 --- a/drivers/clk/ti/dpll.c +++ b/drivers/clk/ti/dpll.c @@

[PATCH 00/12] ARM: OMAP2 DT clock conversion

2014-02-28 Thread Tero Kristo
Hi, This set concludes the omap2+ clock DT conversion work by creating the DT clock data for omap2 SoC also. I am also currently doing related work to cleanup CM/PRM codebase in preparation to move it into drivers/, this set is basically going to be a pre-requisite for that. I'll hopefully post s

[PATCH 05/12] CLK: TI: APLL: add support for omap2 aplls

2014-02-28 Thread Tero Kristo
This patch adds support for omap2 type aplls, which have gating and autoidle functionality. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/apll.txt | 21 ++- arch/arm/mach-omap2/clock.h| 11 -- drivers/clk/ti/apll.c

[PATCH 10/12] ARM: OMAP2: clock: add DT boot support for cpufreq_ck

2014-02-28 Thread Tero Kristo
The clock and clkdev for this are added manually. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clkt2xxx_virt_prcm_set.c | 46 ++ drivers/clk/ti/clk-2xxx.c|2 ++ include/linux/clk/ti.h |1 + 3 files changed, 49

[PATCH 11/12] ARM: OMAP2: PRM: add support for OMAP2 specific clock providers

2014-02-28 Thread Tero Kristo
This patch adds support for initializing also omap2-prcm and omap2-scrm through DT. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm_common.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index b4c4ab9..878ae9f

[PATCH 09/12] ARM: dts: omap2 clock data

2014-02-28 Thread Tero Kristo
This patch creates a unique node for each clock in the OMAP2 power, reset and clock manager (PRCM). Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap2420-clocks.dtsi | 270 +++ arch/arm/boot/dts/omap2420.dtsi| 29 + arch/arm/boot/dts/omap2430-clocks.dtsi | 344

[PATCH 02/12] ARM: OMAP2420: clock: get rid of fixed-div property use

2014-02-28 Thread Tero Kristo
Cleans up the code a bit and is useful for clock data DT conversion. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cclock2420_data.c | 15 --- arch/arm/mach-omap2/clock.c | 21 - arch/arm/mach-omap2/clock.h |3 --- 3 files changed

[PATCH 06/12] CLK: TI: gate: fixed DT binding documentation bugs

2014-02-28 Thread Tero Kristo
ti,composite-gate-clock documentation was missing, also the register offset examples were wrong. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/gate.txt | 29 +--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree

[PATCH 01/12] ARM: OMAP2: convert sys_ck and osc_ck to standard clock types

2014-02-28 Thread Tero Kristo
osc_ck can be simply defined as a multiplexer clock, and the sys_ck can be a simple divider. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/Makefile |3 +- arch/arm/mach-omap2/cclock2420_data.c | 52 + arch/arm/mach-omap2/cclock2430_data.c | 60

[PATCH 07/12] CLK: TI: interface: add support for omap2430 specific interface clock

2014-02-28 Thread Tero Kristo
OMAP2430 I2CHS modules require specific hardware ops to be used, so added a new compatible string for this. Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/ti/interface.txt |2 ++ arch/arm/mach-omap2/clock.h|1 - drivers/clk/ti/interface.c

[PATCH 08/12] CLK: TI: OMAP2: add clock init support

2014-02-28 Thread Tero Kristo
Adds support for registering the alias clocks, boot time clock-enable list and disabling autoidle of clocks. Signed-off-by: Tero Kristo --- drivers/clk/ti/Makefile |1 + drivers/clk/ti/clk-2xxx.c | 254 + include/linux/clk/ti.h|2 + 3

Re: [PATCH 2/2] ARM: dts: OMAP3+: add clock nodes for CPU

2014-02-20 Thread Tero Kristo
good to me. Acked-by: Tero Kristo --- arch/arm/boot/dts/am33xx.dtsi |4 arch/arm/boot/dts/am4372.dtsi |5 + arch/arm/boot/dts/dra7.dtsi |5 + arch/arm/boot/dts/omap3.dtsi |5 + arch/arm/boot/dts/omap4.dtsi |5 + arch/arm/boot/dts/omap5.dtsi

Re: [PATCH 1/2] clk: ti: am335x: remove unecessary cpu0 clk node

2014-02-20 Thread Tero Kristo
On 01/29/2014 08:19 PM, Nishanth Menon wrote: cpu0 clock node has no functionality, since cpufreq-cpu0 is already capable of picking up the clock from dts. Signed-off-by: Nishanth Menon Acked-by: Tero Kristo --- drivers/clk/ti/clk-33xx.c |1 - 1 file changed, 1 deletion(-) diff

Re: [PATCH v2 0/2] ARM: OMAP4: Fix gpmc_fck clock

2014-02-20 Thread Tero Kristo
On 02/19/2014 09:26 PM, Florian Vaussard wrote: On 02/19/2014 05:22 PM, Tero Kristo wrote: On 02/19/2014 11:15 AM, Florian Vaussard wrote: Hello, Trying to get my SMSC9221 working on OMAP4 with DT, I faced a misconfigured gpmc_fck (dummy clock set to 0) resulting in serveral division-by-zero

Re: [PATCH v2 0/2] ARM: OMAP4: Fix gpmc_fck clock

2014-02-19 Thread Tero Kristo
On 02/19/2014 11:15 AM, Florian Vaussard wrote: Hello, Trying to get my SMSC9221 working on OMAP4 with DT, I faced a misconfigured gpmc_fck (dummy clock set to 0) resulting in serveral division-by-zero, misconfigured timings and driver lost in the La La Land. To solve this, patch 1 removes gpmc

Re: [PATCH 2/2] ARM: DTS: OMAP4: Add gpmc_fck clock node

2014-02-17 Thread Tero Kristo
On 02/17/2014 06:13 PM, Florian Vaussard wrote: Hi, On 02/17/2014 01:29 PM, Tero Kristo wrote: On 02/17/2014 01:27 PM, Florian Vaussard wrote: Add the gpmc_fck clock, derived from l3_ick, and reference it from the GPMC node to get it correctly working. Signed-off-by: Florian Vaussard

Re: [PATCH 2/2] ARM: DTS: OMAP4: Add gpmc_fck clock node

2014-02-17 Thread Tero Kristo
On 02/17/2014 01:27 PM, Florian Vaussard wrote: Add the gpmc_fck clock, derived from l3_ick, and reference it from the GPMC node to get it correctly working. Signed-off-by: Florian Vaussard --- arch/arm/boot/dts/omap4.dtsi | 2 ++ arch/arm/boot/dts/omap44xx-clocks.dtsi | 6 ++

Re: [PATCH 7/8] ARM: dts: set 'ti,set-rate-parent' for dpll4_m4 path

2014-02-14 Thread Tero Kristo
On 02/13/2014 12:04 PM, Tomi Valkeinen wrote: Set 'ti,set-rate-parent' property for clocks in the dpll4_m4 clock path, which is used for DSS functional clock. This fixes DSS driver's clock rate configuration, which needs the rate to be propagated properly to the divider node (dpll4_m4_ck). ...

Re: [PATCH 6/8] ARM: dts: use ti,fixed-factor-clock for dpll4_m4x2_mul_ck

2014-02-14 Thread Tero Kristo
On 02/13/2014 12:04 PM, Tomi Valkeinen wrote: We need to use set-rate-parent for dpll4_m4 clock path, so use the ti,fixed-factor-clock version which supports set-rate-parent property. you are talking about the flag but not introducing it in this patch, maybe squash this + patch 7...? -

Re: [PATCH 5/8] ARM: dts: fix DPLL4 x2 clkouts on 3630

2014-02-14 Thread Tero Kristo
On 02/13/2014 12:04 PM, Tomi Valkeinen wrote: OMAP3630 DPLL4 is different than on OMAP3430, in that it doesn't have the x2 multiplier for its outputs. This is not currently reflected in the clock DT data. Fix the issue by setting the clock multiplier to 1 (instead of 2) for the DPLL4 output cloc

Re: [PATCH 4/8] ARM: dts: fix omap3 dss clock handle names

2014-02-14 Thread Tero Kristo
g the issue. Signed-off-by: Tomi Valkeinen Acked-by: Tero Kristo --- arch/arm/boot/dts/omap3430es1-clocks.dtsi | 6 +++--- arch/arm/boot/dts/omap36xx-am35xx-omap3430es2plus-clocks.dtsi | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/ar

Re: [PATCH] ARM: dts: omap3 clocks: simplify ssi aliases

2014-02-14 Thread Tero Kristo
On 02/14/2014 03:25 AM, Sebastian Reichel wrote: On Thu, Feb 13, 2014 at 02:49:14PM -0800, Tony Lindgren wrote: * Sebastian Reichel [140121 06:39]: update aliases for the ssi clocks ssi_ssr_fck, ssi_sst_fck and ssi_ick to make them consistent for omap34xx and omap36xx. This makes it possible t

Re: [PATCH 1/8] clk: divider: fix rate calculation for fractional rates

2014-02-14 Thread Tero Kristo
On 02/13/2014 12:03 PM, Tomi Valkeinen wrote: clk-divider.c does not calculate the rates consistently at the moment. As an example, on OMAP3 we have a clock divider with a source clock of 86400 Hz. With dividers 6, 7 and 8 the theoretical rates are: 6: 14400 7: 123428571.428571... 8: 10

Re: [PATCH 2/2] ARM: OMAP2+: fix dpll round_rate() to actually round

2014-02-14 Thread Tero Kristo
On 02/14/2014 01:00 AM, Tony Lindgren wrote: * Tomi Valkeinen [140116 23:47]: omap2_dpll_round_rate() doesn't actually round the given rate, even if the name and the description so hints. Instead it only tries to find an exact rate match, or if that fails, return ~0 as an error. What this basi

Re: [PATCH] ARM: OMAP2+: clock: fix clkoutx2 with CLK_SET_RATE_PARENT

2014-02-14 Thread Tero Kristo
On 02/14/2014 01:12 AM, Tony Lindgren wrote: * Tomi Valkeinen [140130 03:19]: If CLK_SET_RATE_PARENT is set for a clkoutx2 clock, calling clk_set_rate() on the clock "skips" the x2 multiplier as there are no set_rate and round_rate functions defined for the clkoutx2. This results in getting do

Re: [PATCH] ARM: OMAP3+: DPLL: stop reparenting to same parent if already done

2014-02-14 Thread Tero Kristo
On 02/14/2014 01:13 AM, Tony Lindgren wrote: * Nishanth Menon [140205 01:06]: omap3_noncore_dpll_set_rate forces a reparent to the same clk_ref for every call that takes place. This is an can be done only if a change is detected. Signed-off-by: Nishanth Menon Would like to see acks on this

[PATCH 3/4] clk: ti: add support for default-rate property from DT

2014-02-13 Thread Tero Kristo
default-rate property can now be used to define default rates for clocks, which get configured during boot. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm_common.c |2 ++ drivers/clk/ti/clk.c |1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm/mach-omap2

[PATCH 0/4] clk: dt: add support for default rate/parent

2014-02-13 Thread Tero Kristo
Hi, This set is a mix-match of new DT properties for generic and TI specific clock drivers. Basically provided for commenting purposes. The patches provide a way to configure clock parents / rates during boot through DT. "default-rate" : sets rate of a clock during boot, supported for any DT

[PATCH 4/4] clk: ti: omap4: set default-parents and default-rates using DT

2014-02-13 Thread Tero Kristo
Setup dpll_usb_ck and dpll_abe_ck using DT properties instead of hardcoding the parents and rates in kernel. Signed-off-by: Tero Kristo --- arch/arm/boot/dts/omap4.dtsi | 12 drivers/clk/ti/clk-44xx.c| 42 -- 2 files changed, 12

[PATCH 1/4] clk: ti: mux: add support for default-parenting

2014-02-13 Thread Tero Kristo
ti,mux-clock now supports ti,default-parent property, which can be used to configure the default parent of the clock during boot. This property can be added to board specific files, or under the clock data itself. Signed-off-by: Tero Kristo --- Documentation/devicetree/bindings/clock/ti/mux.txt

[PATCH 2/4] clk: add support for default-rate

2014-02-13 Thread Tero Kristo
default-rate property can now be used to set initial rates for clocks. This is added by default for all clocks which get initialized through of_clk_init(). Signed-off-by: Tero Kristo --- .../devicetree/bindings/clock/clock-bindings.txt |9 ++ drivers/clk/clk.c

Re: OMAP: clock DT conversion issues with omap36xx

2014-02-04 Thread Tero Kristo
On 01/29/2014 01:21 PM, Christoph Fritz wrote: On Tue, 2014-01-28 at 18:02 +0100, Christoph Fritz wrote: On Tue, 2014-01-28 at 15:40 +0200, Tero Kristo wrote: Due to a regression since next-20140122 the following errors are present: - pin sys_clkout2, which gets configured to 24 Mhz by

Re: OMAP: clock DT conversion issues with omap36xx

2014-01-29 Thread Tero Kristo
On 01/29/2014 01:21 PM, Christoph Fritz wrote: On Tue, 2014-01-28 at 18:02 +0100, Christoph Fritz wrote: On Tue, 2014-01-28 at 15:40 +0200, Tero Kristo wrote: Due to a regression since next-20140122 the following errors are present: - pin sys_clkout2, which gets configured to 24 Mhz by

Re: [BISECTED] OMAP: DSS: clk rate mismatch

2014-01-29 Thread Tero Kristo
On 01/29/2014 11:38 AM, Tomi Valkeinen wrote: On 2014-01-29 11:29, Ivaylo Dimitrov wrote: On 29.01.2014 11:10, Tero Kristo wrote: It looks like the omap36xx version of the omap96m_alwon_fck is modelled improperly in the dts files. I don't have access to omap36xx hardware myself, but g

<    3   4   5   6   7   8   9   10   11   12   >