linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] CLK: TI: Timer clock alias fixes
@ 2015-03-13 22:58 Suman Anna
  2015-03-13 22:58 ` [PATCH 1/4] CLK: TI: OMAP4: Remove the legacy timer DT clock aliases Suman Anna
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Suman Anna @ 2015-03-13 22:58 UTC (permalink / raw)
  To: Tero Kristo
  Cc: Mike Turquette, Stephen Boyd, linux-omap, linux-kernel, Suman Anna

Hi Tero,

Please find couple of cleanup/fixes on the DT clock aliases
for the GPTimers. Patches are based on 4.0-rc1 and following
is the summary of the changes,

1. Patch 1 is a cleanup for OMAP4
2. Patch 2 fixes the failures for OMAP5 if omap_dm_timer_set_source() API is
   called to set the parent of any timer using OMAP_TIMER_SRC_SYS_CLK.
3. Patch 3 is for DRA7 and fixes the parent to be set to timer_sys_clk_div
   and not sys_clkin2, which is an optional clock input.
4. Patch 4 adds the DT CLK aliases for GPTimers 13 through 16 on DRA7. These
   timer nodes are currently missing in DTS, and I will be sending the patches
   for them soon.

regards
Suman

Suman Anna (4):
  CLK: TI: OMAP4: Remove the legacy timer DT clock aliases
  CLK: TI: OMAP5: Correct the DT clock aliases for timers
  CLK: TI: DRA7: Correct timer_sys_ck clock aliases for Timers
  CLK: TI: DRA7: Add timer_sys_ck aliases for Timers 13 through 16

 drivers/clk/ti/clk-44xx.c | 11 -----------
 drivers/clk/ti/clk-54xx.c | 22 +++++++++++-----------
 drivers/clk/ti/clk-7xx.c  | 18 +++++++++++-------
 3 files changed, 22 insertions(+), 29 deletions(-)

-- 
2.3.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/4] CLK: TI: OMAP4: Remove the legacy timer DT clock aliases
  2015-03-13 22:58 [PATCH 0/4] CLK: TI: Timer clock alias fixes Suman Anna
@ 2015-03-13 22:58 ` Suman Anna
  2015-03-13 22:58 ` [PATCH 2/4] CLK: TI: OMAP5: Correct the DT clock aliases for timers Suman Anna
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Suman Anna @ 2015-03-13 22:58 UTC (permalink / raw)
  To: Tero Kristo
  Cc: Mike Turquette, Stephen Boyd, linux-omap, linux-kernel, Suman Anna

The DT clock aliases for timers using the legacy OMAP timer
device names have been cleaned up. These device names reflect
the names used in legacy boot, and are no longer applicable
as OMAP4 is DT boot only now.

Signed-off-by: Suman Anna <s-anna@ti.com>
---
 drivers/clk/ti/clk-44xx.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/drivers/clk/ti/clk-44xx.c b/drivers/clk/ti/clk-44xx.c
index 4f4c87751db5..581db7711f51 100644
--- a/drivers/clk/ti/clk-44xx.c
+++ b/drivers/clk/ti/clk-44xx.c
@@ -249,17 +249,6 @@ static struct ti_dt_clk omap44xx_clks[] = {
 	DT_CLK("usbhs_tll", "usbtll_fck", "dummy_ck"),
 	DT_CLK("omap_wdt", "ick", "dummy_ck"),
 	DT_CLK(NULL, "timer_32k_ck", "sys_32k_ck"),
-	DT_CLK("omap_timer.1", "timer_sys_ck", "sys_clkin_ck"),
-	DT_CLK("omap_timer.2", "timer_sys_ck", "sys_clkin_ck"),
-	DT_CLK("omap_timer.3", "timer_sys_ck", "sys_clkin_ck"),
-	DT_CLK("omap_timer.4", "timer_sys_ck", "sys_clkin_ck"),
-	DT_CLK("omap_timer.9", "timer_sys_ck", "sys_clkin_ck"),
-	DT_CLK("omap_timer.10", "timer_sys_ck", "sys_clkin_ck"),
-	DT_CLK("omap_timer.11", "timer_sys_ck", "sys_clkin_ck"),
-	DT_CLK("omap_timer.5", "timer_sys_ck", "syc_clk_div_ck"),
-	DT_CLK("omap_timer.6", "timer_sys_ck", "syc_clk_div_ck"),
-	DT_CLK("omap_timer.7", "timer_sys_ck", "syc_clk_div_ck"),
-	DT_CLK("omap_timer.8", "timer_sys_ck", "syc_clk_div_ck"),
 	DT_CLK("4a318000.timer", "timer_sys_ck", "sys_clkin_ck"),
 	DT_CLK("48032000.timer", "timer_sys_ck", "sys_clkin_ck"),
 	DT_CLK("48034000.timer", "timer_sys_ck", "sys_clkin_ck"),
-- 
2.3.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/4] CLK: TI: OMAP5: Correct the DT clock aliases for timers
  2015-03-13 22:58 [PATCH 0/4] CLK: TI: Timer clock alias fixes Suman Anna
  2015-03-13 22:58 ` [PATCH 1/4] CLK: TI: OMAP4: Remove the legacy timer DT clock aliases Suman Anna
@ 2015-03-13 22:58 ` Suman Anna
  2015-03-13 22:58 ` [PATCH 3/4] CLK: TI: DRA7: Correct timer_sys_ck clock aliases for Timers Suman Anna
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Suman Anna @ 2015-03-13 22:58 UTC (permalink / raw)
  To: Tero Kristo
  Cc: Mike Turquette, Stephen Boyd, linux-omap, linux-kernel, Suman Anna

The DT clock aliases for Timers use the legacy (non-DT) device
names and a source clock named sys_ck. OMAP5 is DT-boot only,
so correct the DT clock aliases to use the DT device names
instead. Also, the source clock name is corrected from 'sys_ck'
to 'timer_sys_ck', the name used by the OMAP dmtimer driver.

Signed-off-by: Suman Anna <s-anna@ti.com>
---
 drivers/clk/ti/clk-54xx.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/clk/ti/clk-54xx.c b/drivers/clk/ti/clk-54xx.c
index 14160b223548..96c69a335975 100644
--- a/drivers/clk/ti/clk-54xx.c
+++ b/drivers/clk/ti/clk-54xx.c
@@ -208,17 +208,17 @@ static struct ti_dt_clk omap54xx_clks[] = {
 	DT_CLK("usbhs_omap", "usbtll_fck", "dummy_ck"),
 	DT_CLK("omap_wdt", "ick", "dummy_ck"),
 	DT_CLK(NULL, "timer_32k_ck", "sys_32k_ck"),
-	DT_CLK("omap_timer.1", "sys_ck", "sys_clkin"),
-	DT_CLK("omap_timer.2", "sys_ck", "sys_clkin"),
-	DT_CLK("omap_timer.3", "sys_ck", "sys_clkin"),
-	DT_CLK("omap_timer.4", "sys_ck", "sys_clkin"),
-	DT_CLK("omap_timer.9", "sys_ck", "sys_clkin"),
-	DT_CLK("omap_timer.10", "sys_ck", "sys_clkin"),
-	DT_CLK("omap_timer.11", "sys_ck", "sys_clkin"),
-	DT_CLK("omap_timer.5", "sys_ck", "dss_syc_gfclk_div"),
-	DT_CLK("omap_timer.6", "sys_ck", "dss_syc_gfclk_div"),
-	DT_CLK("omap_timer.7", "sys_ck", "dss_syc_gfclk_div"),
-	DT_CLK("omap_timer.8", "sys_ck", "dss_syc_gfclk_div"),
+	DT_CLK("4ae18000.timer", "timer_sys_ck", "sys_clkin"),
+	DT_CLK("48032000.timer", "timer_sys_ck", "sys_clkin"),
+	DT_CLK("48034000.timer", "timer_sys_ck", "sys_clkin"),
+	DT_CLK("48036000.timer", "timer_sys_ck", "sys_clkin"),
+	DT_CLK("4803e000.timer", "timer_sys_ck", "sys_clkin"),
+	DT_CLK("48086000.timer", "timer_sys_ck", "sys_clkin"),
+	DT_CLK("48088000.timer", "timer_sys_ck", "sys_clkin"),
+	DT_CLK("40138000.timer", "timer_sys_ck", "dss_syc_gfclk_div"),
+	DT_CLK("4013a000.timer", "timer_sys_ck", "dss_syc_gfclk_div"),
+	DT_CLK("4013c000.timer", "timer_sys_ck", "dss_syc_gfclk_div"),
+	DT_CLK("4013e000.timer", "timer_sys_ck", "dss_syc_gfclk_div"),
 	{ .node_name = NULL },
 };
 
-- 
2.3.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/4] CLK: TI: DRA7: Correct timer_sys_ck clock aliases for Timers
  2015-03-13 22:58 [PATCH 0/4] CLK: TI: Timer clock alias fixes Suman Anna
  2015-03-13 22:58 ` [PATCH 1/4] CLK: TI: OMAP4: Remove the legacy timer DT clock aliases Suman Anna
  2015-03-13 22:58 ` [PATCH 2/4] CLK: TI: OMAP5: Correct the DT clock aliases for timers Suman Anna
@ 2015-03-13 22:58 ` Suman Anna
  2015-03-13 22:58 ` [PATCH 4/4] CLK: TI: DRA7: Add timer_sys_ck aliases for Timers 13 through 16 Suman Anna
  2015-03-24 18:50 ` [PATCH 0/4] CLK: TI: Timer clock alias fixes Tero Kristo
  4 siblings, 0 replies; 6+ messages in thread
From: Suman Anna @ 2015-03-13 22:58 UTC (permalink / raw)
  To: Tero Kristo
  Cc: Mike Turquette, Stephen Boyd, linux-omap, linux-kernel, Suman Anna

The OMAP DMTimer API, omap_dm_timer_set_source(), can set the parent
of a timer node using 3 different values that use fixed parent names
for the clocks. The parent name, timer_sys_ck, is used for setting the
parent when used with the source index OMAP_TIMER_SRC_SYS_CLK. This
should point to the TIMER_SYS_CLK and not the SYSCLKIN2, so correct
the clock aliases appropriately. SYSCLKIN2 is not a mandatory clock
input.

Signed-off-by: Suman Anna <s-anna@ti.com>
---
 drivers/clk/ti/clk-7xx.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c
index ee32f4deebf4..256295eb5157 100644
--- a/drivers/clk/ti/clk-7xx.c
+++ b/drivers/clk/ti/clk-7xx.c
@@ -289,13 +289,13 @@ static struct ti_dt_clk dra7xx_clks[] = {
 	DT_CLK("usbhs_omap", "usbtll_fck", "dummy_ck"),
 	DT_CLK("omap_wdt", "ick", "dummy_ck"),
 	DT_CLK(NULL, "timer_32k_ck", "sys_32k_ck"),
-	DT_CLK("4ae18000.timer", "timer_sys_ck", "sys_clkin2"),
-	DT_CLK("48032000.timer", "timer_sys_ck", "sys_clkin2"),
-	DT_CLK("48034000.timer", "timer_sys_ck", "sys_clkin2"),
-	DT_CLK("48036000.timer", "timer_sys_ck", "sys_clkin2"),
-	DT_CLK("4803e000.timer", "timer_sys_ck", "sys_clkin2"),
-	DT_CLK("48086000.timer", "timer_sys_ck", "sys_clkin2"),
-	DT_CLK("48088000.timer", "timer_sys_ck", "sys_clkin2"),
+	DT_CLK("4ae18000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("48032000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("48034000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("48036000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("4803e000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("48086000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("48088000.timer", "timer_sys_ck", "timer_sys_clk_div"),
 	DT_CLK("48820000.timer", "timer_sys_ck", "timer_sys_clk_div"),
 	DT_CLK("48822000.timer", "timer_sys_ck", "timer_sys_clk_div"),
 	DT_CLK("48824000.timer", "timer_sys_ck", "timer_sys_clk_div"),
-- 
2.3.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/4] CLK: TI: DRA7: Add timer_sys_ck aliases for Timers 13 through 16
  2015-03-13 22:58 [PATCH 0/4] CLK: TI: Timer clock alias fixes Suman Anna
                   ` (2 preceding siblings ...)
  2015-03-13 22:58 ` [PATCH 3/4] CLK: TI: DRA7: Correct timer_sys_ck clock aliases for Timers Suman Anna
@ 2015-03-13 22:58 ` Suman Anna
  2015-03-24 18:50 ` [PATCH 0/4] CLK: TI: Timer clock alias fixes Tero Kristo
  4 siblings, 0 replies; 6+ messages in thread
From: Suman Anna @ 2015-03-13 22:58 UTC (permalink / raw)
  To: Tero Kristo
  Cc: Mike Turquette, Stephen Boyd, linux-omap, linux-kernel, Suman Anna

The OMAP DMTimer API, omap_dm_timer_set_source(), uses the clock name
timer_sys_ck for setting a timer's clock source for the source index
OMAP_TIMER_SRC_SYS_CLK. There is currently no clock alias data for
the Timers 13 through 16 for this clock name, so add the same.

Signed-off-by: Suman Anna <s-anna@ti.com>
---
 drivers/clk/ti/clk-7xx.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/clk/ti/clk-7xx.c b/drivers/clk/ti/clk-7xx.c
index 256295eb5157..5d2217ae4478 100644
--- a/drivers/clk/ti/clk-7xx.c
+++ b/drivers/clk/ti/clk-7xx.c
@@ -300,6 +300,10 @@ static struct ti_dt_clk dra7xx_clks[] = {
 	DT_CLK("48822000.timer", "timer_sys_ck", "timer_sys_clk_div"),
 	DT_CLK("48824000.timer", "timer_sys_ck", "timer_sys_clk_div"),
 	DT_CLK("48826000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("48828000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("4882a000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("4882c000.timer", "timer_sys_ck", "timer_sys_clk_div"),
+	DT_CLK("4882e000.timer", "timer_sys_ck", "timer_sys_clk_div"),
 	DT_CLK(NULL, "sys_clkin", "sys_clkin1"),
 	{ .node_name = NULL },
 };
-- 
2.3.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/4] CLK: TI: Timer clock alias fixes
  2015-03-13 22:58 [PATCH 0/4] CLK: TI: Timer clock alias fixes Suman Anna
                   ` (3 preceding siblings ...)
  2015-03-13 22:58 ` [PATCH 4/4] CLK: TI: DRA7: Add timer_sys_ck aliases for Timers 13 through 16 Suman Anna
@ 2015-03-24 18:50 ` Tero Kristo
  4 siblings, 0 replies; 6+ messages in thread
From: Tero Kristo @ 2015-03-24 18:50 UTC (permalink / raw)
  To: Suman Anna; +Cc: Mike Turquette, Stephen Boyd, linux-omap, linux-kernel

On 03/14/2015 12:58 AM, Suman Anna wrote:
> Hi Tero,
>
> Please find couple of cleanup/fixes on the DT clock aliases
> for the GPTimers. Patches are based on 4.0-rc1 and following
> is the summary of the changes,
>
> 1. Patch 1 is a cleanup for OMAP4
> 2. Patch 2 fixes the failures for OMAP5 if omap_dm_timer_set_source() API is
>     called to set the parent of any timer using OMAP_TIMER_SRC_SYS_CLK.
> 3. Patch 3 is for DRA7 and fixes the parent to be set to timer_sys_clk_div
>     and not sys_clkin2, which is an optional clock input.
> 4. Patch 4 adds the DT CLK aliases for GPTimers 13 through 16 on DRA7. These
>     timer nodes are currently missing in DTS, and I will be sending the patches
>     for them soon.

Queued for 4.1, thanks!

-Tero

>
> regards
> Suman
>
> Suman Anna (4):
>    CLK: TI: OMAP4: Remove the legacy timer DT clock aliases
>    CLK: TI: OMAP5: Correct the DT clock aliases for timers
>    CLK: TI: DRA7: Correct timer_sys_ck clock aliases for Timers
>    CLK: TI: DRA7: Add timer_sys_ck aliases for Timers 13 through 16
>
>   drivers/clk/ti/clk-44xx.c | 11 -----------
>   drivers/clk/ti/clk-54xx.c | 22 +++++++++++-----------
>   drivers/clk/ti/clk-7xx.c  | 18 +++++++++++-------
>   3 files changed, 22 insertions(+), 29 deletions(-)
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-24 18:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 22:58 [PATCH 0/4] CLK: TI: Timer clock alias fixes Suman Anna
2015-03-13 22:58 ` [PATCH 1/4] CLK: TI: OMAP4: Remove the legacy timer DT clock aliases Suman Anna
2015-03-13 22:58 ` [PATCH 2/4] CLK: TI: OMAP5: Correct the DT clock aliases for timers Suman Anna
2015-03-13 22:58 ` [PATCH 3/4] CLK: TI: DRA7: Correct timer_sys_ck clock aliases for Timers Suman Anna
2015-03-13 22:58 ` [PATCH 4/4] CLK: TI: DRA7: Add timer_sys_ck aliases for Timers 13 through 16 Suman Anna
2015-03-24 18:50 ` [PATCH 0/4] CLK: TI: Timer clock alias fixes Tero Kristo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).