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

dt-bindings: mtd: partitions: Move "sercomm,scpart-id" to partition.yaml



Defining child node properties specific to the parent schema doesn't work
unless all the child node properties are known. They aren't known because
any partition can define its own properties. The solution to this is
typically something like spi-peripheral-props.yaml, but that's overkill for
this single property. Just move it to partition.yaml instead.

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 30f138c0
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -33,16 +33,6 @@ patternProperties:
  "@[0-9a-f]+$":
    $ref: partition.yaml#

    properties:
      sercomm,scpart-id:
        description: Partition id in Sercomm partition map. Mtd parser
          uses this id to find a record in the partition map containing
          offset and size of the current partition. The values from
          partition map overrides partition offset and size defined in
          reg property of the dts. Frequently these values are the same,
          but may differ if device has bad eraseblocks on a flash.
        $ref: /schemas/types.yaml#/definitions/uint32

required:
  - "#address-cells"
  - "#size-cells"
+9 −0
Original line number Diff line number Diff line
@@ -126,6 +126,15 @@ properties:
      - xz
      - zstd

  sercomm,scpart-id:
    description: Partition id in Sercomm partition map. Mtd parser
      uses this id to find a record in the partition map containing
      offset and size of the current partition. The values from
      partition map overrides partition offset and size defined in
      reg property of the dts. Frequently these values are the same,
      but may differ if device has bad eraseblocks on a flash.
    $ref: /schemas/types.yaml#/definitions/uint32

if:
  not:
    required: [ reg ]