All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shawn Guo <shawnguo-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Stuart Yoder <stuart.yoder-3arQi8VN3Tc@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
Cc: Scott Wood <oss-fOR+EgIDQEHk1uMJSBkQmQ@public.gmane.org>,
	"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Bhaskar U <bhaskar.upadhaya-3arQi8VN3Tc@public.gmane.org>,
	Prabhakar Kushwaha
	<prabhakar.kushwaha-3arQi8VN3Tc@public.gmane.org>,
	"linux-devel-XDVM779Km55Y1YpKYGMr2+TW4wlIGRCZ@public.gmane.org"
	<linux-devel-XDVM779Km55Y1YpKYGMr2+TW4wlIGRCZ@public.gmane.org>,
	Pratiyush Srivastava
	<pratiyush.srivastava-3arQi8VN3Tc@public.gmane.org>,
	"linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@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: Mon, 5 Sep 2016 09:46:36 +0800	[thread overview]
Message-ID: <20160905014636.GB25778@tiger> (raw)
In-Reply-To: <HE1PR0401MB2636B40376255680B6A58CFB8DE00-B0v07Ae2tarUYqUkpow3g43W/0Ik+aLCnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>

On Tue, Aug 30, 2016 at 02:07:17PM +0000, Stuart Yoder wrote:
> > 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").
> 
> See Documentation/devicetree/bindings/submitting-patches.txt:
> 
>   5) The wildcard "<chip>" may be used in compatible strings, as in
>      the following example:
> 
>          - compatible: Must contain '"nvidia,<chip>-pcie",
>            "nvidia,tegra20-pcie"' where <chip> is tegra30, tegra132, ...
> 
>      As in the above example, the known values of "<chip>" should be
>      documented if it is used.
> 
> It _is_ allowed to use the <chip> wildcard, and so you will not find all
> full compatible strings explicitly listed in bindings.  However, the
> chips themselves "should" be listed.

+ Rob and Mark

Oops, I'm not aware of this DT document.  In that case, the DT document
and checkpatch is basically asking for conflicting thing.  Rob, Mark,
can you guys please clarify?

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

WARNING: multiple messages have this Message-ID (diff)
From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/1] arm64: Add DTS support for FSL's LS1012A SoC
Date: Mon, 5 Sep 2016 09:46:36 +0800	[thread overview]
Message-ID: <20160905014636.GB25778@tiger> (raw)
In-Reply-To: <HE1PR0401MB2636B40376255680B6A58CFB8DE00@HE1PR0401MB2636.eurprd04.prod.outlook.com>

On Tue, Aug 30, 2016 at 02:07:17PM +0000, Stuart Yoder wrote:
> > 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 at 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").
> 
> See Documentation/devicetree/bindings/submitting-patches.txt:
> 
>   5) The wildcard "<chip>" may be used in compatible strings, as in
>      the following example:
> 
>          - compatible: Must contain '"nvidia,<chip>-pcie",
>            "nvidia,tegra20-pcie"' where <chip> is tegra30, tegra132, ...
> 
>      As in the above example, the known values of "<chip>" should be
>      documented if it is used.
> 
> It _is_ allowed to use the <chip> wildcard, and so you will not find all
> full compatible strings explicitly listed in bindings.  However, the
> chips themselves "should" be listed.

+ Rob and Mark

Oops, I'm not aware of this DT document.  In that case, the DT document
and checkpatch is basically asking for conflicting thing.  Rob, Mark,
can you guys please clarify?

Shawn

  parent reply	other threads:[~2016-09-05  1:46 UTC|newest]

Thread overview: 36+ 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
2016-08-26 10:27 ` 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  9:52     ` Shawn Guo
2016-08-29 17:51     ` Scott Wood
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
2016-08-30 12:02           ` Shawn Guo
2016-08-30 14:07           ` Stuart Yoder
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 [this message]
2016-09-05  1:46                 ` Shawn Guo
2016-09-06 17:05                 ` [linux-devel] " Scott Wood
2016-09-06 17:05                   ` Scott Wood
2016-09-30 11:38                   ` Bhaskar U
2016-09-30 11:38                     ` Bhaskar U
2016-09-30 21:30                     ` Shawn Guo
2016-09-30 21:30                       ` Shawn Guo
2016-09-30 11:38     ` Bhaskar U
2016-09-30 11:38       ` Bhaskar U
2016-09-30 13:55       ` Stuart Yoder
2016-09-30 13:55         ` Stuart Yoder
2016-09-30 21:13         ` Bhaskar U
2016-09-30 21:13           ` Bhaskar U
2016-09-30 21:45           ` [linux-devel] " Leo Li
2016-09-30 21:45             ` Leo Li
     [not found]           ` <AM4PR0401MB2275F9FBAE954BD420AA67F98CC10-4rsfagO7TJwHfFjNQjRPfY3W/0Ik+aLCnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2016-09-30 21:55             ` Shawn Guo
2016-09-30 21:55               ` Shawn Guo
2016-09-30 22:42           ` Stuart Yoder
2016-09-30 22:42             ` Stuart Yoder
2016-09-30 13:57 ` Stuart Yoder
2016-09-30 13:57   ` Stuart Yoder
2016-09-30 21:19   ` Bhaskar U
2016-09-30 21:19     ` Bhaskar U
2016-09-30 21:29     ` [linux-devel] " Leo Li
2016-09-30 21:29       ` 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=20160905014636.GB25778@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=mark.rutland-5wv7dgnIgG8@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=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@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 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.