Commit 30f138c0 authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Miquel Raynal
Browse files

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: 8baba8d5 ("dt-bindings: mtd: fixed-partitions: Add compression property")
Reviewed-by: default avatarSimon Glass <simon.glass@canonical.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 4db35366
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -29,24 +29,6 @@ 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#
+18 −0
Original line number Diff line number Diff line
@@ -108,6 +108,24 @@ properties:
      with the padding bytes, so may grow. If ‘align-end’ is not provided,
      no alignment is performed.

  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

if:
  not:
    required: [ reg ]