Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3659553rdg; Wed, 18 Oct 2023 02:04:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE0aEANaq12Shl+YaHFEteBCHoNNDTgwGrLttNYtt32PyvWitzPqOubV2nULaTbtQt7DXaf X-Received: by 2002:a05:6808:1d6:b0:3b2:e292:370 with SMTP id x22-20020a05680801d600b003b2e2920370mr3171582oic.38.1697619850909; Wed, 18 Oct 2023 02:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697619850; cv=none; d=google.com; s=arc-20160816; b=c7nE8U4wSiYNEMwXEfafbTgZn2x+zYXnPgs/DTEVzp3mUyZV4AodcQLtPETGS5RH/p c9efIWUL6doJEvydvY8I5lsLBbgfe2X+TmCWLastrhrJIb0HWJOBXtBGh4LqaBTDDTuG P5Q+eNUbavWenChRsuSE6k+DQHkTX6e/kXcdBhpEfCYtwH1nY//lz3CZriLg2318tzvu BO+8ri+/cIeteL0yOdUQIWtugTtU5DOcx6HQvGoF2PziDPD18aiuoEH3t13Z1EhYoVOe R9k2C7aMv+XRXboy3THGFUcZ/PePO2xGUEHvVvpErr9eNwJQcjnG2f6pefWARkrxv7JD CJLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=2tyOup0+oFY1qNiEuX6Mw7ppmGYAINv0IB1dZ7z8mjE=; fh=aTFnFe9atwfOYas2jpUC764SgvternTIWFn22IOx8z0=; b=oI4F3AcTL6Ep9wL/3VcuuFPczdT3f6oebiVEK2ALXjOdgMlL5QodK5Lta/egT8vBRi J3Y/MEaQRufKVX+AUEqCvSVi2wNzI1dmvWyDS9poaU1HFQ2XRgCHrsOfqezq5pD369tF vkeRi1z+gAp2JD0CvMbBIHan7WPo53YW1in6UkCI0T2g0+hWIUWcTCJZOpEammbVI/tu surpzBjPwRu6/kpishZJYsvrEkpQnt6mcDGOHKlSvXxqdb3I+OSxKfjg6qSvbPDuxAIF a6msRsuHmZ+bNsy0iLAizjjnftrSBuJYNO6O+DCdCvf32reA+DOYaHZ9ByW1gpNPVcxS rz6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qJ1wYng2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bv193-20020a632eca000000b00565eb0b4f33si1185013pgb.224.2023.10.18.02.04.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 02:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qJ1wYng2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 3411680FCCB6; Wed, 18 Oct 2023 02:04:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbjJRJD6 (ORCPT + 99 others); Wed, 18 Oct 2023 05:03:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjJRJDz (ORCPT ); Wed, 18 Oct 2023 05:03:55 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AC05F7 for ; Wed, 18 Oct 2023 02:03:53 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-507c78d258fso826764e87.2 for ; Wed, 18 Oct 2023 02:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697619831; x=1698224631; darn=vger.kernel.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=qJ1wYng2P/ZY4bg8Bl2Yx5rMa0McXZe1kIvz6BSt706kQFSt2ugMthu+brJHImmlnu S1RlFuULhpnTdGoMxZu9JYBvJitNRYG07BXnz5CSRhzRO7COYkkYp0dix/gIYNyNcC9i Ha9RX/7UDk1Uk2qbWr27Xw+gBacCefSQeddwEdJ8ztuf0MZV4BL6UEg133XmV73tc/sd zPF02RJEGNiEQYKzFPKDr7bZj0c10em8c8CidnG1VOUEzQr5iV+Evq8R+LT6i+UxMO4C 3UzvsbXYT7g7QeBhR+fnsQf0rRwiZlhdocmamphwDoGjZEtjwlpoTkaSuA+yOE+hnO8f PdNA== 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=rEF5s4vC6tCEE2Atma1KnS+pZa6690TBoYPDBhlJX3WCBXCVJiVl0D2EVgyruZbhEl xXvpE7JBvm9c8Pk+JAWftYRQhuqXKel8YJYS3VOzn/iudIInKEcne4h9YUvM/ePi99yl gbhkjlb6iUzROCuELEqUW3QWOXmajkSSkjxJLf142MDVQhMda8hsIK1IokIVJD21jqza 6k4nl6fSW0Ndi8p/bofPg0ZlHxe9tJ17j0rCkZxtRQOGBRTiOsV/8TPNE32t3w9hasMf lspZtaHJnDO8gRL0O6+aYBlGAYTrCbMa/gMh1Y16JpEcGv+LQggjtLsw9RJ+S2qyxLWy d1Yg== X-Gm-Message-State: AOJu0YyOYubnJMGNL5HoBVNjaeEF1gc7HQss297gC4MFgxqc7OFF3LVM Z67Co6ocbF/zJCYX5n3Q7eI6Kg== 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 18 Oct 2023 02:04:06 -0700 (PDT) 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 + ... -- 2.34.1