From patchwork Mon Nov 13 23:35:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 164676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1541570vqg; Mon, 13 Nov 2023 15:38:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3hhBzWMw8spZsF2TsKv/WrQYUoxbcG602l8QUPMS+xqYb8GGZm13ZGc2BuA3T+TRyd9Rn X-Received: by 2002:a05:6808:5d0:b0:3a4:6b13:b721 with SMTP id d16-20020a05680805d000b003a46b13b721mr7268626oij.46.1699918680002; Mon, 13 Nov 2023 15:38:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699918679; cv=none; d=google.com; s=arc-20160816; b=N/AAFC4WDb46T1gDJYBhitU7eBZOqF0NCS6crXoN6GeinFdFo7qHZMpa2uCyct60gu e5JBaCaFu7uWUD0WfV7eXGYBZrp2AlHuVNeGp6f84+0RR6U0z24qaa6ziXD5FmgFrETp U4FUBf0JKX1RiyQ1xGLVZvTUy9dhmLn10DKohNXF/8TPuFEWeaaW8U6TC94NJBWXxf1s mmkcObpmjw4bf/ov4GOqW58FjS6yloqGmM0NWREBWB1KL/H/p4KAZyM57gQtWJ0bUIY6 w4qc9vgk1icR12v8fYoBWJlCCB7WZK9mNlnPP1lU7u1I+R8/tfkzhjTw4anHc3MVy6Xv L5AA== 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=Kixkl0VJExC1AtnGI0+La+1ecoHQ4NzcLF0Lpqs2wEerDYArO91T8n2LV+XwMiGAGU k4LGKjkSYEwZqPLHtRazCi4X4M+X6KQFrL4DCCbl1OlA9rQtq4gR68/bP11yH582EAw4 xo5Avvq+B1H/ZsWgt7ktT/VqYPdmuP7hetaMkwqZB2x9lpDbNydSTRD/K2VEUMA5lI+q +FogsYM/b/zjV40qn/20qylk9Rze0pg9EtBmp9J4FNvGbLNjpI3kTxMbNVtEEBfLkKL2 VCTd8l9/oXocxx/oeCLG7KAoMmWSZmalBC3Rs0lYO7iPve7EG3kxy0Ud34IHTQxGmsLJ GbBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZWk9YWnA; 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 e1-20020a63e001000000b00577f67a0614si6260164pgh.879.2023.11.13.15.37.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 15:37:59 -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=ZWk9YWnA; 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 AA48E8092D9B; Mon, 13 Nov 2023 15:36:21 -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 S231503AbjKMXgH (ORCPT + 30 others); Mon, 13 Nov 2023 18:36:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230437AbjKMXgF (ORCPT ); Mon, 13 Nov 2023 18:36:05 -0500 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF67AD71 for ; Mon, 13 Nov 2023 15:36:00 -0800 (PST) Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c79d8b67f3so53361311fa.0 for ; Mon, 13 Nov 2023 15:36:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699918559; x=1700523359; 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=ZWk9YWnAIILC5S/hmsCw/pV/GPcrxB4VbupyLbglHBtUkXGtEJiJp2K7MC8P7e1Eq4 ZifiLlUgoDrm+byqiQCFGi4APAzigOsPqLer9i26xrkKs9rx5IdkkuteSQhHwtq1YYf5 ISIiK40dBqbzMrMpHXJ71WJnCdDzLwnkrGuteyw8FnlQpPadma591KgjXLrR8Ncrpkww 4m59XyJpMJo6GO5oO9Zmk+GBZQ7g/hfZiGbTLdmUzHt4UH+33R9a6ZtVuT5cNgiS0tqc 8CImP9eJ0CNeAssYb8vWYqedxE6319UZlj4pYbt0y66/ilTU7lG6E39y+qvRqsqmmcTs PDbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699918559; x=1700523359; 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=dGsml3pkjcfW0IeFvW8M9FTX5FR1WgGLA9oUxm7YWshWWkWKHCIL9pm+C4tFbZ6+Zq VX0gANEIL37pTLAFQl1Ib/NN57bYZ8pJ40a7+aTStBswMtwmYKQd3qFKKxuA9j5YmSTn iIx6f6NWsr/epenILM48wMTcHGGYwun/Y8w2PWTD7kFDwZ+yO9g3QvBMOwg78ikdFYXY XOBhKfqrapCtJ+/QSa3qjVecnfRlKQ/T+ekhzpYctGlwq28QCG+rUS1ZKOFMaLlQnQVF 1yvQ1d9pZz0a2KEDpb/zX7rGHJK2IPQYUog01bBpOulFKLqwXz85v6I9yRIjF2w6PO/G zK0A== X-Gm-Message-State: AOJu0YwZitJz4+NKXj4tf+AAK6N27ZTZ6X+Ct0485LRRxS99rji6HsgP Sg1rFID3sFv7ClWGBRi1VFRxIQ== X-Received: by 2002:a2e:1659:0:b0:2c5:169f:ff03 with SMTP id 25-20020a2e1659000000b002c5169fff03mr475738ljw.5.1699918558910; Mon, 13 Nov 2023 15:35:58 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 17-20020a2e0611000000b002b70a8478ddsm1202859ljg.44.2023.11.13.15.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 15:35:58 -0800 (PST) From: Linus Walleij Date: Tue, 14 Nov 2023 00:35:56 +0100 Subject: [PATCH net-next v8 1/9] dt-bindings: net: dsa: Require ports or ethernet-ports MIME-Version: 1.0 Message-Id: <20231114-marvell-88e6152-wan-led-v8-1-50688741691b@linaro.org> References: <20231114-marvell-88e6152-wan-led-v8-0-50688741691b@linaro.org> In-Reply-To: <20231114-marvell-88e6152-wan-led-v8-0-50688741691b@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-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=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, 13 Nov 2023 15:36:21 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782493929619774641 X-GMAIL-MSGID: 1782493929619774641 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 + ...