1 From ffbbe7d66872ff8957dad2136133e28a1fd5d437 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Mon, 7 Aug 2023 22:51:05 +0100
4 Subject: [PATCH 01/15] dt-bindings: mtd: add basic bindings for UBI
6 Add basic bindings for UBI devices and volumes.
8 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 .../bindings/mtd/partitions/linux,ubi.yaml | 65 +++++++++++++++++++
11 .../bindings/mtd/partitions/ubi-volume.yaml | 35 ++++++++++
12 2 files changed, 100 insertions(+)
13 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
14 create mode 100644 Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
17 +++ b/Documentation/devicetree/bindings/mtd/partitions/linux,ubi.yaml
19 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
22 +$id: http://devicetree.org/schemas/mtd/partitions/linux,ubi.yaml#
23 +$schema: http://devicetree.org/meta-schemas/core.yaml#
25 +title: Unsorted Block Images
28 + UBI ("Unsorted Block Images") is a volume management system for raw
29 + flash devices which manages multiple logical volumes on a single
30 + physical flash device and spreads the I/O load (i.e wear-leveling)
31 + across the whole flash chip.
34 + - Daniel Golle <daniel@makrotopia.org>
37 + - $ref: partition.yaml#
45 + description: UBI Volumes
49 + $ref: /schemas/mtd/partitions/ubi-volume.yaml#
51 + unevaluatedProperties: false
56 +unevaluatedProperties: false
61 + compatible = "fixed-partitions";
62 + #address-cells = <1>;
66 + reg = <0x0 0x100000>;
67 + label = "bootloader";
72 + reg = <0x100000 0x1ff00000>;
74 + compatible = "linux,ubi";
77 + ubi-volume-caldata {
85 +++ b/Documentation/devicetree/bindings/mtd/partitions/ubi-volume.yaml
87 +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
90 +$id: http://devicetree.org/schemas/mtd/partitions/ubi-volume.yaml#
91 +$schema: http://devicetree.org/meta-schemas/core.yaml#
96 + This binding describes a single UBI volume. Volumes can be matches either
97 + by their ID or their name, or both.
100 + - Daniel Golle <daniel@makrotopia.org>
104 + $ref: "/schemas/types.yaml#/definitions/uint32"
106 + Match UBI volume ID
109 + $ref: "/schemas/types.yaml#/definitions/string"
111 + Match UBI volume ID
120 +# This is a generic file other binding inherit from and extend
121 +additionalProperties: true