]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: rockchip: pmu: Ensure all properties are defined
authorRob Herring (Arm) <robh@kernel.org>
Mon, 3 Feb 2025 21:30:56 +0000 (15:30 -0600)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 10 Feb 2025 10:21:57 +0000 (11:21 +0100)
Device specific schemas should not allow undefined properties which is
what 'additionalProperties: true' allows. Add the missing child nodes
and fix this constraint.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250203213056.13827-1-robh@kernel.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Documentation/devicetree/bindings/arm/rockchip/pmu.yaml

index 932f981265ccbffd160fe22ffd8791949cd7a0af..52016a141227bbcd1040a9faa995d48a13ea6fb6 100644 (file)
@@ -53,11 +53,17 @@ properties:
   reg:
     maxItems: 1
 
+  power-controller:
+    type: object
+
+  reboot-mode:
+    type: object
+
 required:
   - compatible
   - reg
 
-additionalProperties: true
+additionalProperties: false
 
 examples:
   - |