From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] arm/imx6: convert clock to device tree
Date: Mon, 21 Nov 2011 11:45:27 -0600 [thread overview]
Message-ID: <4ECA8E37.8010307@gmail.com> (raw)
In-Reply-To: <1321895502-32341-1-git-send-email-shawn.guo@linaro.org>
On 11/21/2011 11:11 AM, Shawn Guo wrote:
> It converts imx6 clock code to common clock frame and device tree.
>
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> ---
> As I promised to Arnd, I will convert imx6 clock code to common clock
> frame and in turn device tree. Here it is.
>
> It's based on Mike's common-clk pre-v3 and Grant's clock device tree
> binding series.
>
> Along with the conversion to device tree, I feel it's a great idea to
> introduce '#clock-cells'. With adopting it, I'm using 70 nodes to
> describe 110 clocks (~35% nodes reduced). However, the current design
> of '#clock-cells' makes the user a little difficult. For example, when
> a consumer node references to provider node which is a blob of 4 clocks,
> it has to fill 4 parameters into the phandle.
>
> usdhc at 02198000 { /* uSDHC3 */
> compatible = "fsl,imx6q-usdhc";
> reg = <0x02198000 0x4000>;
> interrupts = <0 24 0x04>;
> clock-input = <&usdhc_clk 2 0 0 0>; <--
> clock-input-name = "usdhc3";
> };
>
> But we actually need to pass only one parameter to point out the index
> of the clock in the blob. It's a little silly to put a number of
> meaningless 0 there to fill the length of the phandle parameters. Can
> we rework the dt core code to make the following one work?
>
> usdhc at 02198000 { /* uSDHC3 */
> compatible = "fsl,imx6q-usdhc";
> reg = <0x02198000 0x4000>;
> interrupts = <0 24 0x04>;
> clock-input = <&usdhc_clk 2>; <--
> clock-input-name = "usdhc3";
> };
What you want is how it is supposed to work. Why do you think it is not
this way?
Rob
next parent reply other threads:[~2011-11-21 17:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1321895502-32341-1-git-send-email-shawn.guo@linaro.org>
2011-11-21 17:45 ` Rob Herring [this message]
2011-11-22 1:31 ` [RFC PATCH] arm/imx6: convert clock to device tree Shawn Guo
2011-11-21 16:47 Shawn Guo
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=4ECA8E37.8010307@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.