All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] dt-bindings: net: lan966x: Add additional properties for lan966x
@ 2021-12-02 11:05 Horatiu Vultur
  2021-12-02 12:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Horatiu Vultur @ 2021-12-02 11:05 UTC (permalink / raw)
  To: davem, kuba, robh+dt, netdev, devicetree, linux-kernel; +Cc: Horatiu Vultur

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(-)

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':
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] dt-bindings: net: lan966x: Add additional properties for lan966x
  2021-12-02 11:05 [PATCH net-next] dt-bindings: net: lan966x: Add additional properties for lan966x Horatiu Vultur
@ 2021-12-02 12:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-12-02 12:30 UTC (permalink / raw)
  To: Horatiu Vultur; +Cc: davem, kuba, robh+dt, netdev, devicetree, linux-kernel

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-02 12:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 11:05 [PATCH net-next] dt-bindings: net: lan966x: Add additional properties for lan966x Horatiu Vultur
2021-12-02 12:30 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.