From: Mark Rutland <mark.rutland@arm.com>
To: Jonas Jensen <jonas.jensen@gmail.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 12:02:01 +0100 [thread overview]
Message-ID: <20130718110201.GB29153@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <CACmBeS2SnpiUtiQD6j9qyaXZ5-chHSHVeo4c5=UhitVonvkKtw@mail.gmail.com>
On Thu, Jul 18, 2013 at 11:36:40AM +0100, Jonas Jensen wrote:
> Hi Mark, thanks for taking a look at this.
>
> On 18 July 2013 11:50, Mark Rutland <mark.rutland@arm.com> wrote:
> > This confuses me. moxart_of_clk_init gets called because there was a
> > "moxa,moxart-core-clock", node in the dt, but the driver only seems to
> > use the information to figure out the configuration of another clock
> > ("moxa,moxart-apb-clock"), and never registers a clock specifically for
> > the core-clock.
> >
> > I couldn't find "moxa,moxart-apb-clock" described in mainline. COuld you
> > describe the relationship between core-clock and apb-clock?
>
> It's true core-clock exist only so the register can be mapped.
Ok. I'm just concerned that the linkage isn't explicit or obvious.
>
> apb-clock is part of a patch set that will add new device tree files for the
> MOXA ART SoC, but it's not in mainline:
>
> http://lists.infradead.org/pipermail/linux-arm-kernel/2013-July/181757.html
>
> apb-clock could be a fixed rate 48MHz DT only clock, but because we can't
> be sure it's 48MHz on all platforms, reading it from a register with core-clock
> is more portable.
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.
How does core-clock physically relate to apb-clock? Does it feed or is
it fed by apb-clock?
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.
Thanks,
Mark.
>
>
> Best regards,
> Jonas
>
next prev parent reply other threads:[~2013-07-18 11:02 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 [this message]
2013-07-18 11:55 ` Jonas Jensen
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=20130718110201.GB29153@e106331-lin.cambridge.arm.com \
--to=mark.rutland@arm.com \
--cc=arm@kernel.org \
--cc=jonas.jensen@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--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).