From patchwork Wed Oct 18 09:03:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13426710 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61D38CDB483 for ; Wed, 18 Oct 2023 09:04:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XlTzwHW2qbeV/zlKnDWDiCE3eydb/3evaKhKdwOfkU8=; b=Y1lnZwD0OB+0WA vFN+miB4E9c/BVBntKE5BTSTAXn3d3a81ODsjfwSku2RwQfUy47t8jBvZ+NubSqrac2yIj+66IkGm Sz+odHLHmA4VxybHryNKFXNdzlYndNfAkz2JWFv5lKg64SVYl3rlJXcGyYhXIto9zKrxgtXILzLLK 9qHINN15uF86hpnmGPRPSLIVZHsiC7WRjOvgqsHu6fMojxpvrPtaXWiXCXI4gF0bY+Ii3hVfY9J0K QsGpj6zwRsoTFddNZ0PW4pSLMpP+pIZI3cUvTINe3T7BGIbl5Ylo7+sG8CAtBhVslJHhxgEo2nxFf 424d8ZxLSfGFdPg1tmaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qt2TA-00EDlX-2W; Wed, 18 Oct 2023 09:04:00 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qt2T3-00EDht-1d for linux-arm-kernel@lists.infradead.org; Wed, 18 Oct 2023 09:03:54 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-507962561adso7764582e87.0 for ; Wed, 18 Oct 2023 02:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697619831; x=1698224631; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=2tyOup0+oFY1qNiEuX6Mw7ppmGYAINv0IB1dZ7z8mjE=; b=yweBxykp9On9UTYOZIV9HFB2ZlX7S7GfTYrjWIp54VUamC6WIFopK+kkjh/bD1IsnH QtGm5KQGfiGtd0+eAUPcXsZSLFFQjxQiru6iNs2hvhJkGvbikWaRQXRc5ZT0D/XRBYhw kb2hzcD2xwdVN7+q4vN6vjNbppExwlWg9ZGPmjUUOhMlGbPmI2vMxWEuyvE5Ugfa0Unt kCWiJp/vTaWh36Uy+a2qSnQQ70TT2KpxKvKVh7Nse9HkskEn8JhzmWNC5BS3PX2azokB j1cW2HoqQi7H1w+KlKgD9bPNrEfTTQ1w8qQKhf8Pz/VCoy/HfTh4ojuORNvkQdf+KxbL cEHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697619831; x=1698224631; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2tyOup0+oFY1qNiEuX6Mw7ppmGYAINv0IB1dZ7z8mjE=; b=GqKHQ2qlA6kGHgSr9v/UFNNegyFj+nqTEm9rEer3KcxoLpvucwpmA+KpYkMdp2LUK1 8laXR6qckIK9b9ps9vQ1T0lRsfKe05oxyeZztYHZrNlCyg78mJphXvbZdxbr2ng0CS9D XVf8AUTUWb0S9RRp/sf0qCEkM71b8gQMY6B1G2SZgGMolTs7krRKwND51LN5tsin5wPg oGuGBbOJCjXBoEuIs1zaH2yOsp7kDq8rJERadkc6l1diVGiPbv8WC4tB7BydGr+Z9K8r knFUv5tLXa9dc5IEGMLqZtuHcjBtjMXQ0UmhUJQb8cVi7Oh7Ox2LzDwVZjs1AAKbPSTF MW+w== X-Gm-Message-State: AOJu0YyrAaT2ktprVSIEBMbRtea1PsoxmWQe7tmPziDtAQ0ZiiIkyGGL 43BOAA297BwIZf08+p1TKxXmYA== X-Google-Smtp-Source: AGHT+IHMybJsDSExgJDVQSeN8JuA3T6ANKH6zJvy1EbxZZ9HCZV/eBXaUEtw9UO7m9Jtm4N4sfn9zQ== X-Received: by 2002:ac2:484c:0:b0:4ff:a8c6:d1aa with SMTP id 12-20020ac2484c000000b004ffa8c6d1aamr3328690lfy.48.1697619831405; Wed, 18 Oct 2023 02:03:51 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id w19-20020a05651234d300b005056fb1d6fbsm616595lfr.238.2023.10.18.02.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 02:03:50 -0700 (PDT) From: Linus Walleij Date: Wed, 18 Oct 2023 11:03:40 +0200 Subject: [PATCH net-next v4 1/7] dt-bindings: net: dsa: Require ports or ethernet-ports MIME-Version: 1.0 Message-Id: <20231018-marvell-88e6152-wan-led-v4-1-3ee0c67383be@linaro.org> References: <20231018-marvell-88e6152-wan-led-v4-0-3ee0c67383be@linaro.org> In-Reply-To: <20231018-marvell-88e6152-wan-led-v4-0-3ee0c67383be@linaro.org> To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Christian Marangi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Linus Walleij , Rob Herring X-Mailer: b4 0.12.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231018_020353_541856_CDF285A9 X-CRM114-Status: GOOD ( 10.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Bindings using dsa.yaml#/$defs/ethernet-ports specify that a DSA switch node need to have a ports or ethernet-ports subnode, and that is actually required, so add requirements using oneOf. Suggested-by: Rob Herring Signed-off-by: Linus Walleij --- Documentation/devicetree/bindings/net/dsa/dsa.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml b/Documentation/devicetree/bindings/net/dsa/dsa.yaml index 6107189d276a..368169f7fd37 100644 --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml @@ -46,4 +46,10 @@ $defs: $ref: dsa-port.yaml# unevaluatedProperties: false + oneOf: + - required: + - ports + - required: + - ethernet-ports + ...