Message ID | 20231127-marvell-88e6152-wan-led-v9-1-272934e04681@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp3226835vqx; Mon, 27 Nov 2023 07:43:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiFmfSh4lN+flIG26KrAbnDPccrP9nJa6Jmf85CVsqvt4dmfCSZpsbp21Pq2QefkgOufQe X-Received: by 2002:a05:6a20:42aa:b0:18b:4dc2:a4c7 with SMTP id o42-20020a056a2042aa00b0018b4dc2a4c7mr15858967pzj.14.1701099807311; Mon, 27 Nov 2023 07:43:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701099807; cv=none; d=google.com; s=arc-20160816; b=oeLI9SpLnxXFsBVl65+ebExHELp5MUSU2r9bXdK1YkszoMdCOvUD58ramoDdFtrQ4K TzVAFxGE2jSA8IG0EuGOw0YMFdbnQ+hsobPJs/LmjGyfudpaKj4e9paX304fZP4SXpkx 7ervGfqjp8/hgHErbefbrjrrYdxPCVuXDEl+r9LLxa9gclFctA3jomzadOmTdib2fImL DHfSGebaYlLs+9GEod7fsV/jJrt8xXBTc4ZFjLtGSSCOFxUKaOeG5BsyNJZZNMMOQ0kD Qxd3UMqFMGppX/dUBN2xoc1KnuDGD2PZxo2Bi4Tnhkpns+MRDOT5XuWOgSiY2aEYBn9X WKcw== 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=VuNdy95VNpWQjRKNnpzeQQ54Hlq4tpuG2i9HfgCgKck=; fh=Eb3fFJSJwI8H3fKh2nMk5n5F4HCJ/IsAxKUe9fajJ7w=; b=XrwmRktm6INbd7hZpB49V+EVzPEg6+WL66JVKp64ntFlq1znuAxSs34gYNaJmSg1ug efZdnwSf9fzbTRrX6Zp13Fa54oIIjBtTbyKsylrKaRMgVigUBHDw1DqbvZVYMPgtN6IP d2NQqpF7XO+aOHK7n2MDxPFJLfzy/bgqlRMv01+h/OHl68pzyv+Lm2HmxQOXtp0+EzKd 84otCI/ZxkNMuITNNsE1kYejmnwPtoETjonXzz/9eQykYj3gEaUEfdnXS+khQM7sFu1z KfM6IccOkS0C8/G7U6mf2FwFcvb/zzIpboPmnBZpiWpQYhv3PGA2Adgw6oQ1NXyAs5r1 9YiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VdxgrLaV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id b19-20020a63d313000000b00584ca25959csi10352779pgg.540.2023.11.27.07.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:43:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VdxgrLaV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 1182E80A0571; Mon, 27 Nov 2023 07:43:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233904AbjK0PnM (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 27 Nov 2023 10:43:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233635AbjK0PnJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 27 Nov 2023 10:43:09 -0500 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87D71A3 for <linux-kernel@vger.kernel.org>; Mon, 27 Nov 2023 07:43:15 -0800 (PST) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-507adc3381cso5934790e87.3 for <linux-kernel@vger.kernel.org>; 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=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=VuNdy95VNpWQjRKNnpzeQQ54Hlq4tpuG2i9HfgCgKck=; b=VdxgrLaVwdFGTf4L9jrcfSyoT39a3TgiWdFkBfhh5rVfDUHkfuHMS7djCDtKhgj/LT xbsNB/mSwDLi3a5NFTTkP5OPkfe/sRCDpZ8qC4HujDGw9Q1SzoTyOJB+pKu2R/Lccu1D 2V20K6I3DwtP1tLgo0jZ8UkZkoTL4zZFTO1p25AQ729O16IfgVX4jsTG2vtZBxug7V8D y7eNJRNmisIwEgJDE9zH5L84jFTALzryx4dgcOvq5OgIyU4BaM5MZc+i5EppPmwL62Nn 1cKupvK7UVAKB2w6cOz8g5I36exjd4nmdlm8evJ6zzS19/HsvkKxxCc5HJOeeJWHFwNX A7sA== 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=XIL3NEILXXJx0YkI5Aljz1Ar7m/9iaaOt/95yGVpZX/pRg4U/xZ4ncGzGnAhg+Hcg0 wbkC8WVzM3+cs+zaFmVK24YX5Ao7oLs3NhP7P0lYLzoWAP9KG4oUEeMCCVeuI2sBwu2Z /rsQzAI2VtDcHZZo7RkXUrBm+qWYwYLQJK/ZY/M0zYW6a1oHLjeQEaPZUIgPkDBxeO1U K7u3EVM4f5T8eW4NnYfbndEbMh25iPys2nKdThWSikoHSKup7CpRz7UZJc4uJehJIDqP BJVkkwpgQhfMzoptsrjEtwVYMJGijG56Dary0VwlTRXpaKx1FWuTuk5lK8DL74IfGEfC 8I7w== X-Gm-Message-State: AOJu0YztDl+rA1RVA9h7VR0c5g1Ta0j++oGib1t8GVrdYbwUzjiaKkA+ iexL0pw/AZc1pUsRryCKysRvng== 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 <linus.walleij@linaro.org> 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 <andrew@lunn.ch>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Russell King <linux@armlinux.org.uk>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org> Cc: Christian Marangi <ansuelsmth@gmail.com>, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, Rob Herring <robh@kernel.org>, Florian Fainelli <florian.fainelli@broadcom.com>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 07:43:26 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783732431558849788 X-GMAIL-MSGID: 1783732431558849788 |
Series |
Create a binding for the Marvell MV88E6xxx DSA switches
|
|
Commit Message
Linus Walleij
Nov. 27, 2023, 3:43 p.m. UTC
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 <robh@kernel.org> Acked-by: Florian Fainelli <florian.fainelli@broadcom.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- 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 + ...