Commit a72d45e6 authored by Horatiu Vultur's avatar Horatiu Vultur Committed by David S. Miller
Browse files

dt-bindings: net: lan966x: Add additional properties for lan966x



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: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7e9979e3
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -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':