From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC] clocktree representation in the devicetree
Date: Mon, 17 Oct 2011 12:01:37 -0500 [thread overview]
Message-ID: <4E9C5F71.5070608@gmail.com> (raw)
In-Reply-To: <20111017102921.GA18141@pengutronix.de>
Sascha,
On 10/17/2011 05:29 AM, Sascha Hauer wrote:
>
> Hi All,
>
> 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.
>
> 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.
>
Why? You should only get platform devices if you declare the clocks
block as a simple bus.
I like the clk tree hierarchy reflected in the DT hierarchy. This would
make init ordering easier. However, there is one major problem I see.
You can only describe 1 configuration of the clock tree. How do you show
all possible muxing options for clocks? We need to describe what the mux
options are, but not what the current selection is as that is
discoverable already.
Will clocks ever become generic enough that it makes sense to describe
clocks in DT at the level of muxes, dividers, gates, etc.? Perhaps it
makes more sense to just describe the clock controller to device
connections and any board level clocks in the DT.
Rob
next prev parent reply other threads:[~2011-10-17 17:01 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
2011-10-17 17:01 ` Rob Herring [this message]
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=4E9C5F71.5070608@gmail.com \
--to=robherring2@gmail.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).