Commit 8cdbe51c authored by Rob Herring's avatar Rob Herring Committed by Lee Jones

dt-bindings: mfd: Add missing unevaluatedProperties on child node schemas

Just as unevaluatedProperties or additionalProperties are required at
the top level of schemas, they should (and will) also be required for
child node schemas. That ensures only documented properties are
present for any node.

Add unevaluatedProperties as needed, and then add any missing properties
flagged by the addition.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230925212729.1976117-1-robh@kernel.orgSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent fd7a0ecf
...@@ -45,8 +45,13 @@ properties: ...@@ -45,8 +45,13 @@ properties:
patternProperties: patternProperties:
"^led@[0-3]$": "^led@[0-3]$":
$ref: /schemas/leds/common.yaml# $ref: /schemas/leds/common.yaml#
unevaluatedProperties: false
type: object type: object
properties:
reg:
maximum: 3
additionalProperties: false additionalProperties: false
vss1-supply: vss1-supply:
......
...@@ -40,6 +40,7 @@ properties: ...@@ -40,6 +40,7 @@ properties:
regulators: regulators:
type: object type: object
$ref: /schemas/regulator/mediatek,mt6357-regulator.yaml $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml
unevaluatedProperties: false
description: description:
List of MT6357 BUCKs and LDOs regulators. List of MT6357 BUCKs and LDOs regulators.
...@@ -59,6 +60,7 @@ properties: ...@@ -59,6 +60,7 @@ properties:
keys: keys:
type: object type: object
$ref: /schemas/input/mediatek,pmic-keys.yaml $ref: /schemas/input/mediatek,pmic-keys.yaml
unevaluatedProperties: false
description: description:
MT6357 power and home keys. MT6357 power and home keys.
......
...@@ -80,6 +80,7 @@ properties: ...@@ -80,6 +80,7 @@ properties:
"^(DCDC_REG[1-4]|LDO_REG[1-3])$": "^(DCDC_REG[1-4]|LDO_REG[1-3])$":
type: object type: object
$ref: ../regulator/regulator.yaml# $ref: ../regulator/regulator.yaml#
unevaluatedProperties: false
unevaluatedProperties: false unevaluatedProperties: false
allOf: allOf:
......
...@@ -107,6 +107,7 @@ properties: ...@@ -107,6 +107,7 @@ properties:
"^(DCDC_REG[1-4]|LDO_REG[1-8]|SWITCH_REG[1-2])$": "^(DCDC_REG[1-4]|LDO_REG[1-8]|SWITCH_REG[1-2])$":
type: object type: object
$ref: ../regulator/regulator.yaml# $ref: ../regulator/regulator.yaml#
unevaluatedProperties: false
unevaluatedProperties: false unevaluatedProperties: false
required: required:
......
...@@ -86,7 +86,8 @@ properties: ...@@ -86,7 +86,8 @@ properties:
patternProperties: patternProperties:
"^(LDO_REG[1-9]|DCDC_REG[1-5]|SWITCH_REG[1-2])$": "^(LDO_REG[1-9]|DCDC_REG[1-5]|SWITCH_REG[1-2])$":
type: object type: object
$ref: ../regulator/regulator.yaml# $ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false
unevaluatedProperties: false unevaluatedProperties: false
allOf: allOf:
......
...@@ -99,6 +99,7 @@ properties: ...@@ -99,6 +99,7 @@ properties:
"^(DCDC_REG[1-4]|DCDC_BOOST|LDO_REG[1-9]|SWITCH_REG|HDMI_SWITCH|OTG_SWITCH)$": "^(DCDC_REG[1-4]|DCDC_BOOST|LDO_REG[1-9]|SWITCH_REG|HDMI_SWITCH|OTG_SWITCH)$":
type: object type: object
$ref: ../regulator/regulator.yaml# $ref: ../regulator/regulator.yaml#
unevaluatedProperties: false
unevaluatedProperties: false unevaluatedProperties: false
required: required:
......
...@@ -37,6 +37,7 @@ properties: ...@@ -37,6 +37,7 @@ properties:
"^buck[0123]$": "^buck[0123]$":
type: object type: object
$ref: /schemas/regulator/regulator.yaml# $ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false
required: required:
- buck0 - buck0
......
...@@ -41,6 +41,7 @@ properties: ...@@ -41,6 +41,7 @@ properties:
buck3210: buck3210:
type: object type: object
$ref: /schemas/regulator/regulator.yaml# $ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false
required: required:
- buck3210 - buck3210
......
...@@ -47,6 +47,7 @@ properties: ...@@ -47,6 +47,7 @@ properties:
"^buck(10|23)$": "^buck(10|23)$":
type: object type: object
$ref: /schemas/regulator/regulator.yaml# $ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false
required: required:
- buck10 - buck10
......
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