diff mbox series

dt-bindings: rockchip: pmu: Ensure all properties are defined

Message ID 20250203213056.13827-1-robh@kernel.org (mailing list archive)
State New
Headers show
Series dt-bindings: rockchip: pmu: Ensure all properties are defined | expand

Commit Message

Rob Herring Feb. 3, 2025, 9:30 p.m. UTC
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>
---
 Documentation/devicetree/bindings/arm/rockchip/pmu.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Heiko Stübner Feb. 10, 2025, 10:39 a.m. UTC | #1
On Mon, 03 Feb 2025 15:30:56 -0600, Rob Herring (Arm) wrote:
> Device specific schemas should not allow undefined properties which is
> what 'additionalProperties: true' allows. Add the missing child nodes
> and fix this constraint.
> 
> 

Applied, thanks!

[1/1] dt-bindings: rockchip: pmu: Ensure all properties are defined
      commit: b921f66ccf5e8cf1b8a5052b35ceda454f19f5dd

Best regards,
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml b/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml
index 932f981265cc..52016a141227 100644
--- a/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml
+++ b/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml
@@ -53,11 +53,17 @@  properties:
   reg:
     maxItems: 1
 
+  power-controller:
+    type: object
+
+  reboot-mode:
+    type: object
+
 required:
   - compatible
   - reg
 
-additionalProperties: true
+additionalProperties: false
 
 examples:
   - |