From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-devel] [PATCH v2 1/1] arm64: Add DTS support for FSL's LS1012A SoC
Date: Fri, 30 Sep 2016 14:30:29 -0700 [thread overview]
Message-ID: <20160930213028.GA2373@x250> (raw)
In-Reply-To: <AM4PR0401MB22757E27E45F67FA5657AAAF8CC10@AM4PR0401MB2275.eurprd04.prod.outlook.com>
On Fri, Sep 30, 2016 at 11:38:29AM +0000, Bhaskar U wrote:
>
>
> >-----Original Message-----
> >From: Scott Wood
> >Sent: Tuesday, September 06, 2016 10:36 PM
> >To: Shawn Guo <shawnguo@kernel.org>; Stuart Yoder <stuart.yoder@nxp.com>;
> >Rob Herring <robh+dt@kernel.org>; Mark Rutland <mark.rutland@arm.com>
> >Cc: devicetree at vger.kernel.org; Bhaskar U <bhaskar.upadhaya@nxp.com>; Scott
> >Wood <oss@buserror.net>; Prabhakar Kushwaha
> ><prabhakar.kushwaha@nxp.com>; linux-devel at gforge.freescale.net; Pratiyush
> >Srivastava <pratiyush.srivastava@nxp.com>; linux-arm-
> >kernel at lists.infradead.org
> >Subject: Re: [linux-devel] [PATCH v2 1/1] arm64: Add DTS support for FSL's
> >LS1012A SoC
> >
> >On 09/04/2016 08:47 PM, Shawn Guo wrote:
> >> 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?
> >
> >Checkpatch is a useful tool but it can't get everything right all the time.
> >
>
> So what should we do, shall I add "compatible = "fsl,ls1012a-clockgen";" in Documentation/devicetree/bindings/clock/qoriq-clock.txt ?
I would encourage you to do that.
Shawn
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Guo <shawnguo@kernel.org>
To: Bhaskar U <bhaskar.upadhaya@nxp.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
Pratiyush Srivastava <pratiyush.srivastava@nxp.com>,
Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>,
Stuart Yoder <stuart.yoder@nxp.com>,
Scott Wood <scott.wood@nxp.com>, Scott Wood <oss@buserror.net>,
Rob Herring <robh+dt@kernel.org>,
"linux-devel@gforge.freescale.net"
<linux-devel@gforge.freescale.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [linux-devel] [PATCH v2 1/1] arm64: Add DTS support for FSL's LS1012A SoC
Date: Fri, 30 Sep 2016 14:30:29 -0700 [thread overview]
Message-ID: <20160930213028.GA2373@x250> (raw)
In-Reply-To: <AM4PR0401MB22757E27E45F67FA5657AAAF8CC10@AM4PR0401MB2275.eurprd04.prod.outlook.com>
On Fri, Sep 30, 2016 at 11:38:29AM +0000, Bhaskar U wrote:
>
>
> >-----Original Message-----
> >From: Scott Wood
> >Sent: Tuesday, September 06, 2016 10:36 PM
> >To: Shawn Guo <shawnguo@kernel.org>; Stuart Yoder <stuart.yoder@nxp.com>;
> >Rob Herring <robh+dt@kernel.org>; Mark Rutland <mark.rutland@arm.com>
> >Cc: devicetree@vger.kernel.org; Bhaskar U <bhaskar.upadhaya@nxp.com>; Scott
> >Wood <oss@buserror.net>; Prabhakar Kushwaha
> ><prabhakar.kushwaha@nxp.com>; linux-devel@gforge.freescale.net; Pratiyush
> >Srivastava <pratiyush.srivastava@nxp.com>; linux-arm-
> >kernel@lists.infradead.org
> >Subject: Re: [linux-devel] [PATCH v2 1/1] arm64: Add DTS support for FSL's
> >LS1012A SoC
> >
> >On 09/04/2016 08:47 PM, Shawn Guo wrote:
> >> 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?
> >
> >Checkpatch is a useful tool but it can't get everything right all the time.
> >
>
> So what should we do, shall I add "compatible = "fsl,ls1012a-clockgen";" in Documentation/devicetree/bindings/clock/qoriq-clock.txt ?
I would encourage you to do that.
Shawn
next prev parent reply other threads:[~2016-09-30 21:30 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
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
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
2016-09-05 1:46 ` Shawn Guo
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 [this message]
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
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=20160930213028.GA2373@x250 \
--to=shawnguo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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.