summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorHoratiu Vultur <horatiu.vultur@microchip.com>2021-12-02 12:05:04 +0100
committerDavid S. Miller <davem@davemloft.net>2021-12-02 12:23:10 +0000
commita72d45e646547d4ec59ee16f122c2764eb36bf05 (patch)
treed75f333f86a92ad9160e3c498593269c532d5625 /Documentation
parent7e9979e360075ef5db77e77d1e8ab3efbcba6eef (diff)
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 <horatiu.vultur@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/net/microchip,lan966x-switch.yaml13
1 files 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':