* [PATCH v3] dt-bindings: mtd: fixed-partitions: Add compression property
@ 2023-09-27 16:46 Simon Glass
0 siblings, 0 replies; only message in thread
From: Simon Glass @ 2023-09-27 16:46 UTC (permalink / raw)
To: devicetree
Cc: U-Boot Mailing List, Tom Rini, Rob Herring, linux-mtd,
Simon Glass, Conor Dooley, Krzysztof Kozlowski, Miquel Raynal,
Nick Terrell, Rafał Miłecki, Richard Weinberger,
Rob Herring, Vignesh Raghavendra, linux-kernel
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>
---
Changes in v3:
- Just add a compression property for now
Changes in v2:
- Use "binman" for compatible instead of "u-boot,binman"
- Significantly rework the patch
- Use make dt_binding_check DT_SCHEMA_FILES=Documentation/../partitions
.../mtd/partitions/fixed-partitions.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
index 331e564f29dc..13ff313cabda 100644
--- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
+++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
@@ -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#
--
2.42.0.515.g380fc7ccd1-goog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-27 16:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-27 16:46 [PATCH v3] dt-bindings: mtd: fixed-partitions: Add compression property Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).