From patchwork Mon Nov 27 15:43:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13469864 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 EC625C4167B for ; Mon, 27 Nov 2023 15:43:48 +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=idLkulgyu+SyYbfm73RTOCnjwQtX14l+kD5FAXkNDFI=; b=SDovMpilkXcX65 kXwKo8HHreCFJfY6MAmnaEkHTXFxGm8MuUNRf2FKx3g2zRYZjDw+sjkQeQznM8c9jq948xhBN1d3o J0ft4OlxRrwu2jcnk32kwbS6BmgFFUX7Inlxv9DqvRAAusLDLML4Kc/YEcCGumE0nuhlwABIRBLk+ C5SmR9dwSdEF5dYCW88tn3qEM5VB3HqkV3Q7Gy+5OklIxHDArTn4jykId9ol3VmOmMGOVLowzeROx u44k2U5wwk13xxp572JDzfBMUpPAdyYwTejAZvXHQvrcjEGjucwIT0MTY3wn6a3XCDxrU0vRvRhoU EPyZsw/m7TyrUdg25H3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r7dlW-002qrn-1X; Mon, 27 Nov 2023 15:43:18 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r7dlT-002qr0-2H for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2023 15:43:16 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-507bd19eac8so5975649e87.0 for ; Mon, 27 Nov 2023 07:43:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701099794; x=1701704594; 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=VuNdy95VNpWQjRKNnpzeQQ54Hlq4tpuG2i9HfgCgKck=; b=WeLtY0FJOKJUfpgR/ggG2slfnKL/PKIw31YkHnpxA27AzhSDBVagtW+RNlVUFYTI7J UFgE/jJKvHh9Df6GhJG8jt4nRBHGOE7eCek8ZqSToxW6XhlGAadvsmCTK4/tt05lBE+C LcvyVuni4lVg36ZIS2vkn6pT+gdRkfM8MBSB9G9jMoGJumVDO/f5m5iQQK0CEV9NBM9i EBYMMAkmpSgV9X7U75bSM7btRol7DWE+pfz13ODbyVjxIWfTlZ4Cq8qJLS3bfZFpWq/M 6xv6B8YI7aCEyAeDkx27Zo9YuZOQL703YlUqkKHZNbEzn41E8C+nzw0Inmb15PN21eKo 60RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701099794; x=1701704594; 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=VuNdy95VNpWQjRKNnpzeQQ54Hlq4tpuG2i9HfgCgKck=; b=KDu7cb7/HJUWl1PBKlnT/HG5dCmOJ22b4AJT6zicuzsODy9mhdxjgPJ+bOd314/fuP NMEL/1T0Wh/882v2C7qy3WKpYa1hm4JoTWGWozsn/qHUS/w+o7ISV3sZjRmcgp3hr+xL aWtw4vgOSyXwezAmy+/f2n+zfIXCPYUYkr7ndvlRy42atUvndZo9sEYfHAlgxHABUpZX tUbF8/h+FCuHwnPLauLjPtfevGJGNYWOzf20SbiKGIbTGZD2OuiNqoHC3il7hCV4AZjz igPUXPoWoiB024lNzSFFOxe93h74R9lBpKUKINnRWY5/8mmrHaQ3ZqGJk9/aw4IztkDy nx+A== X-Gm-Message-State: AOJu0Yz+P1iQn5iArDxrLAL2XoW98Nw3EVP2SNvXoD44PmRc0ANtBM8B b54QleJxdMpGOfK16ZMrWPmq5w== X-Google-Smtp-Source: AGHT+IGWjn7a7SaeCNhun0JE7z2oMYlgMR3QEHklOjINxZRkGcdglD8+plYLOYV/HHG6FnDABF2yng== X-Received: by 2002:ac2:4858:0:b0:50b:ac21:29fb with SMTP id 24-20020ac24858000000b0050bac2129fbmr3844407lfy.31.1701099793925; Mon, 27 Nov 2023 07:43:13 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id v28-20020ac2559c000000b0050ab86037d8sm1505049lfg.205.2023.11.27.07.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:43:13 -0800 (PST) From: Linus Walleij Date: Mon, 27 Nov 2023 16:43:04 +0100 Subject: [PATCH net-next v9 1/5] dt-bindings: net: dsa: Require ports or ethernet-ports MIME-Version: 1.0 Message-Id: <20231127-marvell-88e6152-wan-led-v9-1-272934e04681@linaro.org> References: <20231127-marvell-88e6152-wan-led-v9-0-272934e04681@linaro.org> In-Reply-To: <20231127-marvell-88e6152-wan-led-v9-0-272934e04681@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 , =?utf-8?q?Marek_Beh=C3=BAn?= 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 , Florian Fainelli , Krzysztof Kozlowski X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231127_074315_747855_CEA414DA X-CRM114-Status: GOOD ( 10.55 ) 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 Acked-by: Florian Fainelli Reviewed-by: Krzysztof Kozlowski 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..2abd036578d1 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 + ...