Skip to content

Commit 15a4e42

Browse files
robherringsre
authored andcommitted
dt-bindings: power: supply: sbs-manager: 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: Rob Herring <robh@kernel.org> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230926164446.101327-1-robh@kernel.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 8f8e9b7 commit 15a4e42

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/devicetree/bindings/power/supply/sbs,sbs-manager.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ patternProperties:
4747
"^i2c@[1-4]$":
4848
type: object
4949
$ref: /schemas/i2c/i2c-controller.yaml#
50+
unevaluatedProperties: false
51+
52+
properties:
53+
reg:
54+
minimum: 1
55+
maximum: 4
5056

5157
examples:
5258
- |

0 commit comments

Comments
 (0)