Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2016-01-04 Thread Tero Kristo
On 01/04/2016 06:37 PM, Tony Lindgren wrote: * Russell King - ARM Linux <li...@arm.linux.org.uk> [160104 06:43]: On Mon, Jan 04, 2016 at 03:27:57PM +0200, Tero Kristo wrote: On 01/04/2016 12:21 PM, Geert Uytterhoeven wrote: FWIW, there are small loops with just a cpu_relax() in various

Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2016-01-04 Thread Tero Kristo
On 01/04/2016 12:21 PM, Geert Uytterhoeven wrote: Hi Tero, On Mon, Jan 4, 2016 at 8:36 AM, Tero Kristo <t-kri...@ti.com> wrote: On 01/01/2016 07:48 AM, Michael Turquette wrote: Quoting Tero Kristo (2015-12-18 05:58:58) +static int _omap4_hwmod_clk_enable(struct clk_hw *hw) +{ +

Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2016-01-03 Thread Tero Kristo
On 01/01/2016 07:48 AM, Michael Turquette wrote: Hi Tero, Quoting Tero Kristo (2015-12-18 05:58:58) Previously, hwmod core has been used for controlling the hwmod level clocks. This has certain drawbacks, like being unable to share the clocks for multiple users, missing usecounting

Re: [PATCH v2] ARM: dts: Add clocks for dm814x ADPLL

2015-12-22 Thread Tero Kristo
On 12/22/2015 05:53 PM, Tony Lindgren wrote: These use the standard clock bindings and now we can make some of the fixed clocks into real clocks. Cc: Tero Kristo <t-kri...@ti.com> Signed-off-by: Tony Lindgren <t...@atomide.com> --- Changes since v1: - Updated for changed

Re: [PATCH v4] clk: ti: Add support for dm814x ADPLL

2015-12-22 Thread Tero Kristo
on "ARM: OMAP2+: Change core_initcall levels to postcore_initcall". Also note that this patch does not implement clk_set_rate for the PLL, that will be posted later on when available. Cc: Michael Turquette <mturque...@baylibre.com> Cc: Stephen Boyd <sb...@codeaurora.org>

[RFC 0/9] ARM: OMAP4: hwmod clkctrl conversion to DT + clock driver

2015-12-18 Thread Tero Kristo
Hi, This series adds support for hwmod gate clock type, and changes OMAP4 as an example to use the new clock type, converting the existing hwmod_data clkctrl definitions to clock nodes under device tree. Some additional magic is required for handling timer clocks, as the clock driver assumes it

[RFC 7/9] ARM: dts: omap4: add hwmod module clocks

2015-12-18 Thread Tero Kristo
Add clock nodes for the SoC hwmods. This is done in preparation to remove hwmod data from kernel, hwmod will use the clock nodes instead for module level enable / disable logic. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/omap44xx-clocks.dtsi

[RFC 8/9] ARM: OMAP4: hwmod_data: use module clocks from DT

2015-12-18 Thread Tero Kristo
Replace the usage of prcm->clkstctrl with main_clk:s provided via DT. This is done in preparation to get rid of hwmod data from kernel. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 339 1 file changed, 95 i

[RFC 2/9] ARM: OMAP2+: hwmod: initialize main clocks directly from DT

2015-12-18 Thread Tero Kristo
This avoids the need to add clock aliases under drivers/clk/ti/clk-xyz.c files. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/omap_hwmod.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/ar

[RFC 6/9] clk: ti: add support for omap4 module clocks

2015-12-18 Thread Tero Kristo
clock driver, which will be used to convert all the existing hwmdo clocks to. This helps to get rid of the clock related hwmod data from kernel and instead parsing this from DT. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- drivers/clk/ti/Makefile |3 +- drivers/clk/ti/clkt_mod.c

[RFC 4/9] clk: ti: mux: export mux clock APIs locally

2015-12-18 Thread Tero Kristo
get_parent and set_parent are going to be required by the support of module clocks, so export these locally. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- drivers/clk/ti/clock.h |3 +++ drivers/clk/ti/mux.c |4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff

[RFC 3/9] clk: ti: remove un-used definitions from public clk_hw_omap struct

2015-12-18 Thread Tero Kristo
Clksel support has been deprecated a while back, so remove these from the struct also. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- include/linux/clk/ti.h |4 1 file changed, 4 deletions(-) diff --git a/include/linux/clk/ti.h b/include/linux/clk/ti.h index 223be69..ec5613a

[RFC 9/9] clk: ti: omap4: update clock aliases to reflect new module clocks

2015-12-18 Thread Tero Kristo
The clock data in DT has been updated, and the clock aliases must be updated to match. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- drivers/clk/ti/clk-44xx.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/clk/ti/clk-44xx.c b/drive

[RFC 1/9] ARM: OMAP2+: omap_device: create clock alias purely from DT data

2015-12-18 Thread Tero Kristo
This avoids the need to add most of the clock aliases under drivers/clk/ti/clk-xyz.c files. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/omap_device.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/ar

[RFC 5/9] dt-bindings: clk: ti: Document module clock type

2015-12-18 Thread Tero Kristo
Document the new TI module clock type, which is intended to replace the internal clock control handling within omap_hwmod. Module clock is effectively a gate clock controlling both interface and functional clocks for a single hardware IP block. Signed-off-by: Tero Kristo <t-kri...@ti.

[PATCHv2] clk: ti: omap5+: dpll: implement errata i810

2015-12-16 Thread Tero Kristo
by setting the DPLL AUTO_DPLL_MODE=0 or keeping a clock request active by setting a dependent clock domain in SW_WKUP. This errata is known to impact OMAP5 and DRA7 chips, but lets enable it unconditionally to avoid any potential problems with earlier generation SoCs also. Signed-off-by: Tero Kristo &l

Re: [PATCH] clk: ti: omap5+: dpll: implement errata i810

2015-12-11 Thread Tero Kristo
On 12/03/2015 06:48 PM, Tony Lindgren wrote: * Tero Kristo <t-kri...@ti.com> [151130 06:44]: + /* +* Errata i810 - DPLL controller can get stuck while transitioning +* to a power saving state. Software must ensure the DPLL can not +* transition to a low power

Re: [PATCH v2] clk: ti: Add support for dm814x ADPLL

2015-12-10 Thread Tero Kristo
On 12/11/2015 04:26 AM, Tony Lindgren wrote: On dm814x we have 13 ADPLLs with 3 to 4 outputs on each. The ADPLLs have several dividers and muxes controlled by a shared control register for each PLL. Note that for the clocks to work as device drivers for booting on dm814x, this patch depends on

Re: [PATCH 02/10] clk: ti: Add few dm814x clock aliases

2015-12-08 Thread Tero Kristo
@codeaurora.org> Cc: Tero Kristo <t-kri...@ti.com> Signed-off-by: Tony Lindgren <t...@atomide.com> Anybody from the clock department care to ack this one? Sorry been rather busy lately... I'd like to get this series into Linux next as it fixes some some issues. Yeah looks

Re: [PATCH 02/10] clk: ti: Add few dm814x clock aliases

2015-12-08 Thread Tero Kristo
On 12/08/2015 10:11 PM, Tony Lindgren wrote: * Tero Kristo <t-kri...@ti.com> [151208 11:25]: On 12/08/2015 06:57 PM, Tony Lindgren wrote: Anybody from the clock department care to ack this one? Sorry been rather busy lately... I'd like to get this series into Linux next as it fixe

[PATCH] clk: ti: omap5+: dpll: implement errata i810

2015-11-30 Thread Tero Kristo
by setting the DPLL AUTO_DPLL_MODE=0 or keeping a clock request active by setting a dependent clock domain in SW_WKUP. This errata impacts OMAP5 and DRA7 chips, so enable the errata for these. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/clock.c |4 drivers/

Re: [4.4-rc][PATCH] ARM: dts: am4372: fix clock source for arm twd and global timers

2015-11-30 Thread Tero Kristo
stead of 5. Hence, fix it by adding mpu_periphclk ("fixed-factor-clock") and use it for clocking ARM TWD and Global timer (same way as on OMAP4). Cc: Tony Lindgren <t...@atomide.com> Cc: Felipe Balbi <ba...@ti.com> Cc: Tero Kristo <t-kri...@ti.com> Fixes:commit 8cbd4c2f

Re: [4.4-rc][PATCH] ARM: dts: am4372: fix clock source for arm twd and global timers

2015-11-30 Thread Tero Kristo
On 11/30/2015 03:49 PM, Grygorii Strashko wrote: On 11/30/2015 03:32 PM, Tero Kristo wrote: On 11/30/2015 01:53 PM, Grygorii Strashko wrote: On 11/30/2015 10:25 AM, Tero Kristo wrote: On 11/27/2015 09:44 PM, Grygorii Strashko wrote: ARM TWD and Global timer are clocked by PERIPHCLK which

Re: [4.4-rc][PATCH] ARM: dts: am4372: fix clock source for arm twd and global timers

2015-11-30 Thread Tero Kristo
On 11/30/2015 01:53 PM, Grygorii Strashko wrote: On 11/30/2015 10:25 AM, Tero Kristo wrote: On 11/27/2015 09:44 PM, Grygorii Strashko wrote: ARM TWD and Global timer are clocked by PERIPHCLK which is MPU_CLK/2. But now they are clocked by dpll_mpu_m2_ck == MPU_CLK and, as result. Timekeeping

Re: [PATCH] clk: ti: drop locking code from mux/divider drivers

2015-11-24 Thread Tero Kristo
On 10/24/2015 12:10 AM, Grygorii Strashko wrote: On 10/01/2015 10:20 PM, Grygorii Strashko wrote: TI's mux and divider clock drivers do not require locking and they do not initialize internal spinlocks. This code was occasionally copy-posted from generic mux/divider drivers. So remove it. Cc:

Re: [PATCH] ti/clkt_dpll: fix wrong do_div() usage

2015-11-24 Thread Tero Kristo
On 11/04/2015 06:09 AM, Nicolas Pitre wrote: do_div() is meant to be used with an unsigned dividend. Signed-off-by: Nicolas Pitre Fixed Subject locally to format "clk: ti: %s". Queued for 4.4-rc fixes, thanks. -Tero diff --git a/drivers/clk/ti/clkt_dpll.c

[GIT PULL] clk: ti: fixes for 4.4-rc

2015-11-24 Thread Tero Kristo
Hi Michael, Stephen, Here are some TI clock driver fixes for 4.4-rc. -Tero The following changes since commit 8005c49d9aea74d382f474ce11afbbc7d7130bec: Linux 4.4-rc1 (2015-11-15 17:00:27 -0800) are available in the git

Re: [PATCH] ti/fapll: fix wrong do_div() usage

2015-11-24 Thread Tero Kristo
On 11/04/2015 06:17 AM, Nicolas Pitre wrote: do_div() is meant to be used with an unsigned dividend. Signed-off-by: Nicolas Pitre Fixed Subject locally to format "clk: ti: %s". Queued for 4.4-rc-fixes, thanks. -Tero diff --git a/drivers/clk/ti/fapll.c

Re: [PATCH v2 2/4] clk: ti816x: Add missing dmtimer clkdev entries

2015-11-24 Thread Tero Kristo
On 11/13/2015 06:29 PM, Neil Armstrong wrote: Add missing clkdev dmtimer related entries for dm816x. 32Khz and ext sources were missing. Cc: Brian Hutchinson Acked-by: Tony Lindgren Signed-off-by: Neil Armstrong Your own

[PATCH] rtc: ds1307: Fix alarm programming for mcp794xx

2015-10-23 Thread Tero Kristo
becomes 0x0a instead of the expected 0x10. Fix by moving the +1 addition within the bin2bcd call also. Fixes: 1d1945d261a2 ("drivers/rtc/rtc-ds1307.c: add alarm support for mcp7941x chips") Signed-off-by: Tero Kristo <t-kri...@ti.com> --- drivers/rtc/rtc-ds1307.c |4 ++-- 1

[PATCHv2] ARM: OMAP3: clock: remove un-used core dpll re-program code

2015-10-14 Thread Tero Kristo
for their functional clock rate being changed on-the-fly), and the whole framework required for handling this. Thus, there is not much point to keep carrying the low-level support code either. Signed-off-by: Tero Kristo <t-kri...@ti.com> Cc: Tony Lindgren <t...@atomide.com> Cc: Paul

Re: [PATCH] ARM: OMAP3: clock: remove un-used core dpll re-program code

2015-10-14 Thread Tero Kristo
On 10/12/2015 08:01 PM, Tony Lindgren wrote: * Tony Lindgren <t...@atomide.com> [150812 03:59]: * Tony Lindgren <t...@atomide.com> [150812 00:29]: * Tero Kristo <t-kri...@ti.com> [150716 01:10]: Remove the OMAP3 core DPLL re-program code, and the associated SRAM code that

Re: [PATCH] ARM: AM35xx: Add M-USB clk device ID

2015-10-13 Thread Tero Kristo
On 10/12/2015 06:22 PM, Rolf Peukert wrote: The glue code in drivers/usb/musb/am35x.c calls clk_get() to get its interface and function clocks for the M-USB controller. These calls fail in the current kernel. This patch adds clock definitions containing the device ID to the list in clk-3xxx.c,

Re: DM3730 vs 3630 DSS Cock dividers

2015-10-13 Thread Tero Kristo
On 10/12/2015 10:35 PM, Tony Lindgren wrote: * Tomi Valkeinen [151012 11:08]: On 12.10.2015 19:00, Tony Lindgren wrote: * Adam Ford [151010 13:29]: Tomi and Tony, I am working on the LogicPD DM3730 Torpedo module. If I try to use the DSS, I get

Re: [RFC 0/7] ARM: OMAP2+: support for DT based pwrdm/clkdm data

2015-10-06 Thread Tero Kristo
On 10/06/2015 03:09 PM, Tony Lindgren wrote: * Tero Kristo <t-kri...@ti.com> [150814 05:36]: Basically the question with this set is, whether the DT node layout / compatible string arrangement looks sane or not. Some of the compatibles can be squashed together especially at clkdm dat

Re: [PATCH] clk: ti: fix dual-registration of uart4_ick

2015-10-05 Thread Tero Kristo
On 10/05/2015 01:17 PM, Tony Lindgren wrote: * Ben Dooks <ben.do...@codethink.co.uk> [150929 06:14]: On 25/09/15 06:42, Tero Kristo wrote: On 09/23/2015 08:30 PM, Tony Lindgren wrote: * Ben Dooks <ben.do...@codethink.co.uk> [150923 07:53]: On the OMAP AM3517 platform the ua

Re: [PATCH v2] clk: ti: fix dual-registration of uart4_ick

2015-10-02 Thread Tero Kristo
though. As such, we can use the initial clock conversion commit as a fixes by for this: commit aafd900cab87d339dc3004c241eebc854005124b Author: Tero Kristo <t-kri...@ti.com> Date: Fri Aug 2 14:04:19 2013 +0300 CLK: TI: add omap3 clock init file I'll add a fixes tag to this and queue i

Re: [PATCH] clk: ti: dflt: fix enable_reg validity check

2015-10-02 Thread Tero Kristo
On 09/30/2015 01:37 AM, Suman Anna wrote: The default clock enabling functions for TI clocks - omap2_dflt_clk_enable() and omap2_dflt_clk_disable() perform a NULL check for the enable_reg field of the clk_hw_omap structure. This enable_reg field however is merely a combination of the index of

[GIT PULL] clock: ti: fixes for 4.3-rc

2015-10-02 Thread Tero Kristo
Hi Stephen, Mike, A few TI clock driver fixes to pull against 4.3-rc. -Tero The following changes since commit 9ffecb10283508260936b96022d4ee43a7798b4c: Linux 4.3-rc3 (2015-09-27 07:50:08 -0400) are available in the git repository at:

Re: [PATCH 01/11 RESEND] ARM: OMAP: DRA7: hwmod: Add data for McASP3

2015-09-30 Thread Tero Kristo
On 09/30/2015 01:06 PM, Peter Ujfalusi wrote: Paul, On 09/27/2015 10:02 AM, Paul Walmsley wrote: /* + * 'mcasp' class + * + */ +static struct omap_hwmod_class_sysconfig dra7xx_mcasp_sysc = { + .sysc_offs = 0x0004, + .sysc_flags = SYSC_HAS_SIDLEMODE, + .idlemodes

Re: [PATCH 07/17] ARM: dts: am4372: add reset data

2015-09-28 Thread Tero Kristo
On 09/25/2015 03:57 PM, Lokesh Vutla wrote: Hi Tero, On Thursday 24 September 2015 07:56 PM, Tero Kristo wrote: Add reset data for pruss, gfx, wkup-m3 and system reset. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 24

Re: [PATCH] clk: ti: clk-7xx: Remove hardwired ABE clock configuration

2015-09-25 Thread Tero Kristo
On 09/25/2015 09:59 AM, Peter Ujfalusi wrote: Tero, On 09/16/2015 09:42 AM, Tero Kristo wrote: On 09/14/2015 11:52 AM, Peter Ujfalusi wrote: Hi Tero, On 08/24/2015 10:35 AM, Peter Ujfalusi wrote: The ABE related clocks should be configured via DT and not have it wired inside of the kernel

[PATCH 09/17] ARM: dts: OMAP24xx: add reset data

2015-09-24 Thread Tero Kristo
Add iva, dsp and system reset control as DT data.. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/omap2420.dtsi | 24 arch/arm/boot/dts/omap2430.dtsi | 17 + 2 files changed, 41 insertions(+) diff --git a/arch/arm/bo

[PATCH 14/17] ARM: OMAP2: hwmod: AMx3xx: remove redundant reset info

2015-09-24 Thread Tero Kristo
AMx3xx reset info is now parsed from DT, so the data under hwmod database can be removed. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- .../mach-omap2/omap_hwmod_33xx_43xx_ipblock_data.c | 30 arch/arm/mach-omap2/omap_hwmod_33xx_data.c |8 -- ar

[PATCH 10/17] ARM: OMAP2+: hwmod: parse reset information from DT

2015-09-24 Thread Tero Kristo
DT can now be used to provide reset information, so parse this to avoid the need to have reset info under hwmod data. This patch disables the support for existing reset data under hwmod data, so shall be applied only after the DT reset conversion. Signed-off-by: Tero Kristo <t-kri...@ti.

[PATCH 08/17] ARM: dts: am33xx: add reset data

2015-09-24 Thread Tero Kristo
Add reset data for pruss, gfx, wkup-m3, and system reset. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/am33xx.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index d

[PATCH 01/17] ARM: OMAP2+: PRM: add support for reset controller

2015-09-24 Thread Tero Kristo
PRM driver now supports reset controller for the defined reset lines. Reset configurations are provided through device tree. Later, functionality like hwmod and system reboot will be changed to use the generic framework. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach

[PATCH 04/17] ARM: dts: omap4: add reset data

2015-09-24 Thread Tero Kristo
Copy over the reset data from hwmod database to DT. After this is taken into use, the data in hwmod database can be removed. A new node has been also added for ipu to support ipu resets. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/omap4.dtsi

[PATCH 16/17] ARM: OMAP2+: hwmod: remove obsolete support for some hardreset logic

2015-09-24 Thread Tero Kristo
OMAP4+ prcm struct no longer requires the support for the rstctrl / rstst offsets, as the data is parsed from DT for all platforms. Remove also the obsolete hardreset support functions from the hwmod code. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/omap_hwmod.c

[PATCH 06/17] ARM: dts: dra7: add reset data

2015-09-24 Thread Tero Kristo
Copy over the reset data from kernel to DT. Currently, only system reset has been defined, but rest can be added later once needed. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/dra7.dtsi |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dt

[PATCH 00/17] ARM: OMAP2+: reset controller support

2015-09-24 Thread Tero Kristo
-x15. Reboot on amx3xx does not seem functional in base 4.3-rc2 so wasn't able to test this. Testing branch pushed at: tree: https://github.com/t-kristo/linux-pm.git branch: 4.3-rc2-prcm-reset-fwk Tero Kristo (17): ARM: OMAP2+: PRM: add support for reset controller ARM: OMAP2+: hwmod: parse

[PATCH 02/17] ARM: OMAP2+: hwmod: parse also soc hierarchy for hwmod compatible nodes

2015-09-24 Thread Tero Kristo
Previously the code was only parsing ocp hierarchy, which misses mpu and iva/dsp nodes at least, which still contain hwmod support. Parse also the soc hierarchy to include these. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/omap_hwmod.c | 15 ---

[PATCH 05/17] ARM: dts: omap5: add reset data

2015-09-24 Thread Tero Kristo
Copy over the reset data from hwmod database to DT. After this is taken into use, the data in hwmod database can be removed. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/omap5.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH 07/17] ARM: dts: am4372: add reset data

2015-09-24 Thread Tero Kristo
Add reset data for pruss, gfx, wkup-m3 and system reset. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/am4372.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index 04

[PATCH 03/17] ARM: dts: omap3: add reset data

2015-09-24 Thread Tero Kristo
Copy over the reset data from hwmod database to DT. After this is taken into use, the data in hwmod database can be removed. A new node has been also added for sad2d to support sad2d resets. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/boot/dts/omap3.dtsi

[PATCH 13/17] ARM: OMAP5: hwmod_data: remove reset data

2015-09-24 Thread Tero Kristo
This is provided via DT, and no longer needed in the hwmod database. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/omap_hwmod_54xx_data.c | 14 -- 1 file changed, 14 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_54xx_data.c b/arch/arm/mach

[PATCH 17/17] ARM: OMAP2+: PRM: remove redundant system reset code

2015-09-24 Thread Tero Kristo
This is now handled via the reset controller and the provided information from DT, so the legacy support code is no longer needed. OMAP3 version shall be removed once OMAP3 is also DT only. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/prm2xxx.c

[PATCH 11/17] ARM: OMAP2+: use system reset info from device tree data

2015-09-24 Thread Tero Kristo
System reset mapping used by reboot is now provided through DT data and a reset controller. Use this instead of the hardcoded PRM API. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/Makefile |6 -- arch/arm/mach-omap2/am33xx-restart.c

[PATCH 12/17] ARM: OMAP4: hwmod_data: remove reset data

2015-09-24 Thread Tero Kristo
This is provided via DT and no longer needed under the hwmod database. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 48 +++- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/arch/arm/mach

[PATCH 15/17] ARM: OMAP24xx: hwmod: remove reset data from hwmod database

2015-09-24 Thread Tero Kristo
These are now parsed from DT, so not needed under the hwmod database anymore. Signed-off-by: Tero Kristo <t-kri...@ti.com> --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 13 - arch/arm/mach-omap2/omap_hwmod_2430_data.c |7 --- 2 files changed, 20 deletions(-) diff

Re: [PATCH] clk: ti: fix dual-registration of uart4_ick

2015-09-24 Thread Tero Kristo
On 09/23/2015 08:30 PM, Tony Lindgren wrote: * Ben Dooks [150923 07:53]: On the OMAP AM3517 platform the uart4_ick gets registered twice, causing any power managment to /dev/ttyO3 to fail when trying to wake the device up. This solves the following oops: []

Re: [PATCH] clk: ti: clk-7xx: Remove hardwired ABE clock configuration

2015-09-16 Thread Tero Kristo
On 09/14/2015 11:52 AM, Peter Ujfalusi wrote: Hi Tero, On 08/24/2015 10:35 AM, Peter Ujfalusi wrote: The ABE related clocks should be configured via DT and not have it wired inside of the kernel. can you take a look at this patch? It will not cause any regression since we do not have audio

[RFC 6/7] ARM: OMAP2+: PRCM: add support for registering prcm domains from DT

2015-08-14 Thread Tero Kristo
of the kernel also. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/Kconfig |1 + arch/arm/mach-omap2/Makefile |3 +- arch/arm/mach-omap2/clockdomain.h | 10 +- arch/arm/mach-omap2/pm-domains.c | 228 + arch/arm/mach-omap2

[RFC 7/7] ARM: OMAP4: PRCM: convert to DT based pwrdm/clkdm data

2015-08-14 Thread Tero Kristo
Clock and powerdomain data can now be moved partially to DT. Some init data is still left to the existing data files, to act as templates for the DT based data. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clockdomains44xx_data.c | 327 +++ arch/arm

[RFC 2/7] ARM: OMAP4+: PRCM: add support for registering PRCM partition against DT node

2015-08-14 Thread Tero Kristo
partition ID through the common PRCM APIs. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cm_common.c | 12 + arch/arm/mach-omap2/prcm-common.h |5 arch/arm/mach-omap2/prm_common.c | 53 + 3 files changed, 70 insertions

[RFC 3/7] ARM: OMAP4+: PRCM: parse PRCM MPU base address from DT

2015-08-14 Thread Tero Kristo
All the OMAP4+ boards are DT based only, so the prcm_mpu base address can be parsed from DT. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/io.c |4 arch/arm/mach-omap2/prm_common.c | 18 ++ 2 files changed, 18 insertions(+), 4 deletions

[RFC 4/7] ARM: OMAP2+: PRCM: move PRCM data init later in boot sequence

2015-08-14 Thread Tero Kristo
This avoids the need to use memblock_virt_alloc in the code. Done in preparation of adding generic PM domains to OMAP platform codebase; generic PM domain registration doesn't work during early_init. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/io.c | 180

[RFC 1/7] ARM: dts: OMAP4+: add prcm_mpu node

2015-08-14 Thread Tero Kristo
PRCM has a local instance directly under the MPU domain, for controlling local MPU powerdomains and clockdomains. Add a DT node for this for omap4, omap5 and dra7. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/dra7.dtsi |8 arch/arm/boot/dts/omap4.dtsi |8

[RFC 0/7] ARM: OMAP2+: support for DT based pwrdm/clkdm data

2015-08-14 Thread Tero Kristo
Hi, This series provides DT based support for clock/powerdomain data. Some parts of the data is retained under the existing *_data.c files to act as templates. Also, minimal support for generic power domains is added, but without power_off / power_on support at this point (should be relatively

[RFC 5/7] ARM: dts: omap4: add clockdomain / powerdomain data

2015-08-14 Thread Tero Kristo
Clockdomain / powerdomain nodes with corresponding register addresses and PRCM hierarchy is added to the DT. This data can be parsed to create the clock/powerdomain data required by the kernel. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/omap4.dtsi | 32

Re: [PATCH v2 5/6] ARM: AM43XX: HWMOD: Add rtc hwmod

2015-08-13 Thread Tero Kristo
On 08/12/2015 05:39 PM, Paul Walmsley wrote: On Mon, 10 Aug 2015, Keerthy wrote: The patch adds rtc hwmod. This is present on gp and sk evm and not on epos evm. Hence adding it selectively using a seprate list. Signed-off-by: Keerthy j-keer...@ti.com So just to confirm, the RTC IP block has

[GIT PULL] omap clock dts changes for v4.3 merge window

2015-08-06 Thread Tero Kristo
The following changes since commit bc0195aad0daa2ad5b0d76cce22b167bc3435590: Linux 4.2-rc2 (2015-07-12 15:10:30 -0700) are available in the git repository at: https://github.com/t-kristo/linux-pm.git for-4.3/ti-clk-dt for you to fetch changes up to

Re: [PATCH v2 0/3] ARM: dts: dra7: scm_conf node cleanup

2015-07-28 Thread Tero Kristo
On 07/27/2015 01:27 PM, Roger Quadros wrote: Hi, This series cleans up the scm_conf node. v2: - split patch. use only core_sma_sw registers for the new scm_conf child. Series looks ok to me, so: Acked-by: Tero Kristo t-kri...@ti.com cheers, -roger Roger Quadros (3): ARM: dts: dra7

Re: [PATCH v3 2/3] ARM: dts: dra7: Add syscon-pllreset syscon to SATA PHY

2015-07-20 Thread Tero Kristo
On 07/17/2015 04:47 PM, Roger Quadros wrote: This register is required to be passed to the SATA PHY driver to workaround errata i783 (SATA Lockup After SATA DPLL Unlock/Relock). Signed-off-by: Roger Quadros rog...@ti.com --- arch/arm/boot/dts/dra7.dtsi | 1 + 1 file changed, 1 insertion(+)

Re: [PATCH v3 3/3] ARM: dts: dra7: Add scm_conf1 node and remove redundant nodes

2015-07-20 Thread Tero Kristo
On 07/17/2015 04:47 PM, Roger Quadros wrote: scm_conf1 maps the control register address space after the padconf till the end. Fix the scm_conf and pmx_core resource lengths. We need to add 4 bytes to include the last 32-bit register space. Remove the redundant dra7_ctrl_core and

Re: [GIT PULL] clk: ti: clock driver code migration to drivers

2015-07-16 Thread Tero Kristo
On 07/16/2015 04:51 AM, Paul Walmsley wrote: On Tue, 14 Jul 2015, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [150714 03:34]: On 07/14/2015 12:54 PM, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [150714 01:56]: This pull request contains the TI clock driver set to move

[PATCH] ARM: OMAP3: clock: remove un-used core dpll re-program code

2015-07-16 Thread Tero Kristo
for their functional clock rate being changed on-the-fly), and the whole framework required for handling this. Thus, there is not much point to keep carrying the low-level support code either. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Tony Lindgren t...@atomide.com Cc: Paul Walmsley p...@pwsan.com

Re: [PATCH 0/3] ARM: OMAP2+: hwmod: RTC: Add lock and unlock hooks

2015-07-16 Thread Tero Kristo
On 07/16/2015 03:15 AM, Paul Walmsley wrote: On Tue, 14 Jul 2015, Tero Kristo wrote: On 07/14/2015 01:09 PM, Lokesh Vutla wrote: Hi, On Wednesday 10 June 2015 02:56 PM, Lokesh Vutla wrote: Some IP blocks like RTC, needs an additional unlocking mechanism for writing to its registers

Re: [PATCH 0/3] ARM: OMAP2+: hwmod: RTC: Add lock and unlock hooks

2015-07-16 Thread Tero Kristo
On 07/16/2015 01:13 PM, Paul Walmsley wrote: On Thu, 16 Jul 2015, Tero Kristo wrote: On 07/16/2015 03:15 AM, Paul Walmsley wrote: On Tue, 14 Jul 2015, Tero Kristo wrote: On 07/14/2015 01:09 PM, Lokesh Vutla wrote: Hi, On Wednesday 10 June 2015 02:56 PM, Lokesh Vutla wrote: Some IP blocks

Re: [GIT PULL] clk: ti: clock driver code migration to drivers

2015-07-15 Thread Tero Kristo
On 07/14/2015 11:31 PM, Stephen Boyd wrote: On 07/14/2015 01:09 PM, Tero Kristo wrote: On 07/14/2015 10:29 PM, Stephen Boyd wrote: On 07/14/2015 01:54 AM, Tero Kristo wrote: The following changes since commit bc0195aad0daa2ad5b0d76cce22b167bc3435590: Linux 4.2-rc2 (2015-07-12 15:10:30

[GIT PULL]

2015-07-15 Thread Tero Kristo
) Tero Kristo (27): ARM: OMAP2+: clock: export driver API to setup/get clock features clk: ti: move generic OMAP DPLL implementation under drivers/clk clk: ti: move OMAP4+ DPLL implementation under drivers/clk clk: ti: move interface clock implementation under drivers/clk

Re: [PATCH v2 3/3] ARM: dts: dra7: Add syscon-pllreset syscon to SATA PHY

2015-07-15 Thread Tero Kristo
On 07/15/2015 04:47 PM, Roger Quadros wrote: Hi, On 15/07/15 15:07, Tony Lindgren wrote: * Kishon Vijay Abraham I kis...@ti.com [150715 04:24]: Hi Roger, On Tuesday 02 June 2015 02:40 PM, Roger Quadros wrote: This register is required to be passed to the SATA PHY driver to workaround errata

[GIT PULL] clk: ti: clock driver code migration to drivers

2015-07-14 Thread Tero Kristo
portions of the clock driver code still remain under mach-omap2 after this, it should be decided whether this code is now obsolete and should be deleted or should someone try to fix it. -Tero Tero Kristo (27): ARM: OMAP2

Re: [GIT PULL] clk: ti: clock driver code migration to drivers

2015-07-14 Thread Tero Kristo
On 07/14/2015 12:54 PM, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [150714 01:56]: This pull request contains the TI clock driver set to move the clock implementations under clock driver. Some small portions of the clock driver code still remain under mach-omap2 after this, it should

Re: [PATCH 0/2] CLK: TI: add dpll_clksel_mac_clk node

2015-07-14 Thread Tero Kristo
(-) Tested-by: Mugunthan V N mugunthan...@ti.com Thanks Mugunthan. A gentle ping on this series. Tero, care to review this series? Acked-by: Tero Kristo t-kri...@ti.com I guess this should go through your tree as this is mostly dts changes? -Tero Regards, Tony -- To unsubscribe from

Re: [PATCH 0/3] ARM: OMAP2+: hwmod: RTC: Add lock and unlock hooks

2015-07-14 Thread Tero Kristo
On 07/14/2015 01:09 PM, Lokesh Vutla wrote: Hi, On Wednesday 10 June 2015 02:56 PM, Lokesh Vutla wrote: Some IP blocks like RTC, needs an additional unlocking mechanism for writing to its registers. This patch adds optional lock and unlock function pointers to the IP block's hwmod data which

Re: [GIT PULL] clk: ti: clock driver code migration to drivers

2015-07-14 Thread Tero Kristo
On 07/14/2015 10:29 PM, Stephen Boyd wrote: On 07/14/2015 01:54 AM, Tero Kristo wrote: The following changes since commit bc0195aad0daa2ad5b0d76cce22b167bc3435590: Linux 4.2-rc2 (2015-07-12 15:10:30 -0700) Why did this get rebased onto v4.2-rc2? I thought it was all ready to go based

Re: am33xx: ignore SYSBOOT 15:14 if board OSC is known

2015-07-13 Thread Tero Kristo
On 05/21/2015 07:26 PM, Nuno Gonçalves wrote: Currently the processor PLLs and Dividers are configured according to SYSBOOT levels during boot [1][2]. In the case of boards with expansion capabitliy, like the Beaglebone, the expansion board might touch this SYSBOOT pins a provide a wrong clock

Re: [PATCH v5] clk: change clk_ops' -determine_rate() prototype

2015-07-13 Thread Tero Kristo
Lindgren t...@atomide.com CC: Ralf Baechle r...@linux-mips.org CC: Emilio López emi...@elopez.com.ar CC: Maxime Ripard maxime.rip...@free-electrons.com CC: Tero Kristo t-kri...@ti.com CC: Peter De Schrijver pdeschrij...@nvidia.com CC: Prashant Gaikwad pgaik...@nvidia.com CC: Stephen Warren swar

Re: [PATCHv3 00/27] ARM: OMAP2+: clock code move under clk driver

2015-07-13 Thread Tero Kristo
On 06/04/2015 02:11 AM, Michael Turquette wrote: Quoting Tero Kristo (2015-06-03 05:33:46) On 05/28/2015 02:15 AM, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [150527 11:32]: On 05/26/2015 07:39 PM, Felipe Balbi wrote: On Tue, May 26, 2015 at 09:32:16AM -0700, Tony Lindgren wrote

Re: [PATCH] pinctrl: single: dra7: remove PCS_QUIRK_SHARED_IRQ

2015-07-07 Thread Tero Kristo
24), /* WAKEUPENABLE */ .irq_status_mask = (1 25), /* WAKEUPEVENT */ }; Tero, care to take a look at this one and ack if OK? Looks fine to me. Acked-by: Tero Kristo t-kri...@ti.com Regards, Tony -- To unsubscribe from this list: send the line unsubscribe linux-omap

Re: [PATCH 4/6] ARM: OMAP: PRM: Remove hardcoding of IRQENABLE_MPU_2 and IRQSTATUS_MPU_2 register offsets

2015-07-07 Thread Tero Kristo
On 06/22/2015 09:22 AM, Keerthy wrote: The register offsets of IRQENABLE_MPU_2 and IRQSTATUS_MPU_2 are hardcoded. This makes it difficult to reuse the code for single core SoCs like AM437x. Single core vs. having two sets of IRQENABLE / IRQSTATUS registers do not have any relation to each

Re: [PATCH v2 0/5] Add support for PWMSS on DRA7

2015-07-07 Thread Tero Kristo
, not going to try to review patch 5 as I have no clue about PWM driver itself. So, for 1-4: Acked-by: Tero Kristo t-kri...@ti.com Some of the patches cause trivial merge conflicts with 4.2-rc1 though. -Tero -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body

Re: [PATCH 2/6] ARM: AM43xx: Add the PRM IRQ register offsets

2015-07-07 Thread Tero Kristo
On 06/22/2015 09:22 AM, Keerthy wrote: Add the PRM IRQ register offsets. This patch doesn't apply cleanly to 4.2-rc1. -Tero Signed-off-by: Keerthy j-keer...@ti.com --- arch/arm/mach-omap2/prcm43xx.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-omap2/prcm43xx.h

Re: [PATCH 1/1] add pwm capability to dm816x

2015-06-15 Thread Tero Kristo
. -Tero Cc: Paul Walmsley p...@pwsan.com mailto:p...@pwsan.com Cc: Tero Kristo t-kri...@ti.com mailto:t-kri...@ti.com Cc: Tony Lindgren t...@atomide.com mailto:t...@atomide.com Signed-off-by: Brian Hutchinson b.hutch...@gmail.com mailto:b.hutch...@gmail.commailto:t...@atomide.com --- arch/arm

Re: [PATCH 1/1] Add timer_32k_ck alias for dm816x in clk-816x.c

2015-06-15 Thread Tero Kristo
please. Or use a mailer that doesn't convert tabs to spaces. This patch seems to have something else that is strange also. Cc: Paul Walmsley p...@pwsan.com mailto:p...@pwsan.com Cc: Tero Kristo t-kri...@ti.com mailto:t-kri...@ti.com Cc: Tony Lindgren t...@atomide.com mailto:t...@atomide.com Signed

Re: [PATCHv3 00/27] ARM: OMAP2+: clock code move under clk driver

2015-06-03 Thread Tero Kristo
On 05/28/2015 02:15 AM, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [150527 11:32]: On 05/26/2015 07:39 PM, Felipe Balbi wrote: On Tue, May 26, 2015 at 09:32:16AM -0700, Tony Lindgren wrote: * Tony Lindgren t...@atomide.com [150526 09:08]: * Tero Kristo t-kri...@ti.com [150525 08:01

Re: [PATCHv3 00/27] ARM: OMAP2+: clock code move under clk driver

2015-06-03 Thread Tero Kristo
On 06/04/2015 02:11 AM, Michael Turquette wrote: Quoting Tero Kristo (2015-06-03 05:33:46) On 05/28/2015 02:15 AM, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [150527 11:32]: On 05/26/2015 07:39 PM, Felipe Balbi wrote: On Tue, May 26, 2015 at 09:32:16AM -0700, Tony Lindgren wrote

Re: [PATCHv4 03/10] arm/dts: dra7xx: add 'ti,set-rate-parent' for dss_dss_clk

2015-06-02 Thread Tero Kristo
of the clock rate to propagate to the PLL. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com Cc: devicet...@vger.kernel.org Acked-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b

Re: [PATCHv4 01/10] arm: dra7: add DESHDCP clock

2015-06-02 Thread Tero Kristo
On 06/01/2015 09:23 AM, Tomi Valkeinen wrote: Add a new Linux clock for DRA7 based SoCs to control DESHDCP clock. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com Acked-by: Tero Kristo t-kri...@ti.com --- arch/arm/boot/dts/dra7.dtsi | 5 + arch/arm/boot/dts/dra7xx

  1   2   3   4   5   6   7   8   9   10   >