xref: /freebsd/sys/contrib/device-tree/Bindings/mtd/partitions/partition.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mtd/partitions/partition.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Partition
8
9description: |
10  This binding describes a single flash partition. Each partition must have its
11  relative offset and size specified. Depending on partition function extra
12  properties can be used.
13
14maintainers:
15  - Rafał Miłecki <rafal@milecki.pl>
16
17properties:
18  reg:
19    description: partition's offset and size within the flash
20    maxItems: 1
21
22  label:
23    description: The label / name for this partition. If omitted, the label
24      is taken from the node name (excluding the unit address).
25
26  read-only:
27    description: This parameter, if present, is a hint that this partition
28      should only be mounted read-only. This is usually used for flash
29      partitions containing early-boot firmware images or data which should
30      not be clobbered.
31    type: boolean
32
33  lock:
34    description: Do not unlock the partition at initialization time (not
35      supported on all devices)
36    type: boolean
37
38  slc-mode:
39    description: This parameter, if present, allows one to emulate SLC mode
40      on a partition attached to an MLC NAND thus making this partition
41      immune to paired-pages corruptions
42    type: boolean
43
44required:
45  - reg
46
47additionalProperties: true
48