Skip to content

Commit 9ea13d9

Browse files
robherringmiquelraynal
authored andcommitted
dt-bindings: mtd: physmap: Ensure all properties are defined
Device specific schemas should not allow undefined properties which is what 'additionalProperties: true' allows. Add the missing 'ranges' property, and fix this constraint. Signed-off-by: Rob Herring (Arm) <[email protected]> Acked-by: Conor Dooley <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 2014c95 commit 9ea13d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/devicetree/bindings/mtd/mtd-physmap.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ properties:
122122
'#size-cells':
123123
const: 1
124124

125+
ranges: true
126+
125127
big-endian: true
126128
little-endian: true
127129

@@ -143,8 +145,7 @@ then:
143145
required:
144146
- syscon
145147

146-
# FIXME: A parent bus may define timing properties
147-
additionalProperties: true
148+
unevaluatedProperties: false
148149

149150
examples:
150151
- |

0 commit comments

Comments
 (0)