Skip to content

Commit

Permalink
dt-bindings: net: dsa: qca8k: utilize shared dsa.yaml
Browse files Browse the repository at this point in the history
The dsa.yaml binding contains duplicated bindings for address and size
cells, as well as the reference to dsa-port.yaml. Instead of duplicating
this information, remove the reference to dsa-port.yaml and include the
full reference to dsa.yaml.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Suggested-by: Vladimir Oltean <olteanv@gmail.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 16401cd commit 9568264
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Documentation/devicetree/bindings/net/dsa/qca8k.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,11 @@ properties:
With the legacy mapping the reg corresponding to the internal
mdio is the switch reg with an offset of -1.

$ref: "dsa.yaml#"

patternProperties:
"^(ethernet-)?ports$":
type: object
properties:
'#address-cells':
const: 1
'#size-cells':
const: 0

patternProperties:
"^(ethernet-)?port@[0-6]$":
type: object
Expand Down Expand Up @@ -116,7 +112,7 @@ required:
- compatible
- reg

additionalProperties: true
unevaluatedProperties: false

examples:
- |
Expand Down

0 comments on commit 9568264

Please sign in to comment.