Skip to content

Commit 8baba8d

Browse files
sjg20miquelraynal
authored andcommitted
dt-bindings: mtd: fixed-partitions: Add compression property
Sometimes the contents of a partition are compressed. Add a property to express this and define the algorithm used. Signed-off-by: Simon Glass <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 0339f62 commit 8baba8d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,24 @@ properties:
2929

3030
"#size-cells": true
3131

32+
compression:
33+
$ref: /schemas/types.yaml#/definitions/string
34+
description: |
35+
Compression algorithm used to store the data in this partition, chosen
36+
from a list of well-known algorithms.
37+
38+
The contents are compressed using this algorithm.
39+
40+
enum:
41+
- none
42+
- bzip2
43+
- gzip
44+
- lzop
45+
- lz4
46+
- lzma
47+
- xz
48+
- zstd
49+
3250
patternProperties:
3351
"@[0-9a-f]+$":
3452
$ref: partition.yaml#
@@ -64,6 +82,7 @@ examples:
6482
6583
uimage@100000 {
6684
reg = <0x0100000 0x200000>;
85+
compress = "lzma";
6786
};
6887
};
6988

0 commit comments

Comments
 (0)