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

dt-bindings: mtd: fixed-partitions: Restrict undefined properties



The fixed-partitions schema allowed undefined properties in order to
avoid warnings when there are nested fixed-partitions.

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 1eb9fabd
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -39,7 +39,11 @@ required:
  - "#address-cells"
  - "#size-cells"

additionalProperties: true
# fixed-partitions can be nested
allOf:
  - $ref: partition.yaml#

unevaluatedProperties: false

examples:
  - |
@@ -115,7 +119,6 @@ examples:
            compatible = "fixed-partitions";
            label = "calibration";
            reg = <0xf00000 0x100000>;
            ranges = <0 0xf00000 0x100000>;
            #address-cells = <1>;
            #size-cells = <1>;

+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ if:
then:
  properties:
    $nodename:
      pattern: '^partition-.*$'
      pattern: '^partitions?(-.+)?$'

# This is a generic file other binding inherit from and extend
additionalProperties: true