]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: mtd: fixed-partitions: Add compression property
authorSimon Glass <sjg@chromium.org>
Wed, 27 Sep 2023 18:05:43 +0000 (12:05 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 16 Oct 2023 08:50:30 +0000 (10:50 +0200)
Sometimes the contents of a partition are compressed. Add a property to
express this and define the algorithm used.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230927180545.3522628-1-sjg@chromium.org
Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml

index 331e564f29dce9f0d6dc94e66151b204452ac0c1..058253d6d889c2c421a354418aac6d51c27a048f 100644 (file)
@@ -29,6 +29,24 @@ properties:
 
   "#size-cells": true
 
+  compression:
+    $ref: /schemas/types.yaml#/definitions/string
+    description: |
+      Compression algorithm used to store the data in this partition, chosen
+      from a list of well-known algorithms.
+
+      The contents are compressed using this algorithm.
+
+    enum:
+      - none
+      - bzip2
+      - gzip
+      - lzop
+      - lz4
+      - lzma
+      - xz
+      - zstd
+
 patternProperties:
   "@[0-9a-f]+$":
     $ref: partition.yaml#
@@ -64,6 +82,7 @@ examples:
 
         uimage@100000 {
             reg = <0x0100000 0x200000>;
+            compress = "lzma";
         };
     };