From: Scott Wood <scottwood@freescale.com>
To: Tang Yuantian-B29983 <B29983@freescale.com>
Cc: Wood Scott-B07421 <B07421@freescale.com>,
Mike Turquette <mturquette@linaro.org>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: Re: [v3] powerpc/mpc85xx: Update the clock device tree nodes
Date: Tue, 10 Sep 2013 16:46:46 -0500 [thread overview]
Message-ID: <1378849606.12204.359.camel@snotra.buserror.net> (raw)
In-Reply-To: <D07C73A334FF604B95B3CBD2A545D07B1503F161@039-SN2MPN1-012.039d.mgd.msft.net>
On Mon, 2013-08-26 at 21:49 -0500, Tang Yuantian-B29983 wrote:
> > > > > + };
> > > > > + pll1: pll1@820 {
> > > > > + #clock-cells = <1>;
> > > > > + reg = <0x820>;
> > > > > + compatible = "fsl,core-pll-clock";
> > > > > + clocks = <&clockgen>;
> > > > > + clock-output-names = "pll1", "pll1-div2", "pll1-
> > div4";
> > > > > + };
> > > >
> > > > Please leave a blank line between properties and nodes, and between
> > nodes.
> > > >
> > > OK, will add.
> > >
> > > > What does reg represent? Where is the binding for this?
> > > >
> > > > The compatible is too vague.
> > > Reg is register offset.
> >
> > With no size?
>
> No size is needed.
Yes, it is. Register blocks have size -- even if it's just a single
register.
> > > It is too later to change since the clock driver is merged for months
> > > although I sent this patch first.
> >
> > It should not have gone in without an approved binding. It seems it went
> > in via Mike Turquette (why is a non-ARM-specific tree using linux-arm-
> > kernel as its list, BTW?). No ack from Ben, Kumar, or me is shown in the
> > commit.
> The Linux common clock framework is not ARM specific. Any other arch can use it.
Sure, it just seemed an odd choice of mailing list for something that
isn't ARM-specific.
> > In any case, you can preserve compatibility with existing trees without
> > using this compatible in new trees. The driver can check for both
> > compatibles, with a comment indicating that "fsl,core-mux-clock" is
> > deprecated and for compatibility only.
> It is sub-clock node, is it really necessary to think about compatibility?
> I think that's the node clockgen's responsibility.
It describes registers, so yes, you need to consider compatibility. A
clock provider is not responsible for figuring out how to program
devices that consume its clocks, nor should it make any assumptions
about such devices.
> > > Besides, it is not too bad because other arch use the similar name.
> >
> > I don't follow. This is a specific Freescale register interface, not a
> > general concept.
> >
> > In any case, which "similar names" are you referring to? A search in
> > arch/arm/boot/dts for "mux" with "clk" or "clock" turns up
> > "allwinner,sun4i-apb1-mux-clk" which is much more specific than
> > "fsl,core-mux-clock".
> Ok, I will change the compatible string.
> Do you think "fsl,ppc-core-*" is ok?
No. How about "fsl,qoriq-chassis1-*" (for e500mc/e5500) and
fsl,qoriq-chassis2-*" (for e6500)?
-Scott
next prev parent reply other threads:[~2013-09-10 21:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-06 1:06 [PATCH v3] powerpc/mpc85xx: Update the clock device tree nodes Yuantian.Tang
2013-08-23 20:08 ` [v3] " Scott Wood
2013-08-26 2:42 ` Tang Yuantian-B29983
2013-08-26 17:00 ` Scott Wood
2013-08-27 2:49 ` Tang Yuantian-B29983
2013-09-10 21:46 ` Scott Wood [this message]
2013-09-11 3:24 ` Tang Yuantian-B29983
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=1378849606.12204.359.camel@snotra.buserror.net \
--to=scottwood@freescale.com \
--cc=B07421@freescale.com \
--cc=B29983@freescale.com \
--cc=devicetree@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.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).