1 From 4fdbaa5a3dbe761b231c13feaa53242aae3306cc Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Fri, 15 Jan 2021 15:23:02 +0100
4 Subject: [PATCH 1/3] 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>
17 .../mtd/partitions/fixed-partitions.yaml | 33 +------------
18 .../bindings/mtd/partitions/partition.yaml | 47 +++++++++++++++++++
19 2 files changed, 48 insertions(+), 32 deletions(-)
20 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/partition.yaml
22 --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
23 +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
24 @@ -27,38 +27,7 @@ properties:
28 - description: node describing a single flash partition
33 - description: partition's offset and size within the flash
37 - description: The label / name for this partition. If omitted, the label
38 - is taken from the node name (excluding the unit address).
41 - description: This parameter, if present, is a hint that this partition
42 - should only be mounted read-only. This is usually used for flash
43 - partitions containing early-boot firmware images or data which should
48 - description: Do not unlock the partition at initialization time (not
49 - supported on all devices)
53 - description: This parameter, if present, allows one to emulate SLC mode
54 - on a partition attached to an MLC NAND thus making this partition
55 - immune to paired-pages corruptions
60 + $ref: "partition.yaml#"
65 +++ b/Documentation/devicetree/bindings/mtd/partitions/partition.yaml
67 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
70 +$id: http://devicetree.org/schemas/mtd/partitions/partition.yaml#
71 +$schema: http://devicetree.org/meta-schemas/core.yaml#
76 + This binding describes a single flash partition. Each partition must have its
77 + relative offset and size specified. Depending on partition function extra
78 + properties can be used.
81 + - Rafał Miłecki <rafal@milecki.pl>
85 + description: partition's offset and size within the flash
89 + description: The label / name for this partition. If omitted, the label
90 + is taken from the node name (excluding the unit address).
93 + description: This parameter, if present, is a hint that this partition
94 + should only be mounted read-only. This is usually used for flash
95 + partitions containing early-boot firmware images or data which should
100 + description: Do not unlock the partition at initialization time (not
101 + supported on all devices)
105 + description: This parameter, if present, allows one to emulate SLC mode
106 + on a partition attached to an MLC NAND thus making this partition
107 + immune to paired-pages corruptions
113 +additionalProperties: true