Skip to content

Commit

Permalink
dt-bindings: mfd: Add missing unevaluatedProperties on child node sch…
Browse files Browse the repository at this point in the history
…emas

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: Rob Herring <[email protected]>
Acked-by: Conor Dooley <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
  • Loading branch information
robherring authored and lag-linaro committed Nov 1, 2023
1 parent fd7a0ec commit 8cdbe51
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Documentation/devicetree/bindings/mfd/maxim,max5970.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ properties:
patternProperties:
"^led@[0-3]$":
$ref: /schemas/leds/common.yaml#
unevaluatedProperties: false
type: object

properties:
reg:
maximum: 3

additionalProperties: false

vss1-supply:
Expand Down
2 changes: 2 additions & 0 deletions Documentation/devicetree/bindings/mfd/mediatek,mt6357.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ properties:
regulators:
type: object
$ref: /schemas/regulator/mediatek,mt6357-regulator.yaml
unevaluatedProperties: false
description:
List of MT6357 BUCKs and LDOs regulators.

Expand All @@ -59,6 +60,7 @@ properties:
keys:
type: object
$ref: /schemas/input/mediatek,pmic-keys.yaml
unevaluatedProperties: false
description:
MT6357 power and home keys.

Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/mfd/rockchip,rk805.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ properties:
"^(DCDC_REG[1-4]|LDO_REG[1-3])$":
type: object
$ref: ../regulator/regulator.yaml#
unevaluatedProperties: false
unevaluatedProperties: false

allOf:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/mfd/rockchip,rk808.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ properties:
"^(DCDC_REG[1-4]|LDO_REG[1-8]|SWITCH_REG[1-2])$":
type: object
$ref: ../regulator/regulator.yaml#
unevaluatedProperties: false
unevaluatedProperties: false

required:
Expand Down
3 changes: 2 additions & 1 deletion Documentation/devicetree/bindings/mfd/rockchip,rk809.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ properties:
patternProperties:
"^(LDO_REG[1-9]|DCDC_REG[1-5]|SWITCH_REG[1-2])$":
type: object
$ref: ../regulator/regulator.yaml#
$ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false
unevaluatedProperties: false

allOf:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/mfd/rockchip,rk818.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ properties:
"^(DCDC_REG[1-4]|DCDC_BOOST|LDO_REG[1-9]|SWITCH_REG|HDMI_SWITCH|OTG_SWITCH)$":
type: object
$ref: ../regulator/regulator.yaml#
unevaluatedProperties: false
unevaluatedProperties: false

required:
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/mfd/ti,lp87524-q1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ properties:
"^buck[0123]$":
type: object
$ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false

required:
- buck0
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/mfd/ti,lp87561-q1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ properties:
buck3210:
type: object
$ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false

required:
- buck3210
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/mfd/ti,lp87565-q1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ properties:
"^buck(10|23)$":
type: object
$ref: /schemas/regulator/regulator.yaml#
unevaluatedProperties: false

required:
- buck10
Expand Down

0 comments on commit 8cdbe51

Please sign in to comment.