diff mbox series

[net-next] dt-bindings: net: lan966x: Add additional properties for lan966x

Message ID 20211202110504.480220-1-horatiu.vultur@microchip.com (mailing list archive)
State Accepted
Commit a72d45e646547d4ec59ee16f122c2764eb36bf05
Delegated to: Netdev Maintainers
Headers show
Series [net-next] dt-bindings: net: lan966x: Add additional properties for lan966x | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix success Link
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 6 of 6 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 23 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Horatiu Vultur Dec. 2, 2021, 11:05 a.m. UTC
This patch updates the dt-bindings for lan966x switch.
It adds the properties 'additionalProperties' and
'unevaluatedProperties' for ethernet-ports and ports nodes. In this way
it is not possible to add more properties to these nodes.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 .../bindings/net/microchip,lan966x-switch.yaml      | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Dec. 2, 2021, 12:30 p.m. UTC | #1
Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Thu, 2 Dec 2021 12:05:04 +0100 you wrote:
> This patch updates the dt-bindings for lan966x switch.
> It adds the properties 'additionalProperties' and
> 'unevaluatedProperties' for ethernet-ports and ports nodes. In this way
> it is not possible to add more properties to these nodes.
> 
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> 
> [...]

Here is the summary with links:
  - [net-next] dt-bindings: net: lan966x: Add additional properties for lan966x
    https://git.kernel.org/netdev/net-next/c/a72d45e64654

You are awesome, thank you!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml b/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml
index d54dc183a033..5bee665d5fcf 100644
--- a/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml
+++ b/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml
@@ -56,12 +56,21 @@  properties:
 
   ethernet-ports:
     type: object
+
+    properties:
+      '#address-cells':
+        const: 1
+      '#size-cells':
+        const: 0
+
+    additionalProperties: false
+
     patternProperties:
       "^port@[0-9a-f]+$":
         type: object
 
-        allOf:
-          - $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#"
+        $ref: "/schemas/net/ethernet-controller.yaml#"
+        unevaluatedProperties: false
 
         properties:
           '#address-cells':