From: Vladimir Oltean Date: Mon, 18 Oct 2021 19:29:50 +0000 (+0300) Subject: dt-bindings: net: dsa: inherit the ethernet-controller DT schema X-Git-Tag: v6.6.17~8953^2~146^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e00eb643324c7a57f4f3fcb2bc5e882f4b88a3a1;p=platform%2Fkernel%2Flinux-rpi.git dt-bindings: net: dsa: inherit the ethernet-controller DT schema Since a switch is basically a bunch of Ethernet controllers, just inherit the common schema for one to get stronger type validation of the properties of a port. For example, before this change it was valid to have a phy-mode = "xfi" even if "xfi" is not part of ethernet-controller.yaml, now it is not. Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 224cfa4..9cfd08c 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -46,6 +46,9 @@ patternProperties: type: object description: Ethernet switch ports + allOf: + - $ref: "http://devicetree.org/schemas/net/ethernet-controller.yaml#" + properties: reg: description: Port number