Skip to contentSkip to conversation

dt-bindings: net: pse-pd: ti,tps23881: Fix missing "additionalProperties" constraints

PATCH Applied Rob Herring (Arm) 3 participants 3 messages May 23, 2024 – May 28, 2024

Subsystems (4)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: net: pse-pd: ti,tps23881: Fix missing "additionalProperties" constraints

The child nodes are missing "additionalProperties" constraints which means any undocumented properties or child nodes are allowed. Add the constraints and all the undocumented properties exposed by the fix.

Fixes f562202fedad ("dt-bindings: net: pse-pd: Add bindings for TPS23881 PSE controller")
---
 .../bindings/net/pse-pd/ti,tps23881.yaml       | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml +18 -0
index 4147adb11e10..6992d56832bf 100644
@@ -29,13 +29,31 @@ properties:
       of the ports conversion matrix that establishes relationship between
       the logical ports and the physical channels.
     type: object
+    additionalProperties: false
+
+    properties:
+      "#address-cells":
+        const: 1
+
+      "#size-cells":
+        const: 0
 
     patternProperties:
       '^channel@[0-7]$':
         type: object
+        additionalProperties: false
+
+        properties:
+          reg:
+            maxItems: 1
+
         required:
           - reg
 
+    required:
+      - "#address-cells"
+      - "#size-cells"
+
 unevaluatedProperties: false
 
 required:
Signature · 1 line
2.43.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Thu, 23 May 2024 12:17:50 -0500 "Rob Herring (Arm)" <[email protected]> wrote:

The child nodes are missing "additionalProperties" constraints which means any undocumented properties or child nodes are allowed. Add the constraints and all the undocumented properties exposed by the fix.

Regards,

Signature · 3 lines
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
#2 lore raw
In reply to Rob Herring (Arm)
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 23 May 2024 12:17:50 -0500 you wrote:

The child nodes are missing "additionalProperties" constraints which means any undocumented properties or child nodes are allowed. Add the constraints and all the undocumented properties exposed by the fix.

Fixes f562202fedad ("dt-bindings: net: pse-pd: Add bindings for TPS23881 PSE controller")

[...]

Here is the summary with links:
- [net] dt-bindings: net: pse-pd: ti,tps23881: Fix missing "additionalProperties" constraints

    https://git.kernel.org/netdev/net/c/12f86b9af96a

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html