From: Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Scott Wood <oss-fOR+EgIDQEHk1uMJSBkQmQ@public.gmane.org>
Cc: Bhaskar Upadhaya <Bhaskar.Upadhaya-3arQi8VN3Tc@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Pratiyush Mohan Srivastava
<pratiyush.srivastava-3arQi8VN3Tc@public.gmane.org>,
stuart.yoder-3arQi8VN3Tc@public.gmane.org,
Prabhakar Kushwaha
<prabhakar.kushwaha-3arQi8VN3Tc@public.gmane.org>,
linux-devel-XDVM779Km55Y1YpKYGMr2+TW4wlIGRCZ@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v2 1/1] arm64: Add DTS support for FSL's LS1012A SoC
Date: Tue, 30 Aug 2016 20:02:20 +0800 [thread overview]
Message-ID: <20160830120220.GC8363@tiger> (raw)
In-Reply-To: <1472493061.13245.39.camel-fOR+EgIDQEHk1uMJSBkQmQ@public.gmane.org>
On Mon, Aug 29, 2016 at 12:51:01PM -0500, Scott Wood wrote:
> On Mon, 2016-08-29 at 17:52 +0800, Shawn Guo wrote:
> > On Fri, Aug 26, 2016 at 03:57:21PM +0530, Bhaskar Upadhaya wrote:
> > >
> > > + clockgen: clocking@1ee1000 {
> > > + compatible = "fsl,ls1012a-clockgen";
> > The compatible cannot be found in binding docs.
>
> From Documentation/devicetree/bindings/clock/qoriq-clock.txt:
>
> - compatible: Should contain a chip-specific clock block compatible
> string and (if applicable) may contain a chassis-version clock
> compatible string.
>
> Chip-specific strings are of the form "fsl,<chip>-clockgen", such as:
> * "fsl,p2041-clockgen"
> * "fsl,p3041-clockgen"
> * "fsl,p4080-clockgen"
> * "fsl,p5020-clockgen"
> * "fsl,p5040-clockgen"
> * "fsl,t4240-clockgen"
> * "fsl,b4420-clockgen"
> * "fsl,b4860-clockgen"
> * "fsl,ls1021a-clockgen"
> Chassis-version clock strings include:
> * "fsl,qoriq-clockgen-1.0": for chassis 1.0 clocks
> * "fsl,qoriq-clockgen-2.0": for chassis 2.0 clocks
>
> I really hope we don't have to update every single fsl,<chip>-whatever binding
> every time a new chip comes out. There are already other chips not listed,
> FWIW (e.g. t1040, t2080, ls1043a, and ls2080a). That's why it says "such as".
If I remember correctly, DT maintainers want every supported compatible
string explicitly listed in bindings doc. And they even added a check
into checkpatch.pl with commit bff5da433525 ("checkpatch: add DT
compatible string documentation checks").
>
> > > + scfg: scfg@1570000 {
> > > + compatible = "fsl,ls1012a-scfg", "syscon";
> > Ditto
> >
> > >
> > > + reg = <0x0 0x1570000 0x0 0x10000>;
> > > + big-endian;
> > > + };
> > > +
> > > + dcfg: dcfg@1ee0000 {
> > > + compatible = "fsl,ls1012a-dcfg",
> > > + "fsl,ls1043a-dcfg",
> > If these compatibles are not documented or used, we can drop them? I
> > guess we only need "syscon" to get it work?
>
> If you only have "syscon" then how to do the users of the node properly know
> what register set they're dealing with? "syscon" should not be the only
> compatible on a node.
Okay, I assumed that a single user only need to deal with one particular
version of "dcfg" block, and the register set should be fixed. It seems
that's not always the case. But at least, "fsl,ls1043a-dcfg" can be
dropped here?
> > > +
> > > + rcpm: rcpm@1ee2000 {
> > > + compatible = "fsl,ls1012a-rcpm";
> > Undocumented/unsupported bindings?
>
> Documentation/devicetree/bindings/soc/fsl/rcpm.txt
I failed to grep the string in both bindings and drivers folder, so
thought this is an undocumented/unsupported compatible.
>
> > > + tmu: tmu@1f00000 {
> > > + compatible = "fsl,ls1012a-tmu", "fsl,qoriq-tmu";
> > > + reg = <0x0 0x1f00000 0x0 0x10000>;
> > > + interrupts = <0 33 0x4>;
> > > + fsl,tmu-range = <0xb0000 0x9002a 0x6004c
> > > 0x30062>;
> > > + fsl,tmu-calibration = <0x00000000 0x00000026
> > > + 0x00000001 0x0000002d
> > > + 0x00000002 0x00000032
> > > + 0x00000003 0x00000039
> > > + 0x00000004 0x0000003f
> > > + 0x00000005 0x00000046
> > > + 0x00000006 0x0000004d
> > > + 0x00000007 0x00000054
> > > + 0x00000008 0x0000005a
> > > + 0x00000009 0x00000061
> > > + 0x0000000a 0x0000006a
> > > + 0x0000000b 0x00000071
> > > +
> > Drop the newline.
> >
> > >
> > > + 0x00010000 0x00000025
> > > + 0x00010001 0x0000002c
> > > + 0x00010002 0x00000035
> > > + 0x00010003 0x0000003d
> > > + 0x00010004 0x00000045
> > > + 0x00010005 0x0000004e
> > > + 0x00010006 0x00000057
> > > + 0x00010007 0x00000061
> > > + 0x00010008 0x0000006b
> > > + 0x00010009 0x00000076
> > > +
> > Ditto
>
> This is how other instances of this property are formatted -- is it so wrong
> to provide visual grouping?
Can we replace the newline with a single line comment to tell how they
are grouped?
Shawn
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-08-30 12:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-26 10:27 [PATCH v2 1/1] arm64: Add DTS support for FSL's LS1012A SoC Bhaskar Upadhaya
[not found] ` <1472207241-18461-1-git-send-email-Bhaskar.Upadhaya-3arQi8VN3Tc@public.gmane.org>
2016-08-29 9:52 ` Shawn Guo
2016-08-29 17:51 ` Scott Wood
[not found] ` <1472493061.13245.39.camel-fOR+EgIDQEHk1uMJSBkQmQ@public.gmane.org>
2016-08-30 12:02 ` Shawn Guo [this message]
2016-08-30 14:07 ` Stuart Yoder
[not found] ` <HE1PR0401MB2636B40376255680B6A58CFB8DE00-B0v07Ae2tarUYqUkpow3g43W/0Ik+aLCnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2016-09-05 1:46 ` Shawn Guo
2016-09-06 17:05 ` [linux-devel] " Scott Wood
2016-09-30 11:38 ` Bhaskar U
2016-09-30 21:30 ` Shawn Guo
2016-09-30 11:38 ` Bhaskar U
2016-09-30 13:55 ` Stuart Yoder
2016-09-30 21:13 ` Bhaskar U
2016-09-30 21:45 ` [linux-devel] " Leo Li
[not found] ` <AM4PR0401MB2275F9FBAE954BD420AA67F98CC10-4rsfagO7TJwHfFjNQjRPfY3W/0Ik+aLCnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2016-09-30 21:55 ` Shawn Guo
2016-09-30 22:42 ` Stuart Yoder
2016-09-30 13:57 ` Stuart Yoder
2016-09-30 21:19 ` Bhaskar U
2016-09-30 21:29 ` [linux-devel] " Leo Li
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=20160830120220.GC8363@tiger \
--to=shawnguo-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=Bhaskar.Upadhaya-3arQi8VN3Tc@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-devel-XDVM779Km55Y1YpKYGMr2+TW4wlIGRCZ@public.gmane.org \
--cc=oss-fOR+EgIDQEHk1uMJSBkQmQ@public.gmane.org \
--cc=prabhakar.kushwaha-3arQi8VN3Tc@public.gmane.org \
--cc=pratiyush.srivastava-3arQi8VN3Tc@public.gmane.org \
--cc=stuart.yoder-3arQi8VN3Tc@public.gmane.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).