All of lore.kernel.org
 help / color / mirror / Atom feed
From: wens@csie.org (Chen-Yu Tsai)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH v2 4/8] arm: dts: sun4i: rename clock node names to clk@N
Date: Fri, 10 Jan 2014 00:02:44 +0800	[thread overview]
Message-ID: <CAGb2v66HeAEruxA-3UgBxr7BgxJRL4Pn=g2qrZg=gj7QgNRRdg@mail.gmail.com> (raw)
In-Reply-To: <CAAoKrfoVaXuJPWsKCpWY6AFUrbEwQscgfGO90h0WSq57u-e-_w@mail.gmail.com>

Hi,

On Thu, Jan 9, 2014 at 11:47 PM, Emilio L?pez <emilio@elopez.com.ar> wrote:
> Hi,
>
> 2014/1/9 Maxime Ripard <maxime.ripard@free-electrons.com>:
>>> You are right. pll5 only has 2 outputs. I was matching the format of
>>> pll6, which I'd like to include in this discussion.
>>>
>>> Does pll6 actually have 3 outputs? or are we just using the third
>>> output as a shortcut for mbus input of pll6*2 ?
>>
>> Hmmm, indeed. I don't really get why pll6 has a third output
>> either. Emilio?
>
> Citing the A20 user manual (my comments on the right)
>
> -----8<------
> For SATA, the output =(24MHz*N*K)/M/6 <-- we call this pll6_sata
> If the SATA is on, the clock output should be equal to 100MHz;
> For other module, the clock output = (24MHz*N*K)/2 <-- we call this pll6_other
> PLL6*2 = 24MHz*N*K <-- this would be the third output, which we call pll6
> -----8<------
>
> This last output is used by things like mbus and LCD

A wild guess, maybe those modules have a frequency doubler after the
PLL6 input?  Though pll6 direct output seems more reasonable.

Do we want to match the hardware exactly? If so we might want to ask Allwinner.

> Now, pll5 says
>
> -----8<------
> The PLL5 output for DDR = (24MHz*N*K)/M. <-- we call this pll5_ddr
> The PLL5 output for other module =(24MHz*N*K)/P. <-- we call this pll5_other
> -----8<------
>
> There does not seem to be anything connected to "pll5" with a rate of
> 24MHz*N*K, but personally I would not be opposed to adding it to the
> DT for consistency with pll6. After all, it actually is the common
> ancestor of pll5_ddr and pll5_other.

I already posted a version without adding "pll5". The names are coded into
factors_data instead.


Cheers,
ChenYu

> There's also some ASCII art on the code to visualize these clocks better
>
> http://git.linaro.org/people/mike.turquette/linux.git/blob/refs/heads/clk-next:/drivers/clk/sunxi/clk-sunxi.c#l842
>
> I hope this clarifies things.
>
> Cheers,
>
> Emilio

  reply	other threads:[~2014-01-09 16:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-06  5:58 [PATCH v2 0/8] arm: sunxi: rename DT clock node names to clk@N Chen-Yu Tsai
2014-01-06  5:58 ` [PATCH v2 1/8] clk: sunxi: add clock-output-names dt property support Chen-Yu Tsai
2014-01-07 22:14   ` Maxime Ripard
2014-01-08  1:44     ` [linux-sunxi] " Chen-Yu Tsai
2014-01-06  5:58 ` [PATCH v2 2/8] clk: sunxi: choose correct name for multiple output factor clocks Chen-Yu Tsai
2014-01-07 22:16   ` Maxime Ripard
2014-01-07 22:41     ` Maxime Ripard
2014-01-06  5:58 ` [PATCH v2 3/8] clk: sunxi: get divs parent clock name from parent factor clock Chen-Yu Tsai
2014-01-07 22:17   ` Maxime Ripard
2014-01-06  5:58 ` [PATCH v2 4/8] arm: dts: sun4i: rename clock node names to clk@N Chen-Yu Tsai
2014-01-07 22:38   ` Maxime Ripard
2014-01-08  1:38     ` Chen-Yu Tsai
2014-01-09  8:53       ` Maxime Ripard
2014-01-09 15:47         ` Emilio López
2014-01-09 16:02           ` Chen-Yu Tsai [this message]
2014-01-06  5:58 ` [PATCH v2 5/8] arm: dts: sun5i: " Chen-Yu Tsai
2014-01-06  5:58 ` [PATCH v2 6/8] arm: dts: sun6i: " Chen-Yu Tsai
2014-01-06  5:58 ` [PATCH v2 7/8] arm: dts: sun7i: " Chen-Yu Tsai
2014-01-06  5:58 ` [PATCH v2 8/8] arm: sun7i: cubietruck: Enable the i2c controllers Chen-Yu Tsai
2014-01-07 22:40   ` Maxime Ripard

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='CAGb2v66HeAEruxA-3UgBxr7BgxJRL4Pn=g2qrZg=gj7QgNRRdg@mail.gmail.com' \
    --to=wens@csie.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 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.