Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1053890rda; Mon, 23 Oct 2023 00:19:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaCyti1AChAhIT8mVVevKSocDOuAIgLA7wdLSvxHMneBfMcON6Oq9k8J6Sh3Of940DYhRe X-Received: by 2002:a17:902:d053:b0:1c9:c6f4:e0c3 with SMTP id l19-20020a170902d05300b001c9c6f4e0c3mr7303107pll.62.1698045562354; Mon, 23 Oct 2023 00:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698045562; cv=none; d=google.com; s=arc-20160816; b=rMH/0iCZoChwNtJE5m5ro5IbogkCbe2EFA6c2slGNqeQezdEIQAraShF73CnTzg7DN qN2/kuPoQ+t9MpTy4zQWY1w6zIN7YaC5Zye1M0R4YTg1CBZUj104DLbRCKBLldKBZ8HI y5zt0LBrXwx/cg5EBuYLBR5qpABYzuLlBTnDjqsjgADZVgGXW0JqHx1q9Sz9HuAn6/sr IFoDhAxWHkXKFeJDPRTCI8RfpG90imcTH5KYYLKtAlk3eBOpe9BsojgP5ILO+fS6MXFo Led/m1OL4TnNrCuhb+G0Md9O2R1nGDgLuOEfzAlwm+Uz/VmywC3cbwEo2onL6BhFZ6MG 0+8w== 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=Qq9BjLYHO87NODRN0gxWjELsnKKqNstYumO69NyOdU5n6Tka2UU5OQn01er1hjinQu VXdhrtW6ayuJz2vd4Fw4UCKXknoy1/iu7lL8uAu62/0NS80+CkHmb3owuZqVHE0pgQME 2il5LpwG2k1oPBBbiIAuwqo43UTYZUK390aHVF9R+W/suKOSRwEHuCvwPd92YYtuSCBx pOIkX9ulMENCaeSiIP588NibVP+T2aTS46VOW8vLYEMKKsLuMfv94to7xhmn0QC4Hil+ meb6sRGa5/hUrEmFaLKcszt+ytwf6uT6bXG7MTAEbJ7gYR6SLE6lSn+bX2vd5GFNdJZh xlFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ns9iRyBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id s2-20020a170902ea0200b001c77674ea97si6110326plg.423.2023.10.23.00.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ns9iRyBm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 1EFA6804F625; Mon, 23 Oct 2023 00:19:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233437AbjJWHTP (ORCPT + 99 others); Mon, 23 Oct 2023 03:19:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjJWHTO (ORCPT ); Mon, 23 Oct 2023 03:19:14 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACFA1D6E for ; Mon, 23 Oct 2023 00:19:11 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-507a3b8b113so4345703e87.0 for ; Mon, 23 Oct 2023 00:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698045548; x=1698650348; 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=ns9iRyBmplWE3aUJQW8Ri3OqhrBoAB6NaDocqu7c4oIrXwXNdDmxK33gUw3KHmGqhl Q7afDVJxULV1AdI8LLwbIHVQiPQRXuZkWRgTHnPEWZ/e/VPrSAryVIGg7plNkzicqABR v6I0laHJynJjrGIpTI6Yvi+d8Uh8vB7rE+5jh5fmIe4/213PLZtNB+nAXo+k5MtxfNiO nKlpJ8mNQSNR7chCQoCp3sJpESQRIgKVZJQmvdp+hiyEYHIGtJP4K7u/gTzCOe57hxNw 0+EwsmoHFnV/9hXOzcERnpAxvH9rKITFN0Ynfg9Y8CBqKpRCbupSxV+Tp3P38qqPND// iyGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698045548; x=1698650348; 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=m+ZUrqEtC4Ya+LqZBkGoS8rSEEtBjdUpcR0tZ70UIDrD32MOYFpXkLfBTz22U+dyfY 0GKOV2AHJRwMGp69ViN96SAZsoOkIG04Y/tmfL4jhjdRlHeI6YRpprSCgpZOc2ufwu85 GbrGUFC5ZChy/MwIfYYJS+pvLvAtOm3rHle8eJZAu22pkOdEmNszrUtzFHsfeNREQPcc P9D36uArsTTIpctvirh1QnSGlPdKqx7egVBPf51TthGYJAtA4jibmlpYc4d71qEGTxq+ 5QPfTlQlGaE/RANc+WaCvFJvEkwadFmPhaFsD6+8A/8xZBG9YWS3Lg1baNn1FxKzk0EE xLKQ== X-Gm-Message-State: AOJu0Yyb7UR7Mb5OSiDRx5djek+GmQ0ga23Lb+18k3XVxl6p5ods0GP3 /bZ76P0bSvyMeSUvKeBfdNv4aA== X-Received: by 2002:a19:4f16:0:b0:507:aaa4:e3b3 with SMTP id d22-20020a194f16000000b00507aaa4e3b3mr5101284lfb.50.1698045547836; Mon, 23 Oct 2023 00:19:07 -0700 (PDT) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id w15-20020a05651204cf00b00507a682c049sm1578727lfq.215.2023.10.23.00.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:19:07 -0700 (PDT) From: Linus Walleij Date: Mon, 23 Oct 2023 09:18:52 +0200 Subject: [PATCH net-next v5 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: <20231023-marvell-88e6152-wan-led-v5-1-0e82952015a7@linaro.org> References: <20231023-marvell-88e6152-wan-led-v5-0-0e82952015a7@linaro.org> In-Reply-To: <20231023-marvell-88e6152-wan-led-v5-0-0e82952015a7@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.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 autolearn=unavailable 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: 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, 23 Oct 2023 00:19:21 -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