From: mturquette@linaro.org (Mike Turquette)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 0/5] clk: dt: bindings for mux, divider & gate clocks
Date: Wed, 21 Aug 2013 21:14:48 -0700 [thread overview]
Message-ID: <20130822041448.8231.16182@quantum> (raw)
In-Reply-To: <51E8586C.7040808@codeaurora.org>
Quoting Stephen Boyd (2013-07-18 14:04:44)
> On 06/20/13 23:14, Mike Turquette wrote:
> > This series introduces binding definitions for common register-mapped
> > clock multiplexer, divider and gate IP blocks along with the
> > corresponding setup functions for matching DT data. The bindings are
> > similar to the struct definitions but please don't hold that against the
> > binding: the struct definitions closely model the hardware register
> > layout.
>
> I know there was some discussion about clock bindings and how they
> should and should not be done at Linaro Connect Europe last week. Can
> someone in that discussion reply to the mailing list with what came out
> of that? I only have second hand knowledge about the discussion so it
> would be good for me and others to know what was discussed. I'm
> especially curious because the arm soc update etherpad[1] says "DT
> describes what HW is (location, type, attributes), not how HW works
> (register descriptions, bitmasks, etc)." but these proposed generic
> clock bindings are describing registers and bitmasks.
Hi Stephen,
I just happened across a to-do list note telling me to respond to this
email. Better late than never.
The meeting you're referring to did not focus on clock provider bindings
as much as it focused on a pair of standard clock attributes that could
be referenced by clock consumers. They are "assigned-clock-parent" and
"assigned-clock-rate". The usage scribbled on the white board[1] was
something like:
mux: mux {
clocks = <&clock-foo>, <&clock-bar>;
};
uart: uart {
clocks = <&mux>;
assigned-clock-parent = <1>;
};
In the example above assigned-clock-parent uses the index of the mux,
but I prefer the following:
uart: uart {
clocks = <&mux>;
assigned-clock-parent = <&clock-bar>;
};
This is a way to establish initial configuration from the consumer's
perspective. Similarly something can be done for the clock rate with
assigned-clock-rate.
With all of that said this is consumer-level stuff. We'll definitely
talk about the clock provider DT bindings at the ARM Summit, which is
what you discuss above.
Regards,
Mike
[1] https://plus.google.com/u/0/107457854652287465481/posts/cvRveAupUpa
>
> [1] http://pad.linaro.org/p/LCE13_ARM_SOC_Tree_Consolidation_Update
>
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
> hosted by The Linux Foundation
next prev parent reply other threads:[~2013-08-22 4:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-21 6:14 [PATCH v3 0/5] clk: dt: bindings for mux, divider & gate clocks Mike Turquette
2013-06-21 6:14 ` [PATCH v3 1/5] clk: divider: replace bitfield width with mask Mike Turquette
2013-06-21 6:14 ` [PATCH v3 2/5] clk: of: helper for determining number of parent clocks Mike Turquette
2013-06-21 6:14 ` [PATCH v3 3/5] clk: dt: binding for basic multiplexer clock Mike Turquette
2013-06-25 8:27 ` Haojian Zhuang
2013-06-25 17:40 ` Mike Turquette
2013-06-26 8:40 ` Mark Rutland
2013-07-09 13:58 ` Mike Turquette
2013-06-21 6:14 ` [PATCH v3 4/5] clk: dt: binding for basic divider clock Mike Turquette
2013-06-21 6:14 ` [PATCH v3 5/5] clk: dt: binding for basic gate clock Mike Turquette
2013-06-22 17:04 ` [PATCH v3 0/5] clk: dt: bindings for mux, divider & gate clocks Heiko Stübner
2013-07-18 21:04 ` Stephen Boyd
2013-08-22 4:14 ` Mike Turquette [this message]
2013-08-23 4:32 ` Stephen Boyd
2013-08-23 6:54 ` Mike Turquette
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=20130822041448.8231.16182@quantum \
--to=mturquette@linaro.org \
--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).