How to put comments in device tree source files

mdsingh picture mdsingh · Feb 19, 2014 · Viewed 12.2k times · Source

How do i put multiline or single line comments in device tree source files. I couldn't find it anywhere. Does the default c way of using comments work?

Answer

sawdust picture sawdust · Feb 19, 2014

Does the default c way of using comments work?

Yes, use /* comment */.


ADDENDUM

I've also used C preprocessor #if 0 and #endif directives to quickly disable (or enable) multiple lines of a node during testing.
I have not seen any conditional directives in DT files elsewhere, so such use may be frowned upon.