public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
Cc: "Mike Turquette" <mturquette@linaro.org>,
	"Josh Cartwright" <josh.cartwright@ni.com>,
	"Michal Simek" <michal.simek@xilinx.com>,
	"Peter Crosthwaite" <pcrost@xilinx.com>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Prashant Gaikwad" <pgaikwad@nvidia.com>,
	devicetree-discuss@lists.ozlabs.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, git@xilinx.com,
	"Jan Lübbe" <jlu@pengutronix.de>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	"Peter De Schrijver" <pdeschrijver@nvidia.com>
Subject: Re: RFC v2: Zynq Clock Controller
Date: Mon, 25 Mar 2013 12:13:08 -0600	[thread overview]
Message-ID: <515093B4.2090701@wwwdotorg.org> (raw)
In-Reply-To: <27dae808-1d3a-4001-8eb2-b0a6e2a34b8f@AM1EHSMHS013.ehs.local>

On 03/20/2013 05:56 PM, Sören Brinkmann wrote:
> Hi,
> 
> I spent some time working on this and incorporating feedback. Here's an updated proposal for a clock controller for Zynq:
> 
> Required properties:
>  - #clock-cells : Must be 1
>  - compatible : "xlnx,ps7-clkc"  (this may become 'xlnx,zynq-clkc' terminology differs a bit between Xilinx internal and mainline)
>  - ps-clk-frequency : Frequency of the oscillator providing ps_clk in HZ
>                      (usually 33 MHz oscillators are used for Zynq platforms)

This may have been mentioned before, but shouldn't the input clock be
represented as an actual clock in DT, and hence as an entry in this
node's clocks property? The crystal/... itself can be represented in DT
as a fixed-clock.

>  - clock-output-names : List of strings used to name the clock outputs. Shall be a list of the outputs given below.

That shouldn't be required.

> Optional properties:
>  - clocks : as described in the clock bindings
>  - clock-names : as described in the clock bindings

I think clocks should be required, with at least the main crystal clock
input always present, but perhaps having some optional entries for the
(E)MIO feature you mention.

> Example:
>         clkc: clkc {
>                 #clock-cells = <1>;
>                 compatible = "xlnx,ps7-clkc";
>                 ps-clk-frequency = <33333333>;
>                 clock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x", "cpu_3or2x", "cpu_2x", "cpu_1x", "ddr2x", "ddr3x", "dci", "lqspi", "smc", "pcap", "gem0", "gem1", "fclk0", "fclk1", "fclk2", "fclk3", "can0", "can1", "sdio0", "sdio1", "uart0", "uart1", "spi0", "spi1", "dma", "usb0_aper", "usb1_aper", "gem0_aper", "gem1_aper", "sdio0_aper", "sdio1_aper", "spi0_aper", "spi1_aper", "can0_aper", "can1_aper", "i2c0_aper", "i2c1_aper", "uart0_aper", "uart1_aper", "gpio_aper", "lqspi_aper", "smc_aper", "swdt", "dbg_trc", "dbg_apb";  /* long list... explanation below */
>                 /* optional props */
>                 clocks = <&clkc 16>, <&clk_foo>;
>                 clock-names = "gem1_emio_clk", "can_mio_clk_23";
>         };
> 
> The downside of supporting this is, that I don't see a way around explicitly listing the clock output names in the DT.

(Please wrap your emails to ~74 characters or so)

As Mike mentioned off-list, one can create a new clk registration API
that takes a struct clk* as parent rather than a char *clk_name.

> This email and any attachments are intended for the sole use of the named recipient(s)...

It's not good form to include that kind of disclaimer on public mailing
list posts. That's why many people use their personal email when posting
to mailing lists.

  parent reply	other threads:[~2013-03-25 18:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20 23:56 RFC v2: Zynq Clock Controller Sören Brinkmann
2013-03-21 18:32 ` Lars-Peter Clausen
2013-03-22 22:41   ` Sören Brinkmann
2013-03-25 14:46     ` Lars-Peter Clausen
2013-03-25 17:08       ` Sören Brinkmann
2013-03-25 17:19         ` Lars-Peter Clausen
2013-03-25 17:59           ` Sören Brinkmann
2013-03-25 18:10             ` Lars-Peter Clausen
2013-03-25 18:12               ` Sören Brinkmann
2013-03-26  0:49               ` Sören Brinkmann
2013-03-25 23:29     ` Stephen Warren
2013-03-25 23:59       ` Sören Brinkmann
2013-03-25 18:13 ` Stephen Warren [this message]
2013-03-25 18:27   ` Sören Brinkmann
2013-03-25 23:33     ` Stephen Warren
2013-03-26  0:03       ` Sören Brinkmann
2013-03-27  2:18         ` Mike Turquette
2013-03-29 22:36           ` Sören Brinkmann

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=515093B4.2090701@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=git@xilinx.com \
    --cc=jlu@pengutronix.de \
    --cc=josh.cartwright@ni.com \
    --cc=lars@metafoo.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michal.simek@xilinx.com \
    --cc=mturquette@linaro.org \
    --cc=pcrost@xilinx.com \
    --cc=pdeschrijver@nvidia.com \
    --cc=pgaikwad@nvidia.com \
    --cc=s.hauer@pengutronix.de \
    --cc=soren.brinkmann@xilinx.com \
    /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