Skip to content

Commit 30f138c

Browse files
robherringmiquelraynal
authored andcommitted
dt-bindings: mtd: fixed-partitions: Move "compression" to partition node
The "compression" property is defined in the wrong place as it applies to individual partitions nodes, not all nodes. Fixes: 8baba8d ("dt-bindings: mtd: fixed-partitions: Add compression property") Reviewed-by: Simon Glass <simon.glass@canonical.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 4db3536 commit 30f138c

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,6 @@ 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-
5032
patternProperties:
5133
"@[0-9a-f]+$":
5234
$ref: partition.yaml#

Documentation/devicetree/bindings/mtd/partitions/partition.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,24 @@ properties:
108108
with the padding bytes, so may grow. If ‘align-end’ is not provided,
109109
no alignment is performed.
110110

111+
compression:
112+
$ref: /schemas/types.yaml#/definitions/string
113+
description: |
114+
Compression algorithm used to store the data in this partition, chosen
115+
from a list of well-known algorithms.
116+
117+
The contents are compressed using this algorithm.
118+
119+
enum:
120+
- none
121+
- bzip2
122+
- gzip
123+
- lzop
124+
- lz4
125+
- lzma
126+
- xz
127+
- zstd
128+
111129
if:
112130
not:
113131
required: [ reg ]

0 commit comments

Comments
 (0)