Skip to content

Commit

Permalink
dt-bindings: net: dsa: allow additional ethernet-port properties
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Foster authored and David S. Miller committed Jan 16, 2023
1 parent 3cec368 commit 16401cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/devicetree/bindings/net/dsa/dsa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ patternProperties:
'#size-cells':
const: 0

unevaluatedProperties: false

patternProperties:
"^(ethernet-)?port@[0-9]+$":
type: object
description: Ethernet switch ports

$ref: dsa-port.yaml#

unevaluatedProperties: false
additionalProperties: true

oneOf:
- required:
Expand Down

0 comments on commit 16401cd

Please sign in to comment.