Commit 2bdfd4fb authored by Rob Herring's avatar Rob Herring

dt-bindings: Fix erroneous 'additionalProperties'

There's several cases of json-schema 'additionalProperties' at the wrong
indentation level which has the effect of making them DT properties. This
is harmless, but let's fix them so a meta-schema check for this can be
added.

In all the cases, either the 'additionalProperties' was extra or doesn't
work because there's a $ref to more properties. In the latter case, we
can use 'unevaluatedProperties' instead.
Reported-by: default avatarIskren Chernev <iskren.chernev@gmail.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Saravanan Sekar <sravanhome@gmail.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 8b6b8021
...@@ -259,8 +259,6 @@ properties: ...@@ -259,8 +259,6 @@ properties:
additionalProperties: false additionalProperties: false
additionalProperties: false
additionalProperties: false additionalProperties: false
required: required:
......
...@@ -37,7 +37,6 @@ properties: ...@@ -37,7 +37,6 @@ properties:
type: object type: object
additionalProperties: false additionalProperties: false
additionalProperties: false
required: required:
- compatible - compatible
......
...@@ -75,7 +75,8 @@ properties: ...@@ -75,7 +75,8 @@ properties:
description: | description: |
disables over voltage protection of this buck disables over voltage protection of this buck
additionalProperties: false unevaluatedProperties: false
additionalProperties: false additionalProperties: false
required: required:
......
...@@ -35,6 +35,8 @@ patternProperties: ...@@ -35,6 +35,8 @@ patternProperties:
description: description:
should be "ldo1", ..., "ldo7" should be "ldo1", ..., "ldo7"
unevaluatedProperties: false
"^BUCK[1-7]$": "^BUCK[1-7]$":
type: object type: object
allOf: allOf:
...@@ -103,5 +105,7 @@ patternProperties: ...@@ -103,5 +105,7 @@ patternProperties:
required: required:
- regulator-name - regulator-name
additionalProperties: false
unevaluatedProperties: false
additionalProperties: false additionalProperties: false
...@@ -41,6 +41,8 @@ patternProperties: ...@@ -41,6 +41,8 @@ patternProperties:
description: description:
should be "ldo1", ..., "ldo7" should be "ldo1", ..., "ldo7"
unevaluatedProperties: false
"^BUCK[1-8]$": "^BUCK[1-8]$":
type: object type: object
allOf: allOf:
...@@ -99,5 +101,7 @@ patternProperties: ...@@ -99,5 +101,7 @@ patternProperties:
required: required:
- regulator-name - regulator-name
additionalProperties: false
unevaluatedProperties: false
additionalProperties: false additionalProperties: false
...@@ -40,6 +40,8 @@ patternProperties: ...@@ -40,6 +40,8 @@ patternProperties:
description: description:
should be "ldo1", ..., "ldo6" should be "ldo1", ..., "ldo6"
unevaluatedProperties: false
"^BUCK[1-6]$": "^BUCK[1-6]$":
type: object type: object
allOf: allOf:
...@@ -93,5 +95,7 @@ patternProperties: ...@@ -93,5 +95,7 @@ patternProperties:
required: required:
- regulator-name - regulator-name
additionalProperties: false
unevaluatedProperties: false
additionalProperties: false additionalProperties: false
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment