:orphan:
.. raw:: html
.. dtcompatible:: fixed-subpartitions
.. _dtbinding_fixed_subpartitions:
fixed-subpartitions
###################
Vendor: :ref:`Generic or vendor-independent `
Description
***********
.. code-block:: none
Fixed subpartitions of a flash (or other nonvolatile storage) memory.
Here is an example:
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
slot0_partition: partition@10000 {
compatible = "fixed-subpartitions";
label = "image-0";
reg = <0x00010000 0x70000>;
ranges = <0x0 0x10000 0x70000>;
#address-cells = <1>;
#size-cells = <1>;
slot0_s_partition: partition@0 {
label = "image-0-secure";
reg = <0x00000000 0x40000>;
};
slot0_ns_partition: partition@40000 {
label = "image-0-nonsecure";
reg = <0x00040000 0x30000>;
};
};
};
};
Properties
**********
Top level properties
====================
These property descriptions apply to "fixed-subpartitions"
nodes themselves. This page also describes child node
properties in the following sections.
.. tabs::
.. group-tab:: Node specific properties
Properties not inherited from the base binding file.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``read-only``
- ``boolean``
- .. code-block:: none
set this property if the partition is read-only
.. group-tab:: Deprecated node specific properties
Deprecated properties not inherited from the base binding file.
(None)
.. group-tab:: Base properties
Properties inherited from the base binding file, which defines
common properties that may be set on many nodes. Not all of these
may apply to the "fixed-subpartitions" compatible.
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``label``
- ``string``
- .. code-block:: none
Human readable string describing the flash partition.
See :ref:`zephyr:dt-important-props` for more information.
* - ``reg``
- ``array``
- .. code-block:: none
This should be in the format , where OFFSET
is the offset of the flash partition relative to the base
address of the parent memory, and SIZE is the size of
the partition in bytes.
This property is **required**.
See :ref:`zephyr:dt-important-props` for more information.
* - ``#address-cells``
- ``int``
- .. code-block:: none
Number of cells required to represent a child node's
reg property address. This must be large enough to
represent the start offset of each partition.
* - ``#size-cells``
- ``int``
- .. code-block:: none
Number of cells required to represent a child node's
reg property address. This must be large enough to
represent the size of each partition in bytes.
Child node properties
=====================
.. list-table::
:widths: 1 1 4
:header-rows: 1
* - Name
- Type
- Details
* - ``label``
- ``string``
- .. code-block:: none
Human readable string describing the flash partition.
See :ref:`zephyr:dt-important-props` for more information.
* - ``read-only``
- ``boolean``
- .. code-block:: none
set this property if the partition is read-only
* - ``reg``
- ``array``
- .. code-block:: none
This should be in the format , where OFFSET
is the offset of the flash partition relative to the base
address of the parent memory, and SIZE is the size of
the partition in bytes.
This property is **required**.
See :ref:`zephyr:dt-important-props` for more information.