From: Horatiu Vultur Date: Thu, 2 Dec 2021 11:05:04 +0000 (+0100) Subject: dt-bindings: net: lan966x: Add additional properties for lan966x X-Git-Tag: v5.17-rc1~170^2~273 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a72d45e646547d4ec59ee16f122c2764eb36bf05;p=thirdparty%2Fkernel%2Flinux.git 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: Horatiu Vultur Signed-off-by: David S. Miller --- diff --git a/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml b/Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml index d54dc183a033f..5bee665d5fcf8 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':