]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: mtd: fixed-partitions: Restrict undefined properties
authorRob Herring (Arm) <robh@kernel.org>
Wed, 21 Jan 2026 19:56:41 +0000 (13:56 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 22 Jan 2026 14:08:08 +0000 (15:08 +0100)
The fixed-partitions schema allowed undefined properties in order to
avoid warnings when there are nested fixed-partitions.

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>
Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml
Documentation/devicetree/bindings/mtd/partitions/partition.yaml

index 4d79f786fcd540e1c54ca990be0555ef51cc0186..984823108f9c21cfeee27ce79d425a456613cc46 100644 (file)
@@ -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>;
 
index 51fd48af55ecc14c2f5ff436ea59612cd2c2dfaf..2397d97ecac5345d7fb57f43179aad2c17740553 100644 (file)
@@ -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