devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Rajendra Nayak <rnayak@ti.com>
Cc: Roger Quadros <rogerq@ti.com>,
	b-cousson@ti.com, linux@arm.linux.org.uk, balbi@ti.com,
	linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-usb@vger.kernel.org, devicetree-discuss@lists.ozlabs.org,
	linux-kernel@vger.kernel.org, Paul Walmsley <paul@pwsan.com>
Subject: Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs
Date: Thu, 4 Apr 2013 09:33:46 -0700	[thread overview]
Message-ID: <20130404163346.GG10155@atomide.com> (raw)
In-Reply-To: <515D0D8A.7030500@ti.com>

* Rajendra Nayak <rnayak@ti.com> [130403 22:25]:
> On Thursday 04 April 2013 05:12 AM, Tony Lindgren wrote:
> > 
> > How about just add a minimal drivers/clk/omap/clk-xyz.c that takes
> > the configuration from DT and is based on the binding we already have in
> > Documentation/devicetree/bindings/clock/clock-bindings.txt?
> > 
> > Then as we add new bindings there we can drop them from current
> > cclock44xx_data.c, no? That is after omap4 is DT only..
> 
> The patch just provides an alternative for clkdev mapping in case of DT.
> Are you suggesting we move all *clock data* related to auxclks (and eventually
> all clocks) into DT?

Well I think we should have a driver that can take any defined clock binding
from DT at least for boottime clocks. We need at least the timer clocks
early during the boot, and probably the root device like MMC or possibly
Ethernet depending on the board.

The rest of the huge amount of clocks we can just load from /lib/firmware
after mounting intramfs or root on MMC. As long as we can define any
boottime clock in DT also, loading the rest of the clock data from
/lib/firmware should not cause issues with booting.

And as we get the clocks moved, we can drop them from cclock44xx_data.c.
AFAIK the new driver can just clk_get the parent clocks so those can
stay in cclock44xx_data.c for now?

So basically we can do the same as we are already doing with pinctrl-single.c,
but with addition of loading large amounts of data from /lib/firmware.
And eventually we can do the same with hwmod too.

Regarding the readability issue, we now have preprocessing support for
.dts files merged AFAIK, so they can be as readable as data structures :)

> We have discussed this multiple times in the past, and moving 250 clock nodes
> with each needing multiple register offsets, masks, shifts etc into DT makes it
> completely un-readable. For me, having a way for devices to reference a clock that they
> use for a device using DT makes sense, but not moving all clock data into dts files.

Yes that's why we should also support loading clocks from /lib/firmware.
Naturally the parent clocks can be allocated by the clock driver(s) at
least initially.

But the main reason I think we should do this is so we get out of the
flame path with these huge data files for every new SoC.

Regards,

Tony

  reply	other threads:[~2013-04-04 16:33 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
     [not found] ` <1363703220-4777-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>
2013-03-19 14:26   ` [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs Roger Quadros
     [not found]     ` <1363703220-4777-2-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>
2013-03-19 14:30       ` Roger Quadros
2013-03-21 13:08     ` Rajendra Nayak
     [not found]       ` <514B0650.5070406-l0cyMroinI0@public.gmane.org>
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
     [not found]       ` <1364293408-20677-1-git-send-email-rogerq-l0cyMroinI0@public.gmane.org>
2013-04-02  8:23         ` Roger Quadros
     [not found]           ` <515A958B.5080905-l0cyMroinI0@public.gmane.org>
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 [this message]
     [not found]       ` <20130403234242.GE10155-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2013-04-04  7:35         ` Roger Quadros
2013-04-04 16:41           ` Tony Lindgren
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
     [not found]                       ` <20130409174319.GP10155-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
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
     [not found]                                   ` <20130410184919.GJ10155-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
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=20130404163346.GG10155@atomide.com \
    --to=tony@atomide.com \
    --cc=b-cousson@ti.com \
    --cc=balbi@ti.com \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=paul@pwsan.com \
    --cc=rnayak@ti.com \
    --cc=rogerq@ti.com \
    /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).