From: Jonas Jensen <jonas.jensen@gmail.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"arm@kernel.org" <arm@kernel.org>,
"mturquette@linaro.org" <mturquette@linaro.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3] clk: add MOXA ART SoCs clock driver
Date: Thu, 18 Jul 2013 13:55:26 +0200 [thread overview]
Message-ID: <CACmBeS24smrJ4SLY7snv1_6SRcuXRkZ8t0PGMvBupUpKMMb43w@mail.gmail.com> (raw)
In-Reply-To: <20130718110201.GB29153@e106331-lin.cambridge.arm.com>
On 18 July 2013 13:02, Mark Rutland <mark.rutland@arm.com> wrote:
> Ok. I'm just concerned that the linkage isn't explicit or obvious.
> This does leave apb-clock completely dependent on core-clock, and unless
> I've missed something there's no linkage between the two described in
> the dt.
I can add a description in the core-clock binding and also for
apb-clock pointing
out that it's set from core-clock.
> How does core-clock physically relate to apb-clock? Does it feed or is
> it fed by apb-clock?
apb-clock is entirely a DT construct used by drivers to get the fixed
rate 48MHz.
It's not fed by core-clock more than what happens in probe.
For UC-7112-LX, drivers using apb-clock are: clocksource, MMC, watchdog
Because clocksource relies on apb-clock, a successful probe of
core-clock is critical.
Commonly, drivers look up the apb-clock node and call clk_get_rate.
> Are we always guaranteed to have core-clock if we have apb-clock, and is
> it part of the same block in hardware? If so we could describe the
> amalgamation as a provider with two clock outputs, with core-clock's
> registers for configuration at probe-time.
Yes, as described above, there can not be a apb-clock without core-clock.
I think drivers could find and use core-clock instead. Maybe the abstraction
of apb-clock is unnecessary?
Best regards,
Jonas
next prev parent reply other threads:[~2013-07-18 11:55 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-27 14:03 [PATCH] clk: add MOXA ART SoCs clock driver Jonas Jensen
2013-07-04 13:08 ` [PATCH v2] " Jonas Jensen
2013-07-17 13:23 ` [PATCH v3] " Jonas Jensen
2013-07-18 9:50 ` Mark Rutland
2013-07-18 10:36 ` Jonas Jensen
2013-07-18 11:02 ` Mark Rutland
2013-07-18 11:55 ` Jonas Jensen [this message]
2013-07-18 13:56 ` Mark Rutland
2013-07-18 14:25 ` Jonas Jensen
2013-07-19 8:07 ` [PATCH v4] " Jonas Jensen
2013-07-19 8:17 ` [PATCH v5] " Jonas Jensen
2013-07-22 9:21 ` Mark Rutland
2013-07-23 8:09 ` Tomasz Figa
2013-07-26 22:32 ` Mike Turquette
2013-07-29 9:44 ` [PATCH v6] " Jonas Jensen
2013-10-07 4:47 ` Mike Turquette
2013-10-09 14:54 ` [PATCH v7] " Jonas Jensen
2013-11-01 18:13 ` Sylwester Nawrocki
2013-12-09 15:16 ` [PATCH v8] " Jonas Jensen
2014-01-17 15:03 ` [PATCH v9] " Jonas Jensen
2014-01-17 15:17 ` Sudeep Holla
2014-01-21 12:44 ` [PATCH v10] " Jonas Jensen
2014-01-27 10:20 ` Mark Rutland
2014-01-28 11:09 ` [PATCH v11] " Jonas Jensen
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=CACmBeS24smrJ4SLY7snv1_6SRcuXRkZ8t0PGMvBupUpKMMb43w@mail.gmail.com \
--to=jonas.jensen@gmail.com \
--cc=arm@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@linaro.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).