Skip to content

Commit 002d2fe

Browse files
robherringmiquelraynal
authored andcommitted
dt-bindings: mtd: partitions: Define "#{address,size}-cells" in specific schemas
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>
1 parent 9f30ba0 commit 002d2fe

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ properties:
2525
- const: sercomm,sc-partitions
2626
- const: fixed-partitions
2727

28-
"#address-cells": true
28+
"#address-cells":
29+
enum: [ 1, 2 ]
2930

30-
"#size-cells": true
31+
"#size-cells":
32+
enum: [ 1, 2 ]
3133

3234
patternProperties:
3335
"@[0-9a-f]+$":

Documentation/devicetree/bindings/mtd/partitions/partitions.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ oneOf:
2626
properties:
2727
compatible: true
2828

29-
'#address-cells':
30-
enum: [1, 2]
31-
32-
'#size-cells':
33-
enum: [1, 2]
34-
3529
patternProperties:
3630
"^partition(-.+|@[0-9a-f]+)$":
3731
$ref: partition.yaml

Documentation/devicetree/bindings/mtd/partitions/redboot-fis.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ properties:
2828
device. On a flash memory with 32KB eraseblocks, 0 means the first
2929
eraseblock at 0x00000000, 1 means the second eraseblock at 0x00008000 and so on.
3030

31-
'#address-cells': false
32-
33-
'#size-cells': false
34-
3531
required:
3632
- compatible
3733
- fis-index-block

0 commit comments

Comments
 (0)