From patchwork Mon Oct 23 07:18:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 156687 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1125947vqx; Mon, 23 Oct 2023 00:19:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5YzSXOI1BwGqvWGNueKQSVjLvJK1wdNJ6l7XbDIJnVbm0EtsO6+LwZKW312BpABTbLfe3 X-Received: by 2002:a17:90b:288e:b0:27d:7f1b:1bec with SMTP id qc14-20020a17090b288e00b0027d7f1b1becmr7670660pjb.35.1698045564247; Mon, 23 Oct 2023 00:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698045564; cv=none; d=google.com; s=arc-20160816; b=tf7zabKXhRMHcPntt7Yr7tJkiBtJziQM/Qr6Nf6JyymB/XgFtldjHHWqcIC/MJAc61 dwvFN20zTiLsiBawomJovTD1Cxn4KolScF3UIXy0kqoJUcCr1FDWloAJkHh3daSM0ehW i4UgX5DXEDUKXDNttlApxs3aj94l5wygLqgEqcXUqr+JAHdo90x8EA004H17iLPNufEI E/bWIjG+NbL4DrnDw0dSSTfxVmHNPYg2Vl88WO7pZvtBVyEFAskpl6ZLVOuVqqapAF9X zTSTUlHle7XA9C2uArfhWmwQzdsigLv8bK6ImDGRBCQRinTNrvhs0i2pRb7fql1xfvq9 +H0A== 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 Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id oa8-20020a17090b1bc800b0027cde38c731si8830667pjb.17.2023.10.23.00.19.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:19:24 -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 55665804E452; Mon, 23 Oct 2023 00:19:23 -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 S233438AbjJWHTP (ORCPT + 26 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 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:23 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780529825344788099 X-GMAIL-MSGID: 1780529825344788099 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 + ...