linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] clocktree representation in the devicetree
Date: Mon, 17 Oct 2011 21:12:51 +0200	[thread overview]
Message-ID: <20111017191251.GE18141@pengutronix.de> (raw)
In-Reply-To: <201110171702.05319.arnd@arndb.de>

On Mon, Oct 17, 2011 at 05:02:05PM +0200, Arnd Bergmann wrote:
> On Monday 17 October 2011, Sascha Hauer wrote:
> > The following is an attempt to represent the clocktree of a i.MX53 in
> > the devicetree. I created this to see how it would look like and to
> > start a discussion whether we want to move in this direction or not.
> 
> Very good, thanks for getting this started!
> 
> > Some things to consider:
> > 
> > - It seems to be very flexible. A board can customize the clock tree
> >   by just adding some clk-parent=<phandle> properties to the muxers.
> > - clocks can easily be associated with devices.
> > 
> > but:
> > 
> > - The following example registers 127 new platform devices and it's
> >   not even complete. This adds significant overhead to initialization.
> 
> I don't understand enough about the clock trees to understand if the
> dts representation is good, but it I don't see a reason to represent
> it as lots of platform devices in linux. We can have lots of device_nodes
> in the device tree that are not a platform_device but we can still
> access them through the of_*() functions. Ideally, we would encapsulate
> all the clock tree parsing in the clk subsystem and provide high-level
> interfaces to clkdev drivers from there.

Still we have to parse the compatible stuff and have to match a clock
entry to the corresponding driver. If we don't use platform devices here
I think we have to be careful to not create something which resembles
the platform devices with similar overhead.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

  reply	other threads:[~2011-10-17 19:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-17 10:29 [RFC] clocktree representation in the devicetree Sascha Hauer
2011-10-17 15:02 ` Arnd Bergmann
2011-10-17 19:12   ` Sascha Hauer [this message]
2011-10-17 17:01 ` Rob Herring
2011-10-17 18:43   ` Sascha Hauer
2011-10-17 23:11     ` Rob Herring
2011-10-18  7:16       ` Sascha Hauer
2011-10-18 15:35         ` Rob Herring
2011-10-20  7:28           ` Sascha Hauer
2011-11-08 18:33         ` Grant Likely

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=20111017191251.GE18141@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --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).