Commit c8f1f2e9 authored by Rob Herring's avatar Rob Herring Committed by Jakub Kicinski

dt-bindings: net: ethernet-switch: Make "#address-cells/#size-cells" required

The schema doesn't allow for a single (unaddressed) ethernet port node
nor does a single port switch make much sense. So if there's always
multiple child nodes, "#address-cells" and "#size-cells" should be
required.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230404204213.635773-1-robh@kernel.orgSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent acd11255
......@@ -40,6 +40,10 @@ patternProperties:
type: object
description: Ethernet switch ports
required:
- "#address-cells"
- "#size-cells"
oneOf:
- required:
- ports
......
......@@ -53,6 +53,8 @@ examples:
reg = <0x10>;
ports {
#address-cells = <1>;
#size-cells = <0>;
/* ... */
};
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment