linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs
Date: Thu, 4 Apr 2013 09:41:38 -0700	[thread overview]
Message-ID: <20130404164137.GH10155@atomide.com> (raw)
In-Reply-To: <515D2D30.3000306@ti.com>

* Roger Quadros <rogerq@ti.com> [130404 00:39]:
> On 04/04/2013 02:42 AM, Tony Lindgren wrote:
> >> --- a/arch/arm/mach-omap2/cclock44xx_data.c
> >> +++ b/arch/arm/mach-omap2/cclock44xx_data.c
> >> @@ -27,6 +27,7 @@
> >>  #include <linux/clk-private.h>
> >>  #include <linux/clkdev.h>
> >>  #include <linux/io.h>
> >> +#include <linux/of.h>
> >>  
> >>  #include "soc.h"
> >>  #include "iomap.h"
> >> @@ -1663,6 +1664,40 @@ static struct omap_clk omap44xx_clks[] = {
> >>  	CLK(NULL,	"cpufreq_ck",	&dpll_mpu_ck,	CK_443X),
> >>  };
> >>  
> >> +static struct clk *scrm_clks[] = {
> >> +	&auxclk0_ck,
> >> +	&auxclk1_ck,
> >> +	&auxclk2_ck,
> >> +	&auxclk3_ck,
> >> +	&auxclk4_ck,
> >> +	&auxclk5_ck,
> >> +};
> > 
> > Hmm I don't like the idea of specifying the auxclk both in the
> > cclock44xx_data.c and in DT..
> 
> Right, but till we have all clocks moved to DT we only need this
> approach for general purpose clocks that are not mapped to devices
> by hwmod.

For v3.10, let's just make sure that USB works with DT as then
after v3.10 we can make omap4 DT only and get rid of estimated
7K lines of code and data. I guess this is the last piece missing
for that, or are we also missing something else?

Can't you set up a clock alias for your device so it can find the
auxclk when requesting it with the dev entry?

For the DT clock driver if needed for v3.10, how about just do a
minimal drivers/clock/omap/ that uses the standard binding?
Then that driver can just do clk_get() from cclock44xx_data.c
for now? And then later on we'll just move all the clocks to a
combination of DT + /lib/firmware.

> e.g. auxclk are required to be specified in DT nodes for USB PHY.
> Without this we can't get USB host working on Panda.

OK. So if the USB PHY has a dev entry, can't you just set up a
clock alias in struct omap_clk omap44xx_clks[] for it?
 
> As Rajendra points out, it seems moving entire clock data to DT is not
> going to happen soon. So this is the simplistic way things can work.

Right but seems like we can get started there without moving
them all at once.

Regards,

Tony

  reply	other threads:[~2013-04-04 16:41 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19 14:26 [RFC][PATCH 0/2] Device tree support for OMAP4 SCRM clocks Roger Quadros
2013-03-19 14:26 ` [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs Roger Quadros
2013-03-19 14:30   ` Roger Quadros
2013-03-21 13:08   ` Rajendra Nayak
2013-03-21 13:54     ` Roger Quadros
2013-03-21 14:04       ` Rajendra Nayak
2013-03-21 14:11         ` Roger Quadros
2013-03-21 14:07   ` Roger Quadros
2013-03-26 10:23   ` [PATCH v2] " Roger Quadros
2013-04-02  8:23     ` Roger Quadros
2013-04-05  8:47       ` Roger Quadros
2013-04-05  8:48         ` Nishanth Menon
2013-04-05  8:50           ` Roger Quadros
2013-04-03 23:42   ` [RFC][PATCH 1/2] " Tony Lindgren
2013-04-04  5:20     ` Rajendra Nayak
2013-04-04 16:33       ` Tony Lindgren
2013-04-04  7:35     ` Roger Quadros
2013-04-04 16:41       ` Tony Lindgren [this message]
2013-04-05 10:39         ` Roger Quadros
2013-04-05 15:58           ` Tony Lindgren
2013-04-09  9:55             ` Roger Quadros
2013-04-09 16:49               ` Tony Lindgren
2013-04-09 17:43                 ` Tony Lindgren
2013-04-09 20:49                   ` Nishanth Menon
2013-04-09 21:54                     ` Nishanth Menon
2013-04-10 11:04                       ` Roger Quadros
2013-04-09 22:22                     ` Tony Lindgren
2013-04-10  8:06                     ` Mike Turquette
2013-04-10 10:55                       ` Roger Quadros
2013-04-10 17:39                         ` Nishanth Menon
2013-04-10 18:49                           ` Tony Lindgren
2013-04-10 19:19                             ` Nishanth Menon
2013-04-10 20:21                               ` Tony Lindgren
2013-04-11  7:48                           ` Roger Quadros
2013-04-11  9:04                             ` Grygorii Strashko
2013-04-11 22:45                             ` Nishanth Menon
2013-04-11 18:46                           ` Mike Turquette
2013-04-11 22:40                             ` Nishanth Menon
2013-04-05 17:56         ` Grygorii Strashko
2013-04-09 10:16           ` Roger Quadros
2013-03-19 14:27 ` [PATCH 2/2] ARM: dts: omap4-panda: Provide PHY clock information Roger Quadros
2013-03-19 14:28 ` [RFC][PATCH 0/2] Device tree support for OMAP4 SCRM clocks Roger Quadros

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130404164137.GH10155@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).