Skip to content

Commit 6ecd771

Browse files
robherringmiquelraynal
authored andcommitted
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: 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 1eb9fab commit 6ecd771

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ required:
3939
- "#address-cells"
4040
- "#size-cells"
4141

42-
additionalProperties: true
42+
# fixed-partitions can be nested
43+
allOf:
44+
- $ref: partition.yaml#
45+
46+
unevaluatedProperties: false
4347

4448
examples:
4549
- |
@@ -115,7 +119,6 @@ examples:
115119
compatible = "fixed-partitions";
116120
label = "calibration";
117121
reg = <0xf00000 0x100000>;
118-
ranges = <0 0xf00000 0x100000>;
119122
#address-cells = <1>;
120123
#size-cells = <1>;
121124

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ if:
144144
then:
145145
properties:
146146
$nodename:
147-
pattern: '^partition-.*$'
147+
pattern: '^partitions?(-.+)?$'
148148

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

0 commit comments

Comments
 (0)