devicetree-spec.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] Clarify language on /memreserve/
@ 2020-09-15 17:04 Grant Likely
       [not found] ` <20200915170455.32520-1-grant.likely-5wv7dgnIgG8@public.gmane.org>
  0 siblings, 1 reply; 11+ messages in thread
From: Grant Likely @ 2020-09-15 17:04 UTC (permalink / raw)
  To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA
  Cc: nd-5wv7dgnIgG8, Ard Biesheuvel, Leif Lindholm, Grant Likely,
	Heinrich Schuchardt

The language was ambiguous. Rephrase and reformat to be more readable.

Co-authored-by: Heinrich Schuchardt <xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
Signed-off-by: Grant Likely <grant.likely-5wv7dgnIgG8@public.gmane.org>
Cc: Heinrich Schuchardt <xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
---
 source/chapter6-source-language.rst | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/source/chapter6-source-language.rst b/source/chapter6-source-language.rst
index ed4e234..295fcd6 100755
--- a/source/chapter6-source-language.rst
+++ b/source/chapter6-source-language.rst
@@ -233,15 +233,23 @@ File layout
             [child nodes]
         };
 
-The /dts-v1/; shall be present to identify the file as a version 1 DTS
+``/dts-v1/;`` shall be present to identify the file as a version 1 DTS
 (dts files without this tag will be treated by dtc as being in the
 obsolete version 0, which uses a different format for integers in
 addition to other small but incompatible changes).
 
-Memory reservations define an entry for the devicetree blob’s memory
-reservation table. They have the form: e.g., /memreserve/ <address>
-<length>; Where <address> and <length> are 64-bit C-style integers.
+Memory reservations (see section :ref:`sect-fdt-memory-reservation-block`)
+are represented by lines in the form::
 
-*  The / { }; section defines the root node of the devicetree.
+   /memreserve/ <address> <length>;
 
-*  C style (/* ... \*/) and C++ style (//) comments are supported.
+Where ``<address>`` and ``<length>`` are 64-bit C-style integers, e.g.,
+
+.. code-block:: dts
+
+   /memreserve/ 0x10000000 0x0004000;
+
+The ``/ { ... };`` section defines the root node of the devicetree, and
+all the device tree data is contained within it.
+
+C style (``/* ... \*/``) and C++ style (``//``) comments are supported.
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-09-17  9:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-15 17:04 [PATCH 1/3] Clarify language on /memreserve/ Grant Likely
     [not found] ` <20200915170455.32520-1-grant.likely-5wv7dgnIgG8@public.gmane.org>
2020-09-15 17:04   ` [PATCH 2/3] Import /reserved-memory specification text Grant Likely
     [not found]     ` <20200915170455.32520-2-grant.likely-5wv7dgnIgG8@public.gmane.org>
2020-09-16 16:11       ` Rob Herring
     [not found]         ` <CAL_JsqKLV+R2YAXOZuPYnMR8Wji4_PkiH+r+Fki59r436SqnEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-09-16 16:20           ` Grant Likely
2020-09-17  9:00       ` Grant Likely
     [not found]         ` <17b980e5-97e7-8afa-3d51-c462f2fe91ff-5wv7dgnIgG8@public.gmane.org>
2020-09-17  9:09           ` Thierry Reding
2020-09-15 17:04   ` [PATCH 3/3] Add details of UEFI interaction with /memory and /reserved-memory Grant Likely
     [not found]     ` <20200915170455.32520-3-grant.likely-5wv7dgnIgG8@public.gmane.org>
2020-09-15 17:09       ` Ard Biesheuvel
     [not found]         ` <CAMj1kXGQTbU5uxPSsePxDTZrdeAvOf8Ev0iNmAHDcAoP_SYdHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2020-09-15 17:11           ` Grant Likely
2020-09-15 20:45   ` [PATCH 1/3] Clarify language on /memreserve/ Heinrich Schuchardt
     [not found]     ` <389c3f6b-dc39-2b12-ebd4-034dc274e2f6-Mmb7MZpHnFY@public.gmane.org>
2020-09-16 16:27       ` Grant Likely

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).