162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 262306a36Sopenharmony_ci%YAML 1.2 362306a36Sopenharmony_ci--- 462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/mtd/partitions/partition.yaml# 562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 662306a36Sopenharmony_ci 762306a36Sopenharmony_cititle: Partition 862306a36Sopenharmony_ci 962306a36Sopenharmony_cidescription: | 1062306a36Sopenharmony_ci This binding describes a single flash partition. Each partition must have its 1162306a36Sopenharmony_ci relative offset and size specified. Depending on partition function extra 1262306a36Sopenharmony_ci properties can be used. 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci A partition may be dynamically allocated by a specific parser at runtime. 1562306a36Sopenharmony_ci In this specific case, a specific suffix is required to the node name. 1662306a36Sopenharmony_ci Everything after 'partition-' will be used as the partition name to compare 1762306a36Sopenharmony_ci with the one dynamically allocated by the specific parser. 1862306a36Sopenharmony_ci If the partition contains invalid char a label can be provided that will 1962306a36Sopenharmony_ci be used instead of the node name to make the comparison. 2062306a36Sopenharmony_ci This is used to assign an OF node to the dynamiccally allocated partition 2162306a36Sopenharmony_ci so that subsystem like NVMEM can provide an OF node and declare NVMEM cells. 2262306a36Sopenharmony_ci The OF node will be assigned only if the partition label declared match the 2362306a36Sopenharmony_ci one assigned by the parser at runtime. 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_cimaintainers: 2662306a36Sopenharmony_ci - Rafał Miłecki <rafal@milecki.pl> 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_ciproperties: 2962306a36Sopenharmony_ci reg: 3062306a36Sopenharmony_ci description: partition's offset and size within the flash 3162306a36Sopenharmony_ci maxItems: 1 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci label: 3462306a36Sopenharmony_ci description: The label / name for this partition. If omitted, the label 3562306a36Sopenharmony_ci is taken from the node name (excluding the unit address). 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci read-only: 3862306a36Sopenharmony_ci description: This parameter, if present, is a hint that this partition 3962306a36Sopenharmony_ci should only be mounted read-only. This is usually used for flash 4062306a36Sopenharmony_ci partitions containing early-boot firmware images or data which should 4162306a36Sopenharmony_ci not be clobbered. 4262306a36Sopenharmony_ci type: boolean 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci lock: 4562306a36Sopenharmony_ci description: Do not unlock the partition at initialization time (not 4662306a36Sopenharmony_ci supported on all devices) 4762306a36Sopenharmony_ci type: boolean 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci slc-mode: 5062306a36Sopenharmony_ci description: This parameter, if present, allows one to emulate SLC mode 5162306a36Sopenharmony_ci on a partition attached to an MLC NAND thus making this partition 5262306a36Sopenharmony_ci immune to paired-pages corruptions 5362306a36Sopenharmony_ci type: boolean 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ci linux,rootfs: 5662306a36Sopenharmony_ci description: Marks partition that contains root filesystem to mount and boot 5762306a36Sopenharmony_ci user space from 5862306a36Sopenharmony_ci type: boolean 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ciif: 6162306a36Sopenharmony_ci not: 6262306a36Sopenharmony_ci required: [ reg ] 6362306a36Sopenharmony_cithen: 6462306a36Sopenharmony_ci properties: 6562306a36Sopenharmony_ci $nodename: 6662306a36Sopenharmony_ci pattern: '^partition-.*$' 6762306a36Sopenharmony_ci 6862306a36Sopenharmony_ci# This is a generic file other binding inherit from and extend 6962306a36Sopenharmony_ciadditionalProperties: true 70