Skip to content

Commit 2697c66

Browse files
RedaMaherrobherring
authored andcommitted
Fixing some typos and adding missing dots, commas, and hyphens
Signed-off-by: Reda Maher <eng.redamaher@gmail.com>
1 parent bbb6c79 commit 2697c66

4 files changed

+29
-29
lines changed

source/chapter2-devicetree-basics.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ of its scan, for passing to the Operating System.
5050
:numref:`example-simple-devicetree` shows an example representation of a
5151
simple devicetree that is nearly
5252
complete enough to boot a simple operating system, with the platform
53-
type, CPU, memory and a single UART described. Device nodes are shown
53+
type, CPU, memory, and a single UART described. Device nodes are shown
5454
with properties and values inside each node.
5555

5656
.. _example-simple-devicetree:
@@ -488,7 +488,7 @@ Description:
488488
The *compatible* property value consists of one or more strings that
489489
define the specific programming model for the device. This list of
490490
strings should be used by a client program for device driver selection.
491-
The property value consists of a concatenated list of null terminated
491+
The property value consists of a concatenated list of null-terminated
492492
strings, from most specific to most general. They allow a device to
493493
express its compatibility with a family of similar devices, potentially
494494
allowing a single device driver to match against several devices.
@@ -498,7 +498,7 @@ Description:
498498
(such as a stock ticker symbol), and ``model`` specifies the model
499499
number.
500500

501-
The compatible string should consist only of lowercase letters, digits and
501+
The compatible string should consist only of lowercase letters, digits, and
502502
dashes, and should start with a letter. A single comma is typically only
503503
used following a vendor prefix. Underscores should not be used.
504504

source/chapter3-devicenodes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ specifies the alias name. The property value specifies the full path to
8181
a node in the devicetree. For example, the property serial0 =
8282
``"/simple-bus@fe000000/serial@llc500"`` defines the alias ``serial0``.
8383

84-
Alias names shall be a lowercase text strings of 1 to 31 characters from
84+
Alias names shall be lowercase text strings of 1 to 31 characters from
8585
the following set of characters.
8686

8787
.. tabularcolumns:: | c p{8cm} |
@@ -582,7 +582,7 @@ standard properties with specific applicable detail.
582582
If a CPU/thread cannot be the target of an
583583
external interrupt, then *reg* must be unique
584584
and out of bounds of the range addressed by
585-
the interrupt controller
585+
the interrupt controller.
586586

587587
If a CPU/thread's PIR (pending interrupt register)
588588
is modifiable, a client
@@ -811,12 +811,12 @@ The following properties of a cpu node describe the processor’s internal
811811
(combined instructions and data).
812812
``cache-sets`` SD ``<u32>`` Specifies the number of associativity sets in
813813
a unified cache. Required if the cache is
814-
unified (combined instructions and data)
814+
unified (combined instructions and data).
815815
``cache-block-size`` SD ``<u32>`` Specifies the block size in bytes of a unified
816816
cache. Required if the processor has a unified
817-
cache (combined instructions and data)
817+
cache (combined instructions and data).
818818
``cache-line-size`` SD ``<u32>`` Specifies the line size in bytes of a unified
819-
cache, if different than the cache block size
819+
cache, if different than the cache block size.
820820
Required if the processor has a unified cache
821821
(combined instructions and data).
822822
``i-cache-size`` SD ``<u32>`` Specifies the size in bytes of the instruction

source/chapter4-device-bindings.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ types and classes of devices are represented in the devicetree. The
1010
compatible property of a device node describes the specific binding (or
1111
bindings) to which the node complies.
1212

13-
Bindings may be defined as extensions of other each. For example a new
13+
Bindings may be defined as extensions of each other. For example, a new
1414
bus type could be defined as an extension of the simple-bus binding. In
1515
this case, the compatible property would contain several strings
1616
identifying each binding—from the most specific to the most general (see
@@ -75,10 +75,10 @@ here to facilitate standardization of names and usage.
7575
``<prop-encoded-array>`` in one of two forms:
7676

7777
a 32-bit integer consisting of one ``<u32>`` specifying the
78-
frequency
78+
frequency.
7979

8080
a 64-bit integer represented as a ``<u64>`` specifying the
81-
frequency
81+
frequency.
8282
=========== ==============================================================
8383

8484
``reg-shift`` Property
@@ -115,7 +115,7 @@ here to facilitate standardization of names and usage.
115115
Property ``label``
116116
=========== ==============================================================
117117
Value type ``<string>``
118-
Description The label property defines a human readable string describing
118+
Description The label property defines a human-readable string describing
119119
a device. The binding for a given device specifies the exact
120120
meaning of the property for that device.
121121
=========== ==============================================================
@@ -126,10 +126,10 @@ Serial devices
126126
Serial Class Binding
127127
~~~~~~~~~~~~~~~~~~~~
128128

129-
The class of serial devices consists of various types of point to point
129+
The class of serial devices consists of various types of point-to-point
130130
serial line devices. Examples of serial line devices include the 8250
131-
UART, 16550 UART, HDLC device, and BISYNC device. In most cases hardware
132-
compatible with the RS-232 standard fit into the serial device class.
131+
UART, 16550 UART, HDLC device, and BISYNC device. In most cases, hardware
132+
compatible with the RS-232 standard fits into the serial device class.
133133

134134
I\ :sup:`2`\ C and SPI (Serial Peripheral Interface) devices shall not
135135
be represented as serial port devices because they have their own
@@ -181,12 +181,12 @@ the devicetree using following properties.
181181
======================= ===== ===================== ===============================================
182182
``compatible`` R <string list> Value shall include "ns16550".
183183
``clock-frequency`` R ``<u32>`` Specifies the frequency (in Hz) of the baud
184-
rate generator’s input clock
184+
rate generator’s input clock.
185185
``current-speed`` OR ``<u32>`` Specifies current serial device speed in bits
186-
per second
186+
per second.
187187
``reg`` R ``<prop encoded Specifies the physical address of the
188188
array>`` registers device within the address space of
189-
the parent bus
189+
the parent bus.
190190
``interrupts`` OR ``<prop encoded Specifies the interrupts generated by this
191191
array>`` device. The value of the interrupts property
192192
consists of one or more interrupt specifiers.
@@ -248,7 +248,7 @@ Network Class Binding
248248
=========== ==============================================================
249249
Property ``local-mac-address``
250250
=========== ==============================================================
251-
Value type ``<prop-encoded-array>`` encoded as an array of hex numbers
251+
Value type ``<prop-encoded-array>`` encoded as an array of hex numbers.
252252
Description Specifies MAC address that was assigned to the network device
253253
described by the node containing this property.
254254
Example ``local-mac-address = [ 00 00 12 34 56 78 ];``
@@ -263,7 +263,7 @@ Network Class Binding
263263
=========== ==============================================================
264264
Property ``mac-address``
265265
=========== ==============================================================
266-
Value type ``<prop-encoded-array>`` encoded as an array of hex numbers
266+
Value type ``<prop-encoded-array>`` encoded as an array of hex numbers.
267267
Description Specifies the MAC address that was last used by the boot
268268
program. This property should be used in cases where the MAC
269269
address assigned to the device by the boot program is
@@ -368,8 +368,8 @@ the network device class.
368368
Value type ``<phandle>``
369369
Description Specifies a reference to a node representing a physical layer
370370
(PHY) device connected to this Ethernet device. This property
371-
is required in case where the Ethernet device is connected a
372-
physical layer device.
371+
is required in case where the Ethernet device is connected to
372+
a physical layer device.
373373
Example ``phy-handle = <&PHY0>;``
374374
=========== ==============================================================
375375

@@ -402,11 +402,11 @@ specifiers:
402402
======================== ===== ===================== ===============================================
403403
Property Name Usage Value Type Definition
404404
======================== ===== ===================== ===============================================
405-
``compatible`` R ``<string>`` Value shall include ``"open-pic"``
405+
``compatible`` R ``<string>`` Value shall include ``"open-pic"``.
406406
``reg`` R ``<prop encoded Specifies the physical address of the
407407
array>`` registers device within the address space of
408-
the parent bus
409-
``interrupt-controller`` R ``<empty>`` Specifies that this node is an interrupt controller
408+
the parent bus.
409+
``interrupt-controller`` R ``<empty>`` Specifies that this node is an interrupt controller.
410410
``#interrupt-cells`` R ``<u32>`` Shall be 2.
411411
``#address-cells`` R ``<u32>`` Shall be 0.
412412
Usage legend: R=Required, O=Optional, OR=Optional but Recommended, SD=See Definition

source/chapter5-flattened-format.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Flattened Devicetree (DTB) Format
66
==================================
77

88
The Devicetree Blob (DTB) format is a flat binary encoding of devicetree data.
9-
It used to exchange devicetree data between software programs.
9+
It is used to exchange devicetree data between software programs.
1010
For example, when booting an operating system, firmware will pass a DTB to the OS kernel.
1111

1212
.. note::
@@ -60,10 +60,10 @@ the original definition of the format. Fields in the header give the version,
6060
so that the client program can determine if the devicetree is encoded in a
6161
compatible format.
6262

63-
This document describes only version 17 of the format. |spec| compliant boot
63+
This document describes only version 17 of the format. |spec|-compliant boot
6464
programs shall provide a devicetree of version 17 or later, and should provide
6565
a devicetree of a version that is backwards compatible with version 16.
66-
|spec| compliant client programs shall accept devicetrees of any version
66+
|spec|-compliant client programs shall accept devicetrees of any version
6767
backwards compatible with version 17 and may accept other versions as well.
6868

6969
.. note:: The version is with respect to the binary structure of the device
@@ -408,7 +408,7 @@ shall have aligned offsets from the beginning of the devicetree blob.
408408
To ensure the in-memory alignment of the blocks, it is sufficient to
409409
ensure that the devicetree as a whole is loaded at an address aligned
410410
to the largest alignment of any of the subblocks, that is, to an 8-byte
411-
boundary. A |spec| compliant boot
411+
boundary. A |spec|-compliant boot
412412
program shall load the devicetree blob at such an aligned address
413413
before passing it to the client program. If an |spec| client program
414414
relocates the devicetree blob in memory, it should only do so to

0 commit comments

Comments
 (0)