1 From 6418522022c706fd867b00b2571edba48b8fa8c7 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Thu, 11 Feb 2021 23:04:25 +0100
4 Subject: [PATCH] dt-bindings: mtd: move partition binding to its own file
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Single partition binding is quite common and may be:
10 1. Used by multiple parsers
11 2. Extended for more specific cases
13 Move it to separated file to avoid code duplication.
15 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
16 Reviewed-by: Rob Herring <robh@kernel.org>
17 Signed-off-by: Richard Weinberger <richard@nod.at>
19 .../mtd/partitions/fixed-partitions.yaml | 33 +------------
20 .../bindings/mtd/partitions/partition.yaml | 47 +++++++++++++++++++
21 2 files changed, 48 insertions(+), 32 deletions(-)
22 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/partition.yaml
24 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
25 +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
26 @@ -27,38 +27,7 @@ properties:
30 - description: node describing a single flash partition
35 - description: partition's offset and size within the flash
39 - description: The label / name for this partition. If omitted, the label
40 - is taken from the node name (excluding the unit address).
43 - description: This parameter, if present, is a hint that this partition
44 - should only be mounted read-only. This is usually used for flash
45 - partitions containing early-boot firmware images or data which should
50 - description: Do not unlock the partition at initialization time (not
51 - supported on all devices)
55 - description: This parameter, if present, allows one to emulate SLC mode
56 - on a partition attached to an MLC NAND thus making this partition
57 - immune to paired-pages corruptions
62 + $ref: "partition.yaml#"
67 +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml
69 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
72 +$id: http://devicetree.org/schemas/mtd/partitions/partition.yaml#
73 +$schema: http://devicetree.org/meta-schemas/core.yaml#
78 + This binding describes a single flash partition. Each partition must have its
79 + relative offset and size specified. Depending on partition function extra
80 + properties can be used.
83 + - Rafał Miłecki <rafal@milecki.pl>
87 + description: partition's offset and size within the flash
91 + description: The label / name for this partition. If omitted, the label
92 + is taken from the node name (excluding the unit address).
95 + description: This parameter, if present, is a hint that this partition
96 + should only be mounted read-only. This is usually used for flash
97 + partitions containing early-boot firmware images or data which should
102 + description: Do not unlock the partition at initialization time (not
103 + supported on all devices)
107 + description: This parameter, if present, allows one to emulate SLC mode
108 + on a partition attached to an MLC NAND thus making this partition
109 + immune to paired-pages corruptions
115 +additionalProperties: true