From: Ben Dooks <ben.dooks@codethink.co.uk>
To: linux-sh@vger.kernel.org
Subject: Re: emev2: clock driver dt proposal
Date: Wed, 10 Jul 2013 16:07:09 +0000 [thread overview]
Message-ID: <51DD86AD.3070207@codethink.co.uk> (raw)
In-Reply-To: <51DC4737.8020803@codethink.co.uk>
On 09/07/13 18:24, Ben Dooks wrote:
> To deal with peripheral clocks, I was working on the following idea
> for a clock binding to deal with the gclk and sclks to each peripheral.
>
> The parent control devices:
>
> sclk: clock-controller@e011600 {
> compatible = "renesas,em-sclk";
> reg = <0xe011600 0x100>;
>
>
> #clock-cells = <2>;
> };
>
> This registers a clock-divider for the clock and a clock-mux to control the
> divder's parents.
>
> gclk: clock-controller@e011400 {
> compatible = "renesas,em-gclk";
> reg = <0xe011400 0x200>;
> #clock-cells = <3>;
> }
>
> This driver provides the clock gates for both the bus clock and the sclk.
>
>
> For each peripheral:
>
> shdci0 {
> clocks = <&gclk 0xc8 0x5 0x2>, <&sclk 0x48 &pll3 &pll4 &osc0 &osc1>;
> clock-names = "bus", "sclk";
> }
>
> In this case, the gclk is in the form of:
>
> < &gclk register-offset-from-base bus-control-bitmask
> sclk-control-bitmask >
>
> And the sclk is in the form of:
>
> < &sclk register-offset-from-base
> parent-clock-0 parent-clock-1 parent-clock-2 parent-clock-3 >
Is anyone else working on EMEV2 clock-dt conversion, or should I go
ahead and start?
--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
next prev parent reply other threads:[~2013-07-10 16:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 17:24 emev2: clock driver dt proposal Ben Dooks
2013-07-10 16:07 ` Ben Dooks [this message]
2013-07-11 0:26 ` Simon Horman
2013-07-11 16:44 ` Magnus Damm
2013-07-11 16:56 ` Ben Dooks
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=51DD86AD.3070207@codethink.co.uk \
--to=ben.dooks@codethink.co.uk \
--cc=linux-sh@vger.kernel.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).