]> git.itanic.dy.fi Git - linux-stable/commit
dt-bindings: net: mvusb: Fix up DSA example
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 27 Nov 2023 15:43:05 +0000 (16:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Nov 2023 03:37:20 +0000 (19:37 -0800)
commita6e44f3028e7d582da625a611ef17908844d0e82
tree0077da4aae83753cc600bba4863e12a2694e2cc3
parentfbb7033b76eb0639a6f24d48e59f28407a4dee64
dt-bindings: net: mvusb: Fix up DSA example

When adding a proper schema for the Marvell mx88e6xxx switch,
the scripts start complaining about this embedded example:

  dtschema/dtc warnings/errors:
  net/marvell,mvusb.example.dtb: switch@0: ports: '#address-cells'
  is a required property
  from schema $id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml#
  net/marvell,mvusb.example.dtb: switch@0: ports: '#size-cells'
  is a required property
  from schema $id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml#

Fix this up by extending the example with those properties in
the ports node.

While we are at it, rename "ports" to "ethernet-ports" and rename
"switch" to "ethernet-switch" as this is recommended practice.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20231127-marvell-88e6152-wan-led-v9-2-272934e04681@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/marvell,mvusb.yaml