* How to parse delete-property annotations
@ 2015-09-29 12:54 Stefan Monnier
[not found] ` <jwvzj05s842.fsf-monnier+INBOX-mXXj517/zsQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2015-09-29 12:54 UTC (permalink / raw)
To: devicetree-u79uwXL29TY76Z2rM5mHXA
[ In the context of Emacs's dts-mode (http://elpa.gnu.org/packages/dts-mode). ]
I recently came across the following piece of DTS code:
&usbphy {
/* Unset otg detect pins as we force dr_mode */
/delete-property/ usb0_id_det-gpio;
/delete-property/ usb0_vbus_det-gpio;
};
and was wondering how dts-mode should understand this. `dts-mode'
doesn't try to understand the actual *meaning* of such code, but it does
try to understand the syntax (i.e. how the abstract-syntax-tree would
look like).
Is "/delete-property/" is special syntax in itself, or is it a special
case of a more general syntax (like "/.../ blabla;")? Where exactly is
it allowed to appear?
Could someone point me to some documentation explaining/describing this syntax?
Stefan
--
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] 3+ messages in thread[parent not found: <jwvzj05s842.fsf-monnier+INBOX-mXXj517/zsQ@public.gmane.org>]
* Re: How to parse delete-property annotations [not found] ` <jwvzj05s842.fsf-monnier+INBOX-mXXj517/zsQ@public.gmane.org> @ 2015-10-05 23:52 ` Frank Rowand [not found] ` <56130D4A.40602-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Frank Rowand @ 2015-10-05 23:52 UTC (permalink / raw) To: Stefan Monnier; +Cc: devicetree-u79uwXL29TY76Z2rM5mHXA On 9/29/2015 5:54 AM, Stefan Monnier wrote: > [ In the context of Emacs's dts-mode (http://elpa.gnu.org/packages/dts-mode). ] > > I recently came across the following piece of DTS code: > > &usbphy { > /* Unset otg detect pins as we force dr_mode */ > /delete-property/ usb0_id_det-gpio; > /delete-property/ usb0_vbus_det-gpio; > }; > > and was wondering how dts-mode should understand this. `dts-mode' > doesn't try to understand the actual *meaning* of such code, but it does > try to understand the syntax (i.e. how the abstract-syntax-tree would > look like). > > Is "/delete-property/" is special syntax in itself, or is it a special > case of a more general syntax (like "/.../ blabla;")? Where exactly is > it allowed to appear? > Could someone point me to some documentation explaining/describing this syntax? > > > Stefan The best documentation that I know of for this is the lexer source at: https://git.kernel.org/cgit/utils/dtc/dtc.git/tree/dtc-lexer.l The lexer detects tokens for "/delete-property/" and "/delete-node/" at lines 128 - 140. -Frank -- 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] 3+ messages in thread
[parent not found: <56130D4A.40602-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: How to parse delete-property annotations [not found] ` <56130D4A.40602-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2015-10-06 1:00 ` Stefan Monnier 0 siblings, 0 replies; 3+ messages in thread From: Stefan Monnier @ 2015-10-06 1:00 UTC (permalink / raw) To: Frank Rowand; +Cc: devicetree-u79uwXL29TY76Z2rM5mHXA >> Could someone point me to some documentation explaining/describing >> this syntax? [...] > The best documentation that I know of for this is the lexer > source at: Thanks, Stefan -- 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] 3+ messages in thread
end of thread, other threads:[~2015-10-06 1:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-29 12:54 How to parse delete-property annotations Stefan Monnier
[not found] ` <jwvzj05s842.fsf-monnier+INBOX-mXXj517/zsQ@public.gmane.org>
2015-10-05 23:52 ` Frank Rowand
[not found] ` <56130D4A.40602-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-10-06 1:00 ` Stefan Monnier
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.