doc: dts: Use definition list for compatible/label/ref

See https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html.
Gives neater output compared to a bullet list.

Also tweak the text a bit.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
Ulf Magnusson 2020-01-09 05:24:52 +01:00 committed by Anas Nashif
commit d3bdb67cd7

View file

@ -129,13 +129,16 @@ a gray background, except for the root node, which is shown using its path
Some important properties are: Some important properties are:
- **compatible**: this says what "kind" of device the node represents. Its compatible
value is a null-terminated string in the format "vendor,device", like Says what kind of device the node represents. The value is a
``"avago,apds9960"``, or a sequence of these, like ``"ti,hdc", string in the format "vendor,device", like ``"avago,apds9960"``, or a
"ti,hdc1010"``. The build system uses the compatible property to find the sequence of these, like ``"ti,hdc", "ti,hdc1010"``. The build system uses
right bindings for the node. the compatible property to find the right :ref:`binding <bindings>` for the
- **label**: the device's name according to Zephyr's :ref:`device_drivers`. The node.
value can be passed to :c:func:`device_get_binding()` to retrieve the
label
The device's name according to Zephyr's :ref:`device_drivers`. The value
can be passed to :c:func:`device_get_binding()` to retrieve the
corresponding driver-level :ref:`struct device* <device_struct>`. This corresponding driver-level :ref:`struct device* <device_struct>`. This
pointer can then be passed to the correct driver API by application code to pointer can then be passed to the correct driver API by application code to
interact with the device. For example, calling interact with the device. For example, calling
@ -143,11 +146,13 @@ Some important properties are:
structure which could be passed to :ref:`I2C API <i2c_api>` functions like structure which could be passed to :ref:`I2C API <i2c_api>` functions like
:c:func:`i2c_transfer()`. The generated C header will also contain a macro :c:func:`i2c_transfer()`. The generated C header will also contain a macro
which expands to this string. which expands to this string.
- **reg**: information used to address the device. This could be a
memory-mapped I/O address range (as with ``i2c@40003000``\ 's reg property), reg
an I2C bus address (as with ``apds9960@39`` and its devicetree siblings), a Information used to address the device. This could be a memory-mapped I/O
SPI chip select line, or some other value depending on the kind of device the address range (as with ``i2c@40003000``\ 's reg property), an I2C bus
node represents. address (as with ``apds9960@39`` and its devicetree siblings), a SPI chip
select line, or some other value depending on the kind of device the node
represents.
This tree has the following DTS. This tree has the following DTS.