0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mtd/partitions/partition.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Partition
0008
0009 description: |
0010 This binding describes a single flash partition. Each partition must have its
0011 relative offset and size specified. Depending on partition function extra
0012 properties can be used.
0013
0014 A partition may be dynamically allocated by a specific parser at runtime.
0015 In this specific case, a specific suffix is required to the node name.
0016 Everything after 'partition-' will be used as the partition name to compare
0017 with the one dynamically allocated by the specific parser.
0018 If the partition contains invalid char a label can be provided that will
0019 be used instead of the node name to make the comparison.
0020 This is used to assign an OF node to the dynamiccally allocated partition
0021 so that subsystem like NVMEM can provide an OF node and declare NVMEM cells.
0022 The OF node will be assigned only if the partition label declared match the
0023 one assigned by the parser at runtime.
0024
0025 maintainers:
0026 - Rafał Miłecki <rafal@milecki.pl>
0027
0028 properties:
0029 reg:
0030 description: partition's offset and size within the flash
0031 maxItems: 1
0032
0033 label:
0034 description: The label / name for this partition. If omitted, the label
0035 is taken from the node name (excluding the unit address).
0036
0037 read-only:
0038 description: This parameter, if present, is a hint that this partition
0039 should only be mounted read-only. This is usually used for flash
0040 partitions containing early-boot firmware images or data which should
0041 not be clobbered.
0042 type: boolean
0043
0044 lock:
0045 description: Do not unlock the partition at initialization time (not
0046 supported on all devices)
0047 type: boolean
0048
0049 slc-mode:
0050 description: This parameter, if present, allows one to emulate SLC mode
0051 on a partition attached to an MLC NAND thus making this partition
0052 immune to paired-pages corruptions
0053 type: boolean
0054
0055 if:
0056 not:
0057 required: [ reg ]
0058 then:
0059 properties:
0060 $nodename:
0061 pattern: '^partition-.*$'
0062
0063 additionalProperties: true