dt-bindings: net: dsa: allow additional ethernet-port properties
authorColin Foster <colin.foster@in-advantage.com>
Thu, 12 Jan 2023 17:56:08 +0000 (07:56 -1000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2023 18:42:54 +0000 (18:42 +0000)
Explicitly allow additional properties for both the ethernet-port and
ethernet-ports properties. This specifically will allow the qca8k.yaml
binding to use shared properties.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/dsa/dsa.yaml

index efaa94c..7487ac0 100644 (file)
@@ -41,6 +41,8 @@ patternProperties:
       '#size-cells':
         const: 0
 
+    unevaluatedProperties: false
+
     patternProperties:
       "^(ethernet-)?port@[0-9]+$":
         type: object
@@ -48,7 +50,7 @@ patternProperties:
 
         $ref: dsa-port.yaml#
 
-        unevaluatedProperties: false
+        additionalProperties: true
 
 oneOf:
   - required: