* still unclear on a couple DT questions from my initial post
@ 2017-09-01 5:29 Robert P. J. Day
[not found] ` <alpine.LFD.2.21.1709010121140.20957-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2017-09-01 5:29 UTC (permalink / raw)
To: devicetree-u79uwXL29TY76Z2rM5mHXA
again, more nitpicky pedantry, but from my initial post, i'm still
unclear on a couple things.
first, a number of powerpc .dts files contain the line:
dcr-parent = <&{/cpus/cpu@0}>;
and it's not clear to me why there are curly braces there. that is the
only example of that, but i see no mention of that in the spec. is it
meaningful? or are they superfluous?
also, the spec states that status could be set to "okay", but a pile
of .dts files in the current kernel have the shorter form:
status = "ok";
and the current kernel code in drivers/of explicitly accepts both
forms. is that a formal spec property, or is the kernel code simply
allowing people to be sloppy?
i think that's it for now, thanks for your patience.
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <alpine.LFD.2.21.1709010121140.20957-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: still unclear on a couple DT questions from my initial post [not found] ` <alpine.LFD.2.21.1709010121140.20957-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2017-09-01 8:51 ` Mark Rutland 2017-09-01 17:14 ` Robert P. J. Day 0 siblings, 1 reply; 4+ messages in thread From: Mark Rutland @ 2017-09-01 8:51 UTC (permalink / raw) To: Robert P. J. Day; +Cc: devicetree-u79uwXL29TY76Z2rM5mHXA On Fri, Sep 01, 2017 at 01:29:31AM -0400, Robert P. J. Day wrote: > again, more nitpicky pedantry, but from my initial post, i'm still > unclear on a couple things. > > first, a number of powerpc .dts files contain the line: > > dcr-parent = <&{/cpus/cpu@0}>; > > and it's not clear to me why there are curly braces there. that is the > only example of that, but i see no mention of that in the spec. is it > meaningful? or are they superfluous? This syntax allows us to refer to a node by path, even if it doesn't have an existing label. The &foo syntax only allows us to refer to an existing label called foo. > also, the spec states that status could be set to "okay", but a pile > of .dts files in the current kernel have the shorter form: > > status = "ok"; > > and the current kernel code in drivers/of explicitly accepts both > forms. is that a formal spec property, or is the kernel code simply > allowing people to be sloppy? The kernel is catering for sloppiness. We should probably fix those up in the kernel tree. Thanks, Mark. -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: still unclear on a couple DT questions from my initial post 2017-09-01 8:51 ` Mark Rutland @ 2017-09-01 17:14 ` Robert P. J. Day [not found] ` <alpine.LFD.2.21.1709011314001.2699-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Robert P. J. Day @ 2017-09-01 17:14 UTC (permalink / raw) To: Mark Rutland; +Cc: devicetree-u79uwXL29TY76Z2rM5mHXA On Fri, 1 Sep 2017, Mark Rutland wrote: > On Fri, Sep 01, 2017 at 01:29:31AM -0400, Robert P. J. Day wrote: > > again, more nitpicky pedantry, but from my initial post, i'm still > > unclear on a couple things. > > > > first, a number of powerpc .dts files contain the line: > > > > dcr-parent = <&{/cpus/cpu@0}>; > > > > and it's not clear to me why there are curly braces there. that is the > > only example of that, but i see no mention of that in the spec. is it > > meaningful? or are they superfluous? > > This syntax allows us to refer to a node by path, even if it doesn't > have an existing label. The &foo syntax only allows us to refer to > an existing label called foo. ah ... is that mentioned in the spec somewhere? i don't recall seeing that. > > also, the spec states that status could be set to "okay", but a pile > > of .dts files in the current kernel have the shorter form: > > > > status = "ok"; > > > > and the current kernel code in drivers/of explicitly accepts both > > forms. is that a formal spec property, or is the kernel code simply > > allowing people to be sloppy? > > The kernel is catering for sloppiness. We should probably fix those up > in the kernel tree. the vast majority of that is under arch/arm*, if you want to take care of that, and i can see about the rest. rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ======================================================================== -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <alpine.LFD.2.21.1709011314001.2699-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>]
* Re: still unclear on a couple DT questions from my initial post [not found] ` <alpine.LFD.2.21.1709011314001.2699-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> @ 2017-09-01 18:21 ` Rob Herring 0 siblings, 0 replies; 4+ messages in thread From: Rob Herring @ 2017-09-01 18:21 UTC (permalink / raw) To: Robert P. J. Day Cc: Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On Fri, Sep 1, 2017 at 12:14 PM, Robert P. J. Day <rpjday-L09J2beyid0N/H6P543EQg@public.gmane.org> wrote: > On Fri, 1 Sep 2017, Mark Rutland wrote: > >> On Fri, Sep 01, 2017 at 01:29:31AM -0400, Robert P. J. Day wrote: >> > again, more nitpicky pedantry, but from my initial post, i'm still >> > unclear on a couple things. >> > >> > first, a number of powerpc .dts files contain the line: >> > >> > dcr-parent = <&{/cpus/cpu@0}>; >> > >> > and it's not clear to me why there are curly braces there. that is the >> > only example of that, but i see no mention of that in the spec. is it >> > meaningful? or are they superfluous? >> >> This syntax allows us to refer to a node by path, even if it doesn't >> have an existing label. The &foo syntax only allows us to refer to >> an existing label called foo. > > ah ... is that mentioned in the spec somewhere? i don't recall > seeing that. > >> > also, the spec states that status could be set to "okay", but a pile >> > of .dts files in the current kernel have the shorter form: >> > >> > status = "ok"; >> > >> > and the current kernel code in drivers/of explicitly accepts both >> > forms. is that a formal spec property, or is the kernel code simply >> > allowing people to be sloppy? >> >> The kernel is catering for sloppiness. We should probably fix those up >> in the kernel tree. > > the vast majority of that is under arch/arm*, if you want to take > care of that, and i can see about the rest. My preference would be to first add a check into dtc. It has a check for status currently, but only that it is a string. Then others can get annoyed with the warning and fix. Rob -- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-01 18:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-01 5:29 still unclear on a couple DT questions from my initial post Robert P. J. Day
[not found] ` <alpine.LFD.2.21.1709010121140.20957-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2017-09-01 8:51 ` Mark Rutland
2017-09-01 17:14 ` Robert P. J. Day
[not found] ` <alpine.LFD.2.21.1709011314001.2699-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2017-09-01 18:21 ` Rob Herring
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).