]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: mtd: partitions: Define "#{address,size}-cells" in specific schemas
authorRob Herring (Arm) <robh@kernel.org>
Wed, 21 Jan 2026 19:56:38 +0000 (13:56 -0600)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 22 Jan 2026 14:08:08 +0000 (15:08 +0100)
Whether "#address-cells" and "#size-cells" are used or not depends on
the specific partition type, so drop them from partitions.yaml and
define them in the specific partition schemas as needed.

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

index b504d4376d0b6ba73dcd61db918fcf8120ca036c..26bef777353d6555677e109887c5c70d66489aeb 100644 (file)
@@ -25,9 +25,11 @@ properties:
           - const: sercomm,sc-partitions
           - const: fixed-partitions
 
-  "#address-cells": true
+  "#address-cells":
+    enum: [ 1, 2 ]
 
-  "#size-cells": true
+  "#size-cells":
+    enum: [ 1, 2 ]
 
 patternProperties:
   "@[0-9a-f]+$":
index 1dda2c80747bd72d46a33bd9fd550627b63c0c2c..76199506d690d761dcf175e40314f98b3692995e 100644 (file)
@@ -26,12 +26,6 @@ oneOf:
 properties:
   compatible: true
 
-  '#address-cells':
-    enum: [1, 2]
-
-  '#size-cells':
-    enum: [1, 2]
-
 patternProperties:
   "^partition(-.+|@[0-9a-f]+)$":
     $ref: partition.yaml
index ba7445cd69e8f49e6d78085403b36ee761928d66..ba627f51840b8fb9c161b54712e98b6d42790c67 100644 (file)
@@ -28,10 +28,6 @@ properties:
       device. On a flash memory with 32KB eraseblocks, 0 means the first
       eraseblock at 0x00000000, 1 means the second eraseblock at 0x00008000 and so on.
 
-  '#address-cells': false
-
-  '#size-cells': false
-
 required:
   - compatible
   - fis-index-block