From: Krzysztof Kozlowski Date: Wed, 2 Nov 2022 16:15:12 +0000 (-0400) Subject: dt-bindings: net: dsa-port: constrain number of 'reg' in ports X-Git-Tag: io_uring-6.2-2022-12-19~11^2~281 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a352a2c5d2a504f17c7096c9085177a54917012d;p=linux-block.git dt-bindings: net: dsa-port: constrain number of 'reg' in ports 'reg' without any constraints allows multiple items which is not the intention in DSA port schema (as physical port is expected to have only one address). Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml index 10ad7e71097b..9abb8eba5fad 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa-port.yaml @@ -19,7 +19,8 @@ allOf: properties: reg: - description: Port number + items: + - description: Port number label: description: